MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / clampByte

Method clampByte

CodenameOne/src/com/codename1/util/Simd.java:1201–1209  ·  view source on GitHub ↗
(int value)

Source from the content-addressed store, hash-verified

1199 }
1200
1201 private byte clampByte(int value) {
1202 if (value > Byte.MAX_VALUE) {
1203 return Byte.MAX_VALUE;
1204 }
1205 if (value < Byte.MIN_VALUE) {
1206 return Byte.MIN_VALUE;
1207 }
1208 return (byte) value;
1209 }
1210}

Callers 4

addMethod · 0.95
subMethod · 0.95
mulMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected