Prev Next
The max macro compares two values and returns the larger one. The data
type can be any numeric data type, signed or unsigned. The data type of the
arguments and the return value is the same.
max(
|
value1,
|
// low-order word
|
|
value2
|
// high-order word
|
|
);
|
|
Parameters
-
value1
-
Specifies the first of two values.
-
value2
-
Specifies the second of two values.
Return Values
The return value is the greater of the two specified values.
Remarks
The max macro is defined as follows:
#define max(a, b) (((a) > (b)) ? (a) : (b))
See Also
min
See also:
| file: /Techref/os/win/api/win32/mac/src/mac03_2.htm, 1KB, , updated: 2000/4/7 12:06, local time: 2012/5/24 18:36,
|
| | ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/tecHREF/os/win/api/win32/mac/src/mac03_2.htm"> max</A> |
| Did you find what you needed?
|
| |
miSim DE is an excellent,
portable and powerful IDE for
developing PIC applications.
Editor, assembler, disassembler and simulator w/ virtual component "plugins" (LED,LCD,key,motor,TV,etc).
|
| |

Peter Todd has released source and sample projects for his artwork, including his 3d wireframe cube renderer for the PIC 18f6520
This includes examples of hardware developed with free software tools such as gEDA/gschem/PCB, SDCC, gputils and picp all on Linux.
http://petertodd.ca/art/source-code/
|
.
|