code: public static float smallDotProduct_Float(float[] a, float[] b, int length) {
          float sumA = 0.0f;
          float sumB = 0.0f;
          switch (length) {
              case 7:
                  sumA = a[6] * b[6];
              case 6:
                  sumB = a[5] * b[5];
              case 5:
                  sumA += a[4] * b[4];
              case 4:
                  sumB += a[3] * b[3];
              case 3:
                  sumA += a[2] * b[2];
              case 2:
                  sumB += a[1] * b[1];
              case 1:
                  sumA += a[0] * b[0];
              case 0:
              default:
                  return sumA + sumB;
          }
      }
docs: WARNING: only returns the right answer for vectors of length < MAX_SMALL_DOT_PRODUCT_LENGTH
  @param a
  @param b
  @param length
  @return