代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.hpp
// Boost Lambda Library -- switch.hpp -----------------------------------
//
// Copyright (C) 2000 Gary Powell (powellg@amazon.com)
// Copyright (C) 1999, 2000 Jaakko J鋜vi (jaakko.jarvi@cs.utu.fi)
switch.hpp
#ifndef BOOST_MPL_SWITCH_HPP_INCLUDED
#define BOOST_MPL_SWITCH_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2003-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See a
switch.hpp
///////////////////////////////////////////////////////////////////////////////
/// \file switch.hpp
/// A generalization of the conditional_compiler. Given N different compilers
/// in a MPL-style
switch.cc
/*
* switch.{cc,hh} -- element routes packets to one output of several
* Eddie Kohler
*
* Copyright (c) 2000 Mazu Networks, Inc.
*
* Permission is hereby granted, free of charge, to any person o
switch.hh
#ifndef CLICK_SWITCH_HH
#define CLICK_SWITCH_HH
#include
CLICK_DECLS
/*
=c
Switch([OUTPUT])
=s classification
sends packet stream to settable output
=d
Switch sends every inco
switch.asm
INCLUDE REGS386.INC
INCLUDE TRANS.INC
.386p
DGROUP group _DATA
_DATA segment word public 'DATA' use16
extrn _cs16real: word
extrn _ds16real: word
trs TRANS ; translation
switch.opt
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.a*; *.src)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt)
pExt (*.plm)
CppX (*.cpp)
DaveTm { 0,0,0,0,0,0,0,0 }
switch.c
#include
void Switchdemo(void)
{ Byte outputstate;
switch(outputstate)
{case 1:
P1_0=0;
P1_1=0;
P1_2=0;
break; //跳出循环
case 2:
P1_0=1;
P1_1=0;
P1_2=0;
break;
switch.sbk
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
switch.sbk
.486
.model flat
extrn __fltused:near
extrn __ftol:near
public _main
_TEXT segment
_main:
push ebx
push esi
push edi
push ebp
mov ebp,esp
sub esp,8
lea edi,(L6)
mov dword ptr (-4)[ebp],e