Add private function mju_isZeroByte to check for byte-wise zero.

PiperOrigin-RevId: 810456282
Change-Id: I877d0f9225e7a783ed7ff12ce54f4ed0a7889793
This commit is contained in:
Yuval Tassa
2025-09-23 08:48:43 -07:00
committed by Copybara-Service
parent bb0878417e
commit d71d42a374
8 changed files with 128 additions and 6 deletions
+1 -1
View File
@@ -1303,7 +1303,7 @@ MJAPI const char* mju_warningText(int warning, size_t info);
MJAPI int mju_isBad(mjtNum x);
// Return 1 if all elements are 0.
MJAPI int mju_isZero(mjtNum* vec, int n);
MJAPI int mju_isZero(const mjtNum* vec, int n);
// Standard normal random number generator (optional second number).
MJAPI mjtNum mju_standardNormal(mjtNum* num2);