- Sort Score
- Num 10 results
- Language All
Results 581 - 590 of 3,128 for rint (0.03 seconds)
-
android/guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java
} @Benchmark public long timeComplete_Normal(int reps) throws Exception { long r = 0; List<Facade<Integer>> list = new ArrayList<>(reps); for (int i = 0; i < reps; i++) { Facade<Integer> localFuture = impl.newFacade(); list.add(localFuture); localFuture.set(i); } for (int i = 0; i < reps; i++) { r += list.get(i).get(); } return r; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.7K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndXResponse.java
} @Override int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { final int start = bufferIndex;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3.5K bytes - Click Count (0) -
src/cmd/asm/internal/asm/testdata/386.s
TEXT foo(SB), DUPOK|NOSPLIT, $0 // LTYPE1 nonrem { outcode(int($1), &$2); } SETCC AX SETCC foo+4(SB) // LTYPE2 rimnon { outcode(int($1), &$2); } DIVB AX DIVB foo+4(SB) PUSHL $foo+4(SB) POPL AX // LTYPE3 rimrem { outcode(int($1), &$2); } SUBB $1, AX SUBB $1, foo+4(SB) SUBB BX, AX SUBB BX, foo+4(SB) // LTYPE4 remrim { outcode(int($1), &$2); } CMPB AX, $1 CMPB foo+4(SB), $4 CMPB BX, AX
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Apr 09 18:57:21 GMT 2019 - 2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
void testWriteSetupWireFormat() { // Given trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, "test"); byte[] dst = new byte[10]; int dstIndex = 0; // When int bytesWritten = trans2GetDfsReferral.writeSetupWireFormat(dst, dstIndex); // Then assertEquals(2, bytesWritten); assertEquals(SmbComTransaction.TRANS2_GET_DFS_REFERRAL, dst[0]);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java
* @param h2 the second hour * @param m2 the second minute * @return positive if first time is earlier, 0 if equal, negative if later */ protected int compareTime(final int h1, final int m1, final int h2, final int m2) { if (h1 < h2) { return 1; } if (h1 == h2) { if (m1 == m2) { return 0; }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Nov 23 12:34:02 GMT 2025 - 10K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/IntMathTest.java
private static int saturatedCast(BigInteger big) { if (big.compareTo(MAX_INT) > 0) { return Integer.MAX_VALUE; } if (big.compareTo(MIN_INT) < 0) { return Integer.MIN_VALUE; } return big.intValue(); } private void assertOperationEquals(int a, int b, String op, int expected, int actual) { if (expected != actual) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
*/ private String decodeWideStringPointer(NdrBuffer buf) throws NdrException { int pointer = buf.dec_ndr_long(); if (pointer == 0) { return null; // NULL pointer } int maxCount = buf.dec_ndr_long(); int offset = buf.dec_ndr_long(); int actualCount = buf.dec_ndr_long(); if (actualCount <= 0) { return ""; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 16.4K bytes - Click Count (0) -
docs/zh/docs/advanced/advanced-python-types.md
def say_hi(name: Optional[str]): print(f"Hey {name}!") ``` 参数 `name` 被定义为 `Optional[str]`,但它并不是“可选”的,你不能不传这个参数就调用函数: ```Python say_hi() # 哎呀,这会报错!😱 ``` 参数 `name` 仍然是必填的(不是“可选”),因为它没有默认值。不过,`name` 接受 `None` 作为取值: ```Python say_hi(name=None) # 这样可以,None 是有效的 🎉 ``` 好消息是,在大多数情况下,你可以直接使用 `|` 来定义类型联合: ```python def say_hi(name: str | None): print(f"Hey {name}!") ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/DcerpcConstants.java
*/ int RPC_PT_FAULT = 0x03; /** * Bind packet type - establishes context */ int RPC_PT_BIND = 0x0B; /** * Bind acknowledgment packet type */ int RPC_PT_BIND_ACK = 0x0C; /** * Bind negative acknowledgment packet type */ int RPC_PT_BIND_NAK = 0x0D; /** * Alter context packet type */ int RPC_PT_ALTER_CONTEXT = 0x0E; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.3K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
requests.set(0); misses.set(0); } @Benchmark int time(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += cache.getUnchecked(nextRandomKey()); } requests.addAndGet(reps); return dummy; } private int nextRandomKey() { int a = random.nextInt(max); /*Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.4K bytes - Click Count (0)