123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- Rem
- bbdoc: Returns the larger of the two #Int arguments.
- End Rem
- Function Max:Int(a:Int, b:Int) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #Long arguments.
- End Rem
- Function Max:Long(a:Long, b:Long) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #Float arguments.
- End Rem
- Function Max:Float(a:Float, b:Float) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #Double arguments.
- End Rem
- Function Max:Double(a:Double, b:Double) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #Byte arguments.
- End Rem
- Function Max:Byte(a:Byte, b:Byte) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #Short arguments.
- End Rem
- Function Max:Short(a:Short, b:Short) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #UInt arguments.
- End Rem
- Function Max:UInt(a:UInt, b:UInt) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #ULong arguments.
- End Rem
- Function Max:ULong(a:ULong, b:ULong) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #Size_T arguments.
- End Rem
- Function Max:Size_T(a:Size_T, b:Size_T) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #LongInt arguments.
- End Rem
- Function Max:LongInt(a:LongInt, b:LongInt) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the larger of the two #ULongInt arguments.
- End Rem
- Function Max:ULongInt(a:ULongInt, b:ULongInt) Inline
- If a < b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #Int arguments.
- End Rem
- Function Min:Int(a:Int, b:Int) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #Long arguments.
- End Rem
- Function Min:Long(a:Long, b:Long) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #Float arguments.
- End Rem
- Function Min:Float(a:Float, b:Float) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #Double arguments.
- End Rem
- Function Min:Double(a:Double, b:Double) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #Byte arguments.
- End Rem
- Function Min:Byte(a:Byte, b:Byte) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #Short arguments.
- End Rem
- Function Min:Short(a:Short, b:Short) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #UInt arguments.
- End Rem
- Function Min:UInt(a:UInt, b:UInt) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #ULong arguments.
- End Rem
- Function Min:ULong(a:ULong, b:ULong) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #Size_T arguments.
- End Rem
- Function Min:Size_T(a:Size_T, b:Size_T) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #LongInt arguments.
- End Rem
- Function Min:LongInt(a:LongInt, b:LongInt) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Rem
- bbdoc: Returns the lesser of the two #ULongInt arguments.
- End Rem
- Function Min:ULongInt(a:ULongInt, b:ULongInt) Inline
- If a > b Then
- Return b
- End If
- Return a
- End Function
- Extern
- Function bbIntAbs:Int(a:Int)="int bbIntAbs(int)!"
- Function bbFloatAbs:Double(a:Double)="double bbFloatAbs(double)!"
- Function bbLongAbs:Long(a:Long)="BBInt64 bbLongAbs(BBInt64)!"
- Function bbIntSgn:Int(a:Int)="int bbIntSgn(int)!"
- Function bbFloatSgn:Int(a:Double)="double bbFloatSgn(double)!"
- Function bbLongSgn:Int(a:Long)="BBInt64 bbLongSgn(BBInt64)!"
- End Extern
- Rem
- bbdoc: Returns the absolute value of the #Int argument.
- End Rem
- Function Abs:Int(a:Int) Inline
- Return bbIntAbs(a)
- End Function
- Rem
- bbdoc: Returns the absolute value of the #Float argument.
- End Rem
- Function Abs:Float(a:Float) Inline
- Return bbFloatAbs(Double(a))
- End Function
- Rem
- bbdoc: Returns the absolute value of the #Double argument.
- End Rem
- Function Abs:Double(a:Double) Inline
- Return bbFloatAbs(a)
- End Function
- Rem
- bbdoc: Returns the absolute value of the #Long argument.
- End Rem
- Function Abs:Long(a:Long) Inline
- Return bbLongAbs(a)
- End Function
- Rem
- bbdoc: Returns the sign of the #Int argument.
- End Rem
- Function Sgn:Int(a:Int) Inline
- Return bbIntSgn(a)
- End Function
- Rem
- bbdoc: Returns the sign of the #Float argument.
- End Rem
- Function Sgn:Float(a:Float) Inline
- Return bbFloatSgn(Double(a))
- End Function
- Rem
- bbdoc: Returns the sign of the #Double argument.
- End Rem
- Function Sgn:Double(a:Double) Inline
- Return bbFloatSgn(a)
- End Function
- Rem
- bbdoc: Returns the sign of the #Long argument.
- End Rem
- Function Sgn:Long(a:Long) Inline
- Return bbLongSgn(a)
- End Function
|