blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
721
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
57
| license_type
stringclasses 2
values | repo_name
stringlengths 5
91
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 321
values | visit_date
timestamp[ns]date 2016-08-12 09:31:09
2023-09-06 10:45:07
| revision_date
timestamp[ns]date 2010-09-28 14:01:40
2023-09-06 06:22:19
| committer_date
timestamp[ns]date 2010-09-28 14:01:40
2023-09-06 06:22:19
| github_id
int64 426
681M
| star_events_count
int64 101
243k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 23
values | gha_event_created_at
timestamp[ns]date 2012-06-28 18:51:49
2023-09-14 21:59:16
⌀ | gha_created_at
timestamp[ns]date 2008-02-11 22:55:26
2023-08-10 11:14:58
⌀ | gha_language
stringclasses 147
values | src_encoding
stringclasses 26
values | language
stringclasses 2
values | is_vendor
bool 2
classes | is_generated
bool 2
classes | length_bytes
int64 6
10.2M
| extension
stringclasses 115
values | filename
stringlengths 3
113
| content
stringlengths 6
10.2M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc7622bfde2a0694ce06ede7a4814a43d778f764
|
67305fcba68fdf469862aed2959ad1dd5b22a536
|
/rt-thread/examples/kernel/thread_delete.c
|
72eb4ec00886b9bf4fdbd1de8a2db8bec533b6d3
|
[
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
RT-Thread/IoT_Board
|
cdabf100a8d515fbcaa65ab0b72ec67acb0d2c9a
|
2d218a4e06f06dbb356ec00767904f91d00db7cc
|
refs/heads/master
| 2023-09-04T16:51:34.485240
| 2022-01-19T01:26:16
| 2022-01-19T01:26:16
| 161,133,933
| 344
| 238
|
Apache-2.0
| 2023-06-06T04:10:57
| 2018-12-10T07:21:46
|
C
|
UTF-8
|
C
| false
| false
| 3,599
|
c
|
thread_delete.c
|
/*
* 程序清单:删除线程
*
* 这个例子会创建两个线程,在一个线程中删除另外一个线程。
*/
#include <rtthread.h>
#include "tc_comm.h"
/*
* 线程删除(rt_thread_delete)函数仅适合于动态线程,为了在一个线程
* 中访问另一个线程的控制块,所以把线程块指针声明成全局类型以供全
* 局访问
*/
static rt_thread_t tid1 = RT_NULL, tid2 = RT_NULL;
/* 线程1的入口函数 */
static void thread1_entry(void* parameter)
{
rt_uint32_t count = 0;
while (1)
{
/* 线程1采用低优先级运行,一直打印计数值 */
// rt_kprintf("thread count: %d\n", count ++);
count ++;
}
}
static void thread1_cleanup(struct rt_thread *tid)
{
if (tid != tid1)
{
tc_stat(TC_STAT_END | TC_STAT_FAILED);
return ;
}
rt_kprintf("thread1 end\n");
tid1 = RT_NULL;
}
/* 线程2的入口函数 */
static void thread2_entry(void* parameter)
{
/* 线程2拥有较高的优先级,以抢占线程1而获得执行 */
/* 线程2启动后先睡眠10个OS Tick */
rt_thread_delay(RT_TICK_PER_SECOND);
/*
* 线程2唤醒后直接删除线程1,删除线程1后,线程1自动脱离就绪线程
* 队列
*/
rt_thread_delete(tid1);
/*
* 线程2继续休眠10个OS Tick然后退出,线程2休眠后应切换到idle线程
* idle线程将执行真正的线程1控制块和线程栈的删除
*/
rt_thread_delay(RT_TICK_PER_SECOND);
}
static void thread2_cleanup(struct rt_thread *tid)
{
/*
* 线程2运行结束后也将自动被删除(线程控制块和线程栈在idle线
* 程中释放)
*/
if (tid != tid2)
{
tc_stat(TC_STAT_END | TC_STAT_FAILED);
return ;
}
rt_kprintf("thread2 end\n");
tid2 = RT_NULL;
tc_done(TC_STAT_PASSED);
}
/* 线程删除示例的初始化 */
int thread_delete_init()
{
/* 创建线程1 */
tid1 = rt_thread_create("t1", /* 线程1的名称是t1 */
thread1_entry, RT_NULL, /* 入口是thread1_entry,参数是RT_NULL */
THREAD_STACK_SIZE, THREAD_PRIORITY, THREAD_TIMESLICE);
if (tid1 != RT_NULL) /* 如果获得线程控制块,启动这个线程 */
{
tid1->cleanup = thread1_cleanup;
rt_thread_startup(tid1);
}
else
tc_stat(TC_STAT_END | TC_STAT_FAILED);
/* 创建线程1 */
tid2 = rt_thread_create("t2", /* 线程1的名称是t2 */
thread2_entry, RT_NULL, /* 入口是thread2_entry,参数是RT_NULL */
THREAD_STACK_SIZE, THREAD_PRIORITY - 1, THREAD_TIMESLICE);
if (tid2 != RT_NULL) /* 如果获得线程控制块,启动这个线程 */
{
tid2->cleanup = thread2_cleanup;
rt_thread_startup(tid2);
}
else
tc_stat(TC_STAT_END | TC_STAT_FAILED);
return 10 * RT_TICK_PER_SECOND;
}
#ifdef RT_USING_TC
static void _tc_cleanup()
{
/* lock scheduler */
rt_enter_critical();
/* delete thread */
if (tid1 != RT_NULL)
{
rt_kprintf("tid1 is %p, should be NULL\n", tid1);
tc_stat(TC_STAT_FAILED);
}
if (tid2 != RT_NULL)
{
rt_kprintf("tid2 is %p, should be NULL\n", tid2);
tc_stat(TC_STAT_FAILED);
}
/* unlock scheduler */
rt_exit_critical();
}
int _tc_thread_delete()
{
/* set tc cleanup */
tc_cleanup(_tc_cleanup);
return thread_delete_init();
}
FINSH_FUNCTION_EXPORT(_tc_thread_delete, a thread delete example);
#else
int rt_application_init()
{
thread_delete_init();
return 0;
}
#endif
|
65b242ec7f69b0e85937b6e05601eb1a354970a4
|
94b153fe49c2e7bd901c4f26d3cc4134920b4ccf
|
/src/themis/sym_enc_message.c
|
b2768928e7d690a05a499d73743bcd958a2c85b8
|
[
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] |
permissive
|
cossacklabs/themis
|
d6d39836fcebe88d228d25a670a35c556b6a117d
|
86096502c48a80edb11f567c92e26eb463eae36c
|
refs/heads/master
| 2023-08-17T03:48:03.760843
| 2023-07-10T19:57:46
| 2023-07-10T19:57:46
| 35,159,920
| 1,831
| 168
|
Apache-2.0
| 2023-09-14T04:05:12
| 2015-05-06T13:25:25
|
C
|
UTF-8
|
C
| false
| false
| 35,828
|
c
|
sym_enc_message.c
|
/*
* Copyright (c) 2015 Cossack Labs Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "themis/sym_enc_message.h"
#include <string.h>
#include <soter/soter.h>
#include "themis/secure_cell_alg.h"
#include "themis/themis_portable_endian.h"
#define THEMIS_SYM_KDF_KEY_LABEL "Themis secure cell message key"
#define THEMIS_SYM_KDF_IV_LABEL "Themis secure cell message iv"
themis_status_t themis_sym_kdf(const uint8_t* master_key,
const size_t master_key_length,
const char* label,
const uint8_t* context,
const size_t context_length,
const uint8_t* context2,
const size_t context2_length,
uint8_t* key,
size_t key_length)
{
THEMIS_CHECK_PARAM(master_key != NULL && master_key_length != 0);
THEMIS_CHECK_PARAM(context != NULL && context_length != 0);
soter_kdf_context_buf_t ctx[2] = {{context, context_length}, {context2, context2_length}};
THEMIS_CHECK(soter_kdf(master_key,
master_key_length,
label,
ctx,
(context2 == NULL || context2_length == 0) ? 1 : 2,
key,
key_length)
== THEMIS_SUCCESS);
return THEMIS_SUCCESS;
}
themis_status_t themis_auth_sym_plain_encrypt(uint32_t alg,
const uint8_t* key,
const size_t key_length,
const uint8_t* iv,
const size_t iv_length,
const uint8_t* aad,
const size_t aad_length,
const uint8_t* message,
const size_t message_length,
uint8_t* encrypted_message,
size_t* encrypted_message_length,
uint8_t* auth_tag,
uint32_t* auth_tag_length)
{
size_t auth_tag_length_ = *auth_tag_length;
soter_sym_ctx_t* ctx = soter_sym_aead_encrypt_create(alg, key, key_length, NULL, 0, iv, iv_length);
THEMIS_CHECK(ctx != NULL);
if (aad != NULL || aad_length != 0) {
THEMIS_CHECK__(soter_sym_aead_encrypt_aad(ctx, aad, aad_length) == THEMIS_SUCCESS,
soter_sym_aead_encrypt_destroy(ctx);
return THEMIS_FAIL);
}
THEMIS_CHECK__(soter_sym_aead_encrypt_update(ctx, message, message_length, encrypted_message, encrypted_message_length)
== THEMIS_SUCCESS,
soter_sym_aead_encrypt_destroy(ctx);
return THEMIS_FAIL);
THEMIS_CHECK__(soter_sym_aead_encrypt_final(ctx, auth_tag, &auth_tag_length_) == THEMIS_SUCCESS,
soter_sym_aead_encrypt_destroy(ctx);
return THEMIS_FAIL);
soter_sym_aead_encrypt_destroy(ctx);
if (auth_tag_length_ > UINT32_MAX) {
return THEMIS_INVALID_PARAMETER;
}
*auth_tag_length = (uint32_t)auth_tag_length_;
return THEMIS_SUCCESS;
}
themis_status_t themis_auth_sym_plain_decrypt(uint32_t alg,
const uint8_t* key,
const size_t key_length,
const uint8_t* iv,
const size_t iv_length,
const uint8_t* aad,
const size_t aad_length,
const uint8_t* encrypted_message,
const size_t encrypted_message_length,
uint8_t* message,
size_t* message_length,
const uint8_t* auth_tag,
const size_t auth_tag_length)
{
soter_sym_ctx_t* ctx = soter_sym_aead_decrypt_create(alg, key, key_length, NULL, 0, iv, iv_length);
THEMIS_CHECK(ctx != NULL)
if (aad != NULL || aad_length != 0) {
THEMIS_CHECK__(soter_sym_aead_decrypt_aad(ctx, aad, aad_length) == THEMIS_SUCCESS,
soter_sym_aead_decrypt_destroy(ctx);
return THEMIS_FAIL);
}
THEMIS_CHECK__(soter_sym_aead_decrypt_update(ctx, encrypted_message, encrypted_message_length, message, message_length)
== THEMIS_SUCCESS,
soter_sym_aead_decrypt_destroy(ctx);
return THEMIS_FAIL);
THEMIS_CHECK__(soter_sym_aead_decrypt_final(ctx, auth_tag, auth_tag_length) == THEMIS_SUCCESS,
soter_sym_aead_decrypt_destroy(ctx);
return THEMIS_FAIL);
soter_sym_aead_decrypt_destroy(ctx);
return THEMIS_SUCCESS;
}
themis_status_t themis_sym_plain_encrypt(uint32_t alg,
const uint8_t* key,
const size_t key_length,
const uint8_t* iv,
const size_t iv_length,
const uint8_t* message,
const size_t message_length,
uint8_t* encrypted_message,
size_t* encrypted_message_length)
{
soter_sym_ctx_t* ctx = soter_sym_encrypt_create(alg, key, key_length, NULL, 0, iv, iv_length);
THEMIS_CHECK__(ctx, return THEMIS_NO_MEMORY);
size_t add_length = (*encrypted_message_length);
themis_status_t res = soter_sym_encrypt_update(ctx,
message,
message_length,
encrypted_message,
encrypted_message_length);
THEMIS_CHECK__(THEMIS_SUCCESS == res, soter_sym_encrypt_destroy(ctx); return res);
add_length -= (*encrypted_message_length);
res = soter_sym_encrypt_final(ctx, encrypted_message + (*encrypted_message_length), &add_length);
THEMIS_CHECK__(res == THEMIS_SUCCESS, soter_sym_encrypt_destroy(ctx);
(*encrypted_message_length) += add_length;
return res);
(*encrypted_message_length) += add_length;
soter_sym_encrypt_destroy(ctx);
return THEMIS_SUCCESS;
}
themis_status_t themis_sym_plain_decrypt(uint32_t alg,
const uint8_t* key,
const size_t key_length,
const uint8_t* iv,
const size_t iv_length,
const uint8_t* encrypted_message,
const size_t encrypted_message_length,
uint8_t* message,
size_t* message_length)
{
soter_sym_ctx_t* ctx = soter_sym_decrypt_create(alg, key, key_length, NULL, 0, iv, iv_length);
THEMIS_CHECK(ctx != NULL);
size_t add_length = (*message_length);
themis_status_t res = soter_sym_decrypt_update(ctx,
encrypted_message,
encrypted_message_length,
message,
message_length);
THEMIS_CHECK__(THEMIS_SUCCESS == res, soter_sym_decrypt_destroy(ctx); return res);
add_length -= (*message_length);
res = soter_sym_decrypt_final(ctx, message + (*message_length), &add_length);
THEMIS_CHECK__(res == THEMIS_SUCCESS, soter_sym_decrypt_destroy(ctx);
(*message_length) += add_length;
return res);
(*message_length) += add_length;
soter_sym_decrypt_destroy(ctx);
return THEMIS_SUCCESS;
}
static inline size_t default_auth_token_size(void)
{
return themis_scell_auth_token_key_min_size + THEMIS_AUTH_SYM_IV_LENGTH
+ THEMIS_AUTH_SYM_AUTH_TAG_LENGTH;
}
themis_status_t themis_auth_sym_kdf_context(uint32_t message_length,
uint8_t* kdf_context,
size_t* kdf_context_length)
{
if (*kdf_context_length < sizeof(uint32_t)) {
*kdf_context_length = sizeof(uint32_t);
return THEMIS_BUFFER_TOO_SMALL;
}
stream_write_uint32LE(kdf_context, message_length);
*kdf_context_length = sizeof(uint32_t);
return THEMIS_SUCCESS;
}
#ifdef SCELL_COMPAT
/*
* Themis 0.9.6 incorrectly used 64-bit message length for this field.
*/
static themis_status_t themis_auth_sym_kdf_context_compat(uint32_t message_length,
uint8_t* kdf_context,
size_t* kdf_context_length)
{
if (*kdf_context_length < sizeof(uint64_t)) {
*kdf_context_length = sizeof(uint64_t);
return THEMIS_BUFFER_TOO_SMALL;
}
stream_write_uint64LE(kdf_context, message_length);
*kdf_context_length = sizeof(uint64_t);
return THEMIS_SUCCESS;
}
#endif
themis_status_t themis_auth_sym_derive_encryption_key(uint32_t soter_alg,
const uint8_t* key,
size_t key_length,
const uint8_t* kdf_context,
size_t kdf_context_length,
const uint8_t* user_context,
size_t user_context_length,
uint8_t* derived_key,
size_t* derived_key_length)
{
size_t required_length = soter_alg_key_length(soter_alg);
switch (required_length) {
case SOTER_SYM_256_KEY_LENGTH / 8:
case SOTER_SYM_192_KEY_LENGTH / 8:
case SOTER_SYM_128_KEY_LENGTH / 8:
break;
default:
return THEMIS_FAIL;
}
/* Internal buffer must have suitable size */
if (*derived_key_length < required_length) {
return THEMIS_FAIL;
}
*derived_key_length = required_length;
/*
* SOTER_SYM_NOKDF means Soter KDF in this context.
* This is the only KDF allowed for master key API.
*/
switch (soter_alg_kdf(soter_alg)) {
case SOTER_SYM_NOKDF: {
return themis_sym_kdf(key,
key_length,
THEMIS_SYM_KDF_KEY_LABEL,
kdf_context,
kdf_context_length,
user_context,
user_context_length,
derived_key,
*derived_key_length);
}
default:
return THEMIS_FAIL;
}
}
themis_status_t themis_auth_sym_encrypt_message_(const uint8_t* key,
size_t key_length,
const uint8_t* message,
size_t message_length,
const uint8_t* user_context,
size_t user_context_length,
uint8_t* auth_token,
size_t* auth_token_length,
uint8_t* encrypted_message,
size_t* encrypted_message_length)
{
themis_status_t res = THEMIS_FAIL;
uint8_t kdf_context[THEMIS_AUTH_SYM_MAX_KDF_CONTEXT_LENGTH] = {0};
uint8_t iv[THEMIS_AUTH_SYM_IV_LENGTH] = {0};
uint8_t auth_tag[THEMIS_AUTH_SYM_AUTH_TAG_LENGTH] = {0};
uint8_t derived_key[THEMIS_AUTH_SYM_KEY_LENGTH / 8] = {0};
size_t kdf_context_length = sizeof(kdf_context);
size_t derived_key_length = sizeof(derived_key);
size_t auth_token_real_length = 0;
struct themis_scell_auth_token_key hdr;
/* Message length is currently stored as 32-bit integer, sorry */
if (message_length > UINT32_MAX) {
return THEMIS_INVALID_PARAMETER;
}
memset(&hdr, 0, sizeof(hdr));
hdr.alg = THEMIS_AUTH_SYM_ALG;
hdr.iv = iv;
hdr.iv_length = sizeof(iv);
hdr.auth_tag = auth_tag;
hdr.auth_tag_length = sizeof(auth_tag);
hdr.message_length = (uint32_t)message_length;
res = themis_auth_sym_kdf_context(hdr.message_length, kdf_context, &kdf_context_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
res = themis_auth_sym_derive_encryption_key(hdr.alg,
key,
key_length,
kdf_context,
kdf_context_length,
user_context,
user_context_length,
derived_key,
&derived_key_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
res = soter_rand(iv, sizeof(iv));
if (res != THEMIS_SUCCESS) {
goto error;
}
res = themis_auth_sym_plain_encrypt(hdr.alg,
derived_key,
derived_key_length,
hdr.iv,
hdr.iv_length,
user_context,
user_context_length,
message,
message_length,
encrypted_message,
encrypted_message_length,
&auth_tag[0],
&hdr.auth_tag_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
/* In valid Secure Cells auth token length always fits into uint32_t. */
auth_token_real_length = (uint32_t)themis_scell_auth_token_key_size(&hdr);
if (*auth_token_length < auth_token_real_length) {
*auth_token_length = auth_token_real_length;
res = THEMIS_BUFFER_TOO_SMALL;
goto error;
}
res = themis_write_scell_auth_token_key(&hdr, auth_token, *auth_token_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
*auth_token_length = auth_token_real_length;
*encrypted_message_length = message_length;
error:
soter_wipe(iv, sizeof(iv));
soter_wipe(auth_tag, sizeof(auth_tag));
soter_wipe(derived_key, sizeof(derived_key));
return res;
}
themis_status_t themis_auth_sym_encrypt_message(const uint8_t* key,
size_t key_length,
const uint8_t* message,
size_t message_length,
const uint8_t* user_context,
size_t user_context_length,
uint8_t* auth_token,
size_t* auth_token_length,
uint8_t* encrypted_message,
size_t* encrypted_message_length)
{
THEMIS_CHECK_PARAM(key != NULL && key_length != 0);
THEMIS_CHECK_PARAM(message != NULL && message_length != 0);
if (user_context_length != 0) {
THEMIS_CHECK_PARAM(user_context != NULL);
}
THEMIS_CHECK_PARAM(auth_token_length != NULL);
THEMIS_CHECK_PARAM(encrypted_message_length != NULL);
if (!auth_token_length || !encrypted_message || *auth_token_length < default_auth_token_size()
|| *encrypted_message_length < message_length) {
*auth_token_length = default_auth_token_size();
*encrypted_message_length = message_length;
return THEMIS_BUFFER_TOO_SMALL;
}
return themis_auth_sym_encrypt_message_(key,
key_length,
message,
message_length,
user_context,
user_context_length,
auth_token,
auth_token_length,
encrypted_message,
encrypted_message_length);
}
themis_status_t themis_auth_sym_decrypt_message_(const uint8_t* key,
size_t key_length,
const uint8_t* user_context,
size_t user_context_length,
const uint8_t* auth_token,
size_t auth_token_length,
const uint8_t* encrypted_message,
const size_t encrypted_message_length,
uint8_t* message,
size_t* message_length)
{
themis_status_t res = THEMIS_FAIL;
struct themis_scell_auth_token_key hdr;
/* Use maximum possible length, not the default one */
uint8_t kdf_context[THEMIS_AUTH_SYM_MAX_KDF_CONTEXT_LENGTH] = {0};
uint8_t derived_key[THEMIS_AUTH_SYM_MAX_KEY_LENGTH / 8] = {0};
size_t kdf_context_length = sizeof(kdf_context);
size_t derived_key_length = sizeof(derived_key);
memset(&hdr, 0, sizeof(hdr));
res = themis_read_scell_auth_token_key(auth_token, auth_token_length, &hdr);
if (res != THEMIS_SUCCESS) {
return res;
}
/* Check that message header is consistent with our expectations */
if (hdr.message_length != encrypted_message_length) {
return THEMIS_FAIL;
}
if (!soter_alg_reserved_bits_valid(hdr.alg)) {
return THEMIS_FAIL;
}
res = themis_auth_sym_kdf_context(hdr.message_length, kdf_context, &kdf_context_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
res = themis_auth_sym_derive_encryption_key(hdr.alg,
key,
key_length,
kdf_context,
kdf_context_length,
user_context,
user_context_length,
derived_key,
&derived_key_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
res = themis_auth_sym_plain_decrypt(hdr.alg,
derived_key,
derived_key_length,
hdr.iv,
hdr.iv_length,
user_context,
user_context_length,
encrypted_message,
encrypted_message_length,
message,
message_length,
hdr.auth_tag,
hdr.auth_tag_length);
/*
* Themis 0.9.6 used slightly different KDF. If decryption fails,
* maybe it was encrypted with that incorrect key. Try it out.
*/
#ifdef SCELL_COMPAT
if (res != THEMIS_SUCCESS && res != THEMIS_BUFFER_TOO_SMALL) {
kdf_context_length = sizeof(kdf_context);
res = themis_auth_sym_kdf_context_compat(hdr.message_length, kdf_context, &kdf_context_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
res = themis_auth_sym_derive_encryption_key(hdr.alg,
key,
key_length,
kdf_context,
kdf_context_length,
user_context,
user_context_length,
derived_key,
&derived_key_length);
if (res != THEMIS_SUCCESS) {
goto error;
}
res = themis_auth_sym_plain_decrypt(hdr.alg,
derived_key,
derived_key_length,
hdr.iv,
hdr.iv_length,
user_context,
user_context_length,
encrypted_message,
encrypted_message_length,
message,
message_length,
hdr.auth_tag,
hdr.auth_tag_length);
}
#endif
/* Sanity check of resulting message length */
if (*message_length != encrypted_message_length) {
res = THEMIS_FAIL;
goto error;
}
error:
soter_wipe(derived_key, sizeof(derived_key));
return res;
}
themis_status_t themis_auth_sym_decrypt_message(const uint8_t* key,
size_t key_length,
const uint8_t* user_context,
size_t user_context_length,
const uint8_t* auth_token,
size_t auth_token_length,
const uint8_t* encrypted_message,
size_t encrypted_message_length,
uint8_t* message,
size_t* message_length)
{
themis_status_t res = THEMIS_FAIL;
uint32_t expected_message_length = 0;
THEMIS_CHECK_PARAM(key != NULL && key_length != 0);
if (user_context_length != 0) {
THEMIS_CHECK_PARAM(user_context != NULL);
}
THEMIS_CHECK_PARAM(auth_token != NULL && auth_token_length != 0);
THEMIS_CHECK_PARAM(message_length != NULL);
/* Do a quick guess without parsing the message too deeply here */
res = themis_scell_auth_token_key_message_size(auth_token, auth_token_length, &expected_message_length);
if (res != THEMIS_SUCCESS) {
return res;
}
if (!message || *message_length < expected_message_length) {
*message_length = expected_message_length;
return THEMIS_BUFFER_TOO_SMALL;
}
/* encrypted_message may be omitted when only querying plaintext size */
THEMIS_CHECK_PARAM(encrypted_message != NULL && encrypted_message_length != 0);
return themis_auth_sym_decrypt_message_(key,
key_length,
user_context,
user_context_length,
auth_token,
auth_token_length,
encrypted_message,
encrypted_message_length,
message,
message_length);
}
static themis_status_t themis_sym_derive_encryption_key(const uint8_t* key,
size_t key_length,
size_t message_length,
uint8_t* derived_key,
size_t derived_key_length)
{
uint8_t kdf_context[sizeof(uint32_t)];
/*
* Note that we use only the least significant 32 bits of size_t here.
* If message_length is longer that 4 GB then the context value gets
* truncated here. (And on 16-bit platforms it will be zero-padded.)
*/
stream_write_uint32LE(kdf_context, (uint32_t)message_length);
return themis_sym_kdf(key,
key_length,
THEMIS_SYM_KDF_KEY_LABEL,
kdf_context,
sizeof(kdf_context),
NULL,
0,
derived_key,
derived_key_length);
}
#ifdef SCELL_COMPAT
/*
* Themis 0.9.6 used 64-bit message length in computations, so here we go.
*/
static themis_status_t themis_sym_derive_encryption_key_compat(const uint8_t* key,
size_t key_length,
size_t message_length,
uint8_t* derived_key,
size_t derived_key_length)
{
uint8_t kdf_context[sizeof(uint64_t)];
stream_write_uint64LE(kdf_context, (uint64_t)message_length);
return themis_sym_kdf(key,
key_length,
THEMIS_SYM_KDF_KEY_LABEL,
kdf_context,
sizeof(kdf_context),
NULL,
0,
derived_key,
derived_key_length);
}
#endif
static themis_status_t themis_sym_derive_encryption_iv(const uint8_t* key,
size_t key_length,
const uint8_t* context,
size_t context_length,
uint8_t* iv,
size_t iv_length)
{
/*
* Yes, you are reading it correct. We do derive IV with a KDF.
* Context Imprint mode needs to be completely deterministic.
* That's why it has lower security than Seal or Token Protect.
*/
return themis_sym_kdf(key, key_length, THEMIS_SYM_KDF_IV_LABEL, context, context_length, NULL, 0, iv, iv_length);
}
themis_status_t themis_sym_encrypt_message_u_(const uint8_t* key,
const size_t key_length,
const uint8_t* message,
const size_t message_length,
const uint8_t* context,
const size_t context_length,
uint8_t* encrypted_message,
size_t* encrypted_message_length)
{
themis_status_t res = THEMIS_FAIL;
uint8_t iv[THEMIS_SYM_IV_LENGTH];
THEMIS_CHECK_PARAM(message != NULL && message_length != 0);
THEMIS_CHECK_PARAM(context != NULL && context_length != 0);
if ((*encrypted_message_length) < message_length) {
(*encrypted_message_length) = message_length;
return THEMIS_BUFFER_TOO_SMALL;
}
(*encrypted_message_length) = message_length;
res = themis_sym_derive_encryption_iv(key, key_length, context, context_length, iv, sizeof(iv));
if (res != THEMIS_SUCCESS) {
return res;
}
res = themis_sym_plain_encrypt(THEMIS_SYM_ALG,
key,
key_length,
iv,
sizeof(iv),
message,
message_length,
encrypted_message,
encrypted_message_length);
soter_wipe(iv, sizeof(iv));
return res;
}
themis_status_t themis_sym_encrypt_message_u(const uint8_t* key,
const size_t key_length,
const uint8_t* context,
const size_t context_length,
const uint8_t* message,
const size_t message_length,
uint8_t* encrypted_message,
size_t* encrypted_message_length)
{
themis_status_t res = THEMIS_FAIL;
uint8_t derived_key[THEMIS_SYM_KEY_LENGTH / 8];
res = themis_sym_derive_encryption_key(key, key_length, message_length, derived_key, sizeof(derived_key));
if (res != THEMIS_SUCCESS) {
return res;
}
res = themis_sym_encrypt_message_u_(derived_key,
sizeof(derived_key),
message,
message_length,
context,
context_length,
encrypted_message,
encrypted_message_length);
soter_wipe(derived_key, sizeof(derived_key));
return res;
}
themis_status_t themis_sym_decrypt_message_u_(const uint8_t* key,
const size_t key_length,
const uint8_t* context,
const size_t context_length,
const uint8_t* encrypted_message,
const size_t encrypted_message_length,
uint8_t* message,
size_t* message_length)
{
themis_status_t res = THEMIS_FAIL;
uint8_t iv[THEMIS_SYM_IV_LENGTH];
THEMIS_CHECK_PARAM(encrypted_message != NULL && encrypted_message_length != 0);
THEMIS_CHECK_PARAM(context != NULL && context_length != 0);
if ((*message_length) < encrypted_message_length) {
(*message_length) = encrypted_message_length;
return THEMIS_BUFFER_TOO_SMALL;
}
(*message_length) = encrypted_message_length;
res = themis_sym_derive_encryption_iv(key, key_length, context, context_length, iv, sizeof(iv));
if (res != THEMIS_SUCCESS) {
return res;
}
res = themis_sym_plain_decrypt(THEMIS_SYM_ALG,
key,
key_length,
iv,
sizeof(iv),
encrypted_message,
encrypted_message_length,
message,
message_length);
soter_wipe(iv, sizeof(iv));
return res;
}
themis_status_t themis_sym_decrypt_message_u(const uint8_t* key,
const size_t key_length,
const uint8_t* context,
const size_t context_length,
const uint8_t* encrypted_message,
const size_t encrypted_message_length,
uint8_t* message,
size_t* message_length)
{
themis_status_t res = THEMIS_FAIL;
uint8_t derived_key[THEMIS_SYM_KEY_LENGTH / 8];
res = themis_sym_derive_encryption_key(key,
key_length,
encrypted_message_length,
derived_key,
sizeof(derived_key));
if (res != THEMIS_SUCCESS) {
return res;
}
res = themis_sym_decrypt_message_u_(derived_key,
sizeof(derived_key),
context,
context_length,
encrypted_message,
encrypted_message_length,
message,
message_length);
/*
* Themis 0.9.6 used slightly different KDF. If decryption fails,
* maybe it was encrypted with that incorrect key. Try it out.
*/
#ifdef SCELL_COMPAT
if (res != THEMIS_SUCCESS && res != THEMIS_BUFFER_TOO_SMALL) {
res = themis_sym_derive_encryption_key_compat(key,
key_length,
encrypted_message_length,
derived_key,
sizeof(derived_key));
if (res != THEMIS_SUCCESS) {
goto error;
}
res = themis_sym_decrypt_message_u_(derived_key,
sizeof(derived_key),
context,
context_length,
encrypted_message,
encrypted_message_length,
message,
message_length);
}
error:
#endif
soter_wipe(derived_key, sizeof(derived_key));
return res;
}
|
71ad4d788dcf69794a19518fd25708e9236a928b
|
1ff4566b59f96f1c4d7cae41cecc31c53188a81c
|
/src/commands_parser.c
|
7cdf6c68a8dae8bc418bd341de49f21e272a87fa
|
[
"BSD-3-Clause"
] |
permissive
|
i3/i3
|
e5bb9db3545b77307f39b603cd6420dd192abcc4
|
d6e2a38b5cdf200c0fb82fc4cf7fff7dbcdeb605
|
refs/heads/next
| 2023-08-03T13:40:39.203230
| 2023-07-22T08:24:13
| 2023-07-22T08:24:13
| 30,291,090
| 9,823
| 1,238
|
BSD-3-Clause
| 2023-09-13T06:42:54
| 2015-02-04T09:23:51
|
C
|
UTF-8
|
C
| false
| false
| 17,277
|
c
|
commands_parser.c
|
/*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
*
* commands_parser.c: hand-written parser to parse commands (commands are what
* you bind on keys and what you can send to i3 using the IPC interface, like
* 'move left' or 'workspace 4').
*
* We use a hand-written parser instead of lex/yacc because our commands are
* easy for humans, not for computers. Thus, it’s quite hard to specify a
* context-free grammar for the commands. A PEG grammar would be easier, but
* there’s downsides to every PEG parser generator I have come across so far.
*
* This parser is basically a state machine which looks for literals or strings
* and can push either on a stack. After identifying a literal or string, it
* will either transition to the current state, to a different state, or call a
* function (like cmd_move()).
*
* Special care has been taken that error messages are useful and the code is
* well testable (when compiled with -DTEST_PARSER it will output to stdout
* instead of actually calling any function).
*
*/
#include "all.h"
// Macros to make the YAJL API a bit easier to use.
#define y(x, ...) (command_output.json_gen != NULL ? yajl_gen_##x(command_output.json_gen, ##__VA_ARGS__) : 0)
#define ystr(str) (command_output.json_gen != NULL ? yajl_gen_string(command_output.json_gen, (unsigned char *)str, strlen(str)) : 0)
/*******************************************************************************
* The data structures used for parsing. Essentially the current state and a
* list of tokens for that state.
*
* The GENERATED_* files are generated by generate-commands-parser.pl with the
* input parser-specs/commands.spec.
******************************************************************************/
#include "GENERATED_command_enums.h"
typedef struct token {
char *name;
char *identifier;
/* This might be __CALL */
cmdp_state next_state;
union {
uint16_t call_identifier;
} extra;
} cmdp_token;
typedef struct tokenptr {
cmdp_token *array;
int n;
} cmdp_token_ptr;
#include "GENERATED_command_tokens.h"
/*
* Pushes a string (identified by 'identifier') on the stack. We simply use a
* single array, since the number of entries we have to store is very small.
*
*/
static void push_string(struct stack *stack, const char *identifier, char *str) {
for (int c = 0; c < 10; c++) {
if (stack->stack[c].identifier != NULL)
continue;
/* Found a free slot, let’s store it here. */
stack->stack[c].identifier = identifier;
stack->stack[c].val.str = str;
stack->stack[c].type = STACK_STR;
return;
}
/* When we arrive here, the stack is full. This should not happen and
* means there’s either a bug in this parser or the specification
* contains a command with more than 10 identified tokens. */
fprintf(stderr, "BUG: commands_parser stack full. This means either a bug "
"in the code, or a new command which contains more than "
"10 identified tokens.\n");
exit(EXIT_FAILURE);
}
// TODO move to a common util
static void push_long(struct stack *stack, const char *identifier, long num) {
for (int c = 0; c < 10; c++) {
if (stack->stack[c].identifier != NULL) {
continue;
}
stack->stack[c].identifier = identifier;
stack->stack[c].val.num = num;
stack->stack[c].type = STACK_LONG;
return;
}
/* When we arrive here, the stack is full. This should not happen and
* means there’s either a bug in this parser or the specification
* contains a command with more than 10 identified tokens. */
fprintf(stderr, "BUG: commands_parser stack full. This means either a bug "
"in the code, or a new command which contains more than "
"10 identified tokens.\n");
exit(EXIT_FAILURE);
}
// TODO move to a common util
static const char *get_string(struct stack *stack, const char *identifier) {
for (int c = 0; c < 10; c++) {
if (stack->stack[c].identifier == NULL)
break;
if (strcmp(identifier, stack->stack[c].identifier) == 0)
return stack->stack[c].val.str;
}
return NULL;
}
// TODO move to a common util
static long get_long(struct stack *stack, const char *identifier) {
for (int c = 0; c < 10; c++) {
if (stack->stack[c].identifier == NULL)
break;
if (strcmp(identifier, stack->stack[c].identifier) == 0)
return stack->stack[c].val.num;
}
return 0;
}
// TODO move to a common util
static void clear_stack(struct stack *stack) {
for (int c = 0; c < 10; c++) {
if (stack->stack[c].type == STACK_STR)
free(stack->stack[c].val.str);
stack->stack[c].identifier = NULL;
stack->stack[c].val.str = NULL;
stack->stack[c].val.num = 0;
}
}
/*******************************************************************************
* The parser itself.
******************************************************************************/
static cmdp_state state;
static Match current_match;
/*******************************************************************************
* The (small) stack where identified literals are stored during the parsing
* of a single command (like $workspace).
******************************************************************************/
static struct stack stack;
static struct CommandResultIR subcommand_output;
static struct CommandResultIR command_output;
#include "GENERATED_command_call.h"
static void next_state(const cmdp_token *token) {
if (token->next_state == __CALL) {
subcommand_output.json_gen = command_output.json_gen;
subcommand_output.client = command_output.client;
subcommand_output.needs_tree_render = false;
GENERATED_call(¤t_match, &stack, token->extra.call_identifier, &subcommand_output);
state = subcommand_output.next_state;
/* If any subcommand requires a tree_render(), we need to make the
* whole parser result request a tree_render(). */
if (subcommand_output.needs_tree_render)
command_output.needs_tree_render = true;
clear_stack(&stack);
return;
}
state = token->next_state;
if (state == INITIAL) {
clear_stack(&stack);
}
}
/*
* Parses a string (or word, if as_word is true). Extracted out of
* parse_command so that it can be used in src/workspace.c for interpreting
* workspace commands.
*
*/
char *parse_string(const char **walk, bool as_word) {
const char *beginning = *walk;
/* Handle quoted strings (or words). */
if (**walk == '"') {
beginning++;
(*walk)++;
for (; **walk != '\0' && **walk != '"'; (*walk)++)
if (**walk == '\\' && *(*walk + 1) != '\0')
(*walk)++;
} else {
if (!as_word) {
/* For a string (starting with 's'), the delimiters are
* comma (,) and semicolon (;) which introduce a new
* operation or command, respectively. Also, newlines
* end a command. */
while (**walk != ';' && **walk != ',' &&
**walk != '\0' && **walk != '\r' &&
**walk != '\n')
(*walk)++;
} else {
/* For a word, the delimiters are white space (' ' or
* '\t'), closing square bracket (]), comma (,) and
* semicolon (;). */
while (**walk != ' ' && **walk != '\t' &&
**walk != ']' && **walk != ',' &&
**walk != ';' && **walk != '\r' &&
**walk != '\n' && **walk != '\0')
(*walk)++;
}
}
if (*walk == beginning)
return NULL;
char *str = scalloc(*walk - beginning + 1, 1);
/* We copy manually to handle escaping of characters. */
int inpos, outpos;
for (inpos = 0, outpos = 0;
inpos < (*walk - beginning);
inpos++, outpos++) {
/* We only handle escaped double quotes and backslashes to not break
* backwards compatibility with people using \w in regular expressions
* etc. */
if (beginning[inpos] == '\\' && (beginning[inpos + 1] == '"' || beginning[inpos + 1] == '\\'))
inpos++;
str[outpos] = beginning[inpos];
}
return str;
}
/*
* Parses and executes the given command. If a caller-allocated yajl_gen is
* passed, a json reply will be generated in the format specified by the ipc
* protocol. Pass NULL if no json reply is required.
*
* Free the returned CommandResult with command_result_free().
*/
CommandResult *parse_command(const char *input, yajl_gen gen, ipc_client *client) {
DLOG("COMMAND: *%.4000s*\n", input);
state = INITIAL;
CommandResult *result = scalloc(1, sizeof(CommandResult));
command_output.client = client;
/* A YAJL JSON generator used for formatting replies. */
command_output.json_gen = gen;
y(array_open);
command_output.needs_tree_render = false;
const char *walk = input;
const size_t len = strlen(input);
int c;
const cmdp_token *token;
bool token_handled;
// TODO: make this testable
#ifndef TEST_PARSER
cmd_criteria_init(¤t_match, &subcommand_output);
#endif
/* The "<=" operator is intentional: We also handle the terminating 0-byte
* explicitly by looking for an 'end' token. */
while ((size_t)(walk - input) <= len) {
/* skip whitespace and newlines before every token */
while ((*walk == ' ' || *walk == '\t' ||
*walk == '\r' || *walk == '\n') &&
*walk != '\0')
walk++;
cmdp_token_ptr *ptr = &(tokens[state]);
token_handled = false;
for (c = 0; c < ptr->n; c++) {
token = &(ptr->array[c]);
/* A literal. */
if (token->name[0] == '\'') {
if (strncasecmp(walk, token->name + 1, strlen(token->name) - 1) == 0) {
if (token->identifier != NULL) {
push_string(&stack, token->identifier, sstrdup(token->name + 1));
}
walk += strlen(token->name) - 1;
next_state(token);
token_handled = true;
break;
}
continue;
}
if (strcmp(token->name, "number") == 0) {
/* Handle numbers. We only accept decimal numbers for now. */
char *end = NULL;
errno = 0;
long int num = strtol(walk, &end, 10);
if ((errno == ERANGE && (num == LONG_MIN || num == LONG_MAX)) ||
(errno != 0 && num == 0))
continue;
/* No valid numbers found */
if (end == walk)
continue;
if (token->identifier != NULL) {
push_long(&stack, token->identifier, num);
}
/* Set walk to the first non-number character */
walk = end;
next_state(token);
token_handled = true;
break;
}
if (strcmp(token->name, "string") == 0 ||
strcmp(token->name, "word") == 0) {
char *str = parse_string(&walk, (token->name[0] != 's'));
if (str != NULL) {
if (token->identifier) {
push_string(&stack, token->identifier, str);
}
/* If we are at the end of a quoted string, skip the ending
* double quote. */
if (*walk == '"')
walk++;
next_state(token);
token_handled = true;
break;
}
}
if (strcmp(token->name, "end") == 0) {
if (*walk == '\0' || *walk == ',' || *walk == ';') {
next_state(token);
token_handled = true;
/* To make sure we start with an appropriate matching
* datastructure for commands which do *not* specify any
* criteria, we re-initialize the criteria system after
* every command. */
// TODO: make this testable
#ifndef TEST_PARSER
if (*walk == '\0' || *walk == ';')
cmd_criteria_init(¤t_match, &subcommand_output);
#endif
walk++;
break;
}
}
}
if (!token_handled) {
/* Figure out how much memory we will need to fill in the names of
* all tokens afterwards. */
int tokenlen = 0;
for (c = 0; c < ptr->n; c++)
tokenlen += strlen(ptr->array[c].name) + strlen("'', ");
/* Build up a decent error message. We include the problem, the
* full input, and underline the position where the parser
* currently is. */
char *errormessage;
char *possible_tokens = smalloc(tokenlen + 1);
char *tokenwalk = possible_tokens;
for (c = 0; c < ptr->n; c++) {
token = &(ptr->array[c]);
if (token->name[0] == '\'') {
/* A literal is copied to the error message enclosed with
* single quotes. */
*tokenwalk++ = '\'';
strcpy(tokenwalk, token->name + 1);
tokenwalk += strlen(token->name + 1);
*tokenwalk++ = '\'';
} else {
/* Any other token is copied to the error message enclosed
* with angle brackets. */
*tokenwalk++ = '<';
strcpy(tokenwalk, token->name);
tokenwalk += strlen(token->name);
*tokenwalk++ = '>';
}
if (c < (ptr->n - 1)) {
*tokenwalk++ = ',';
*tokenwalk++ = ' ';
}
}
*tokenwalk = '\0';
sasprintf(&errormessage, "Expected one of these tokens: %s",
possible_tokens);
free(possible_tokens);
/* Contains the same amount of characters as 'input' has, but with
* the unparsable part highlighted using ^ characters. */
char *position = smalloc(len + 1);
for (const char *copywalk = input; *copywalk != '\0'; copywalk++)
position[(copywalk - input)] = (copywalk >= walk ? '^' : ' ');
position[len] = '\0';
ELOG("%s\n", errormessage);
ELOG("Your command: %s\n", input);
ELOG(" %s\n", position);
result->parse_error = true;
result->error_message = errormessage;
/* Format this error message as a JSON reply. */
y(map_open);
ystr("success");
y(bool, false);
/* We set parse_error to true to distinguish this from other
* errors. i3-nagbar is spawned upon keypresses only for parser
* errors. */
ystr("parse_error");
y(bool, true);
ystr("error");
ystr(errormessage);
ystr("input");
ystr(input);
ystr("errorposition");
ystr(position);
y(map_close);
free(position);
clear_stack(&stack);
break;
}
}
y(array_close);
result->needs_tree_render = command_output.needs_tree_render;
return result;
}
/*
* Frees a CommandResult
*/
void command_result_free(CommandResult *result) {
if (result == NULL)
return;
FREE(result->error_message);
FREE(result);
}
/*******************************************************************************
* Code for building the stand-alone binary test.commands_parser which is used
* by t/187-commands-parser.t.
******************************************************************************/
#ifdef TEST_PARSER
/*
* Logs the given message to stdout while prefixing the current time to it,
* but only if debug logging was activated.
* This is to be called by DLOG() which includes filename/linenumber
*
*/
void debuglog(char *fmt, ...) {
va_list args;
va_start(args, fmt);
fprintf(stdout, "# ");
vfprintf(stdout, fmt, args);
va_end(args);
}
void errorlog(char *fmt, ...) {
va_list args;
va_start(args, fmt);
vfprintf(stderr, fmt, args);
va_end(args);
}
int main(int argc, char *argv[]) {
if (argc < 2) {
fprintf(stderr, "Syntax: %s <command>\n", argv[0]);
return 1;
}
yajl_gen gen = yajl_gen_alloc(NULL);
CommandResult *result = parse_command(argv[1], gen, NULL);
command_result_free(result);
yajl_gen_free(gen);
}
#endif
|
6703118997c002a9e34f6e1b1efb05c9df1b4072
|
6884b12f2b7ca386651630c6bb16360ebc8176c6
|
/040-osdev-07/terminal.h
|
80c371732c6543a0adc7450f2456c40e5e46a683
|
[
"MIT"
] |
permissive
|
gynvael/stream
|
2254537b172ae80f4e6150ff9cda8727f1936589
|
47f5e9f89450b86a34a07a84d70623afb34d360b
|
refs/heads/master
| 2023-08-18T18:23:01.122688
| 2023-08-11T07:54:42
| 2023-08-11T07:54:42
| 50,767,329
| 156
| 51
| null | 2017-06-10T21:57:11
| 2016-01-31T09:39:45
|
Python
|
UTF-8
|
C
| false
| false
| 1,280
|
h
|
terminal.h
|
#pragma once
#include <stdint.h>
struct TerminalBackend;
typedef struct TerminalBackend TerminalBackend;
// XXX on creation limit size to 32000x32000
typedef void (*TBfunc_SetCursorPosition)(
TerminalBackend *tb, uint16_t x, uint16_t y);
typedef void (*TBfunc_GetCursorPosition)(
TerminalBackend *tb, uint16_t *x, uint16_t *y);
typedef void (*TBfunc_ClearScreen)(TerminalBackend *tb);
typedef void (*TBfunc_PutCharacter)(TerminalBackend *tb, uint32_t ch);
typedef void (*TBfunc_GetSize)(TerminalBackend *tb,
uint16_t *w, uint16_t *h);
struct TerminalBackend {
TBfunc_SetCursorPosition func_set_cursor_position;
TBfunc_GetCursorPosition func_get_cursor_position;
TBfunc_ClearScreen func_clear_screen;
TBfunc_PutCharacter func_put_character;
TBfunc_GetSize func_get_size;
void *backend_data;
};
void T_SetCursorPosition(
TerminalBackend *tb, uint16_t x, uint16_t y);
void T_GetCursorPosition(
TerminalBackend *tb, uint16_t *x, uint16_t *y);
void T_PutText(TerminalBackend *tb, const char *s);
void T_ClearScreen(TerminalBackend *tb);
void T_PutCharacter(TerminalBackend *tb, uint32_t ch);
void T_GetSize(TerminalBackend *tb, uint16_t *w, uint16_t *h);
void T_Printf(TerminalBackend *tb, const char *fmt, ...);
|
b454cae3e0667e2b033926441029dca5e9c76926
|
39a42d5290dfcae6633c3e4f17dcf3cce90979e6
|
/benchmarks/agent/c/src/dacapomethod.h
|
64e3fc5921afcfd7b79c4e0ac8011d5149d20158
|
[
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] |
permissive
|
dacapobench/dacapobench
|
04a1c25c445af4ca90e5b761b685a85902254cac
|
5a9b22c85eb87fbde6ed80cf2febf36f5e6cab3a
|
refs/heads/main
| 2023-09-03T16:31:03.730829
| 2023-09-01T20:15:38
| 2023-09-01T20:15:38
| 113,319,104
| 128
| 59
|
Apache-2.0
| 2023-08-11T01:00:31
| 2017-12-06T13:21:05
|
Java
|
UTF-8
|
C
| false
| false
| 726
|
h
|
dacapomethod.h
|
#ifndef DACAPO_METHOD_H
#define DACAPO_METHOD_H
#include "dacapo.h"
void method_init();
void method_capabilities(const jvmtiCapabilities* availableCapabilities, jvmtiCapabilities* capabilities);
void method_callbacks(const jvmtiCapabilities* capabilities, jvmtiEventCallbacks* callbacks);
void method_live(jvmtiEnv* jvmti, JNIEnv* env);
void method_logon(JNIEnv* env);
void method_class(jvmtiEnv *env, JNIEnv *jnienv, jthread thread, jclass klass);
void JNICALL callbackMethodEntry(jvmtiEnv *jvmti_env, JNIEnv* jni_env, jthread thread, jmethodID method);
void JNICALL callbackMethodExit(jvmtiEnv *jvmti_env, JNIEnv* jni_env, jthread thread, jmethodID method, jboolean was_popped_by_exception, jvalue return_value);
#endif
|
63960e2d7061236a77717947a3967566df24ed07
|
c475cd8531a94ffae69cc92371d41531dbbddb6c
|
/Libraries/breakpad/src/client/windows/tests/crash_generation_app/resource.h
|
8c7f6570a813ff31b2665bc9b5c8ef3490873942
|
[
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"BSD-3-Clause",
"LicenseRef-scancode-unicode-mappings"
] |
permissive
|
WolfireGames/overgrowth
|
72d3dd29cbd7254337265c29f8de3e5c32400114
|
594a2a4f9da0855304ee8cd5335d042f8e954ce1
|
refs/heads/main
| 2023-08-15T19:36:56.156578
| 2023-05-17T08:17:53
| 2023-05-17T08:20:36
| 467,448,492
| 2,264
| 245
|
Apache-2.0
| 2023-05-09T07:29:58
| 2022-03-08T09:38:54
|
C++
|
UTF-8
|
C
| false
| false
| 3,168
|
h
|
resource.h
|
// Copyright (c) 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// PreCompile.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#ifndef CLIENT_WINDOWS_TESTS_CRASH_GENERATION_APP_RESOURCE_H__
#define CLIENT_WINDOWS_TESTS_CRASH_GENERATION_APP_RESOURCE_H__
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by crash_generation_app.rc
//
#define IDC_MYICON 2
#define IDD_CRASHGENERATIONAPP_DIALOG 102
#define IDS_APP_TITLE 103
#define IDD_ABOUTBOX 103
#define IDM_ABOUT 104
#define IDM_EXIT 105
#define IDI_CRASHGENERATIONAPP 107
#define IDI_SMALL 108
#define IDC_CRASHGENERATIONAPP 109
#define IDR_MAINFRAME 128
#define ID_SERVER_START 32771
#define ID_SERVER_STOP 32772
#define ID_CLIENT_INVALIDPARAM 32773
#define ID_CLIENT_ASSERTFAILURE 32774
#define ID_CLIENT_DEREFZERO 32775
#define ID_CLIENT_PURECALL 32777
#define ID_CLIENT_REQUESTEXPLICITDUMP 32778
#define IDC_STATIC -1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32780
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 110
#endif
#endif
#endif // CLIENT_WINDOWS_TESTS_CRASH_GENERATION_APP_RESOURCE_H__
|
d68f431015823819c6e6df386dde5f5f93084f0e
|
e1cddfd754d952134e72dfd03522c5ea4fb6008e
|
/src/plugins/unittest/svm_fifo_test.c
|
8e186a86c9de9ebebfcd2c6bc8b495c36178c324
|
[
"Apache-2.0"
] |
permissive
|
FDio/vpp
|
0ad30fa1bec2975ffa6b66b45c9f4f32163123b6
|
f234b0d4626d7e686422cc9dfd25958584f4931e
|
refs/heads/master
| 2023-08-31T16:09:04.068646
| 2022-03-14T09:49:15
| 2023-08-31T09:50:00
| 96,556,718
| 1,048
| 630
|
Apache-2.0
| 2023-06-21T05:39:17
| 2017-07-07T16:29:40
|
C
|
UTF-8
|
C
| false
| false
| 87,276
|
c
|
svm_fifo_test.c
|
/*
* Copyright (c) 2019 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <svm/svm_fifo.h>
#include <vlib/vlib.h>
#include <svm/svm_common.h>
#include <svm/fifo_segment.h>
#define SFIFO_TEST_I(_cond, _comment, _args...) \
({ \
int _evald = (_cond); \
if (!(_evald)) { \
fformat(stderr, "FAIL:%d: " _comment "\n", \
__LINE__, ##_args); \
} else { \
fformat(stderr, "PASS:%d: " _comment "\n", \
__LINE__, ##_args); \
} \
_evald; \
})
#define SFIFO_TEST(_cond, _comment, _args...) \
{ \
if (!SFIFO_TEST_I(_cond, _comment, ##_args)) { \
return 1; \
} \
}
typedef struct
{
u32 offset;
u32 len;
} test_pattern_t;
/* *INDENT-OFF* */
test_pattern_t test_pattern[] = {
{380, 8}, {768, 8}, {1156, 8}, {1544, 8}, {1932, 8}, {2320, 8}, {2708, 8},
{2992, 8}, {372, 8}, {760, 8}, {1148, 8}, {1536, 8}, {1924, 8}, {2312, 8},
{2700, 8}, {2984, 8}, {364, 8}, {752, 8}, {1140, 8}, {1528, 8}, {1916, 8},
{2304, 8}, {2692, 8}, {2976, 8}, {356, 8}, {744, 8}, {1132, 8}, {1520, 8},
{1908, 8}, {2296, 8}, {2684, 8}, {2968, 8}, {348, 8}, {736, 8}, {1124, 8},
{1512, 8}, {1900, 8}, {2288, 8}, {2676, 8}, {2960, 8}, {340, 8}, {728, 8},
{1116, 8}, {1504, 8}, {1892, 8}, {2280, 8}, {2668, 8}, {2952, 8}, {332, 8},
{720, 8}, {1108, 8}, {1496, 8}, {1884, 8}, {2272, 8}, {2660, 8}, {2944, 8},
{324, 8}, {712, 8}, {1100, 8}, {1488, 8}, {1876, 8}, {2264, 8}, {2652, 8},
{2936, 8}, {316, 8}, {704, 8}, {1092, 8}, {1480, 8}, {1868, 8}, {2256, 8},
{2644, 8}, {2928, 8}, {308, 8}, {696, 8}, {1084, 8}, {1472, 8}, {1860, 8},
{2248, 8}, {2636, 8}, {2920, 8}, {300, 8}, {688, 8}, {1076, 8}, {1464, 8},
{1852, 8}, {2240, 8}, {2628, 8}, {2912, 8}, {292, 8}, {680, 8}, {1068, 8},
{1456, 8}, {1844, 8}, {2232, 8}, {2620, 8}, {2904, 8}, {284, 8}, {672, 8},
{1060, 8}, {1448, 8}, {1836, 8}, {2224, 8}, {2612, 8}, {2896, 8}, {276, 8},
{664, 8}, {1052, 8}, {1440, 8}, {1828, 8}, {2216, 8}, {2604, 8}, {2888, 8},
{268, 8}, {656, 8}, {1044, 8}, {1432, 8}, {1820, 8}, {2208, 8}, {2596, 8},
{2880, 8}, {260, 8}, {648, 8}, {1036, 8}, {1424, 8}, {1812, 8}, {2200, 8},
{2588, 8}, {2872, 8}, {252, 8}, {640, 8}, {1028, 8}, {1416, 8}, {1804, 8},
{2192, 8}, {2580, 8}, {2864, 8}, {244, 8}, {632, 8}, {1020, 8}, {1408, 8},
{1796, 8}, {2184, 8}, {2572, 8}, {2856, 8}, {236, 8}, {624, 8}, {1012, 8},
{1400, 8}, {1788, 8}, {2176, 8}, {2564, 8}, {2848, 8}, {228, 8}, {616, 8},
{1004, 8}, {1392, 8}, {1780, 8}, {2168, 8}, {2556, 8}, {2840, 8}, {220, 8},
{608, 8}, {996, 8}, {1384, 8}, {1772, 8}, {2160, 8}, {2548, 8}, {2832, 8},
{212, 8}, {600, 8}, {988, 8}, {1376, 8}, {1764, 8}, {2152, 8}, {2540, 8},
{2824, 8}, {204, 8}, {592, 8}, {980, 8}, {1368, 8}, {1756, 8}, {2144, 8},
{2532, 8}, {2816, 8}, {196, 8}, {584, 8}, {972, 8}, {1360, 8}, {1748, 8},
{2136, 8}, {2524, 8}, {2808, 8}, {188, 8}, {576, 8}, {964, 8}, {1352, 8},
{1740, 8}, {2128, 8}, {2516, 8}, {2800, 8}, {180, 8}, {568, 8}, {956, 8},
{1344, 8}, {1732, 8}, {2120, 8}, {2508, 8}, {2792, 8}, {172, 8}, {560, 8},
{948, 8}, {1336, 8}, {1724, 8}, {2112, 8}, {2500, 8}, {2784, 8}, {164, 8},
{552, 8}, {940, 8}, {1328, 8}, {1716, 8}, {2104, 8}, {2492, 8}, {2776, 8},
{156, 8}, {544, 8}, {932, 8}, {1320, 8}, {1708, 8}, {2096, 8}, {2484, 8},
{2768, 8}, {148, 8}, {536, 8}, {924, 8}, {1312, 8}, {1700, 8}, {2088, 8},
{2476, 8}, {2760, 8}, {140, 8}, {528, 8}, {916, 8}, {1304, 8}, {1692, 8},
{2080, 8}, {2468, 8}, {2752, 8}, {132, 8}, {520, 8}, {908, 8}, {1296, 8},
{1684, 8}, {2072, 8}, {2460, 8}, {2744, 8}, {124, 8}, {512, 8}, {900, 8},
{1288, 8}, {1676, 8}, {2064, 8}, {2452, 8}, {2736, 8}, {116, 8}, {504, 8},
{892, 8}, {1280, 8}, {1668, 8}, {2056, 8}, {2444, 8}, {2728, 8}, {108, 8},
{496, 8}, {884, 8}, {1272, 8}, {1660, 8}, {2048, 8}, {2436, 8}, {2720, 8},
{100, 8}, {488, 8}, {876, 8}, {1264, 8}, {1652, 8}, {2040, 8}, {2428, 8},
{2716, 4}, {92, 8}, {480, 8}, {868, 8}, {1256, 8}, {1644, 8}, {2032, 8},
{2420, 8}, {84, 8}, {472, 8}, {860, 8}, {1248, 8}, {1636, 8}, {2024, 8},
{2412, 8}, {76, 8}, {464, 8}, {852, 8}, {1240, 8}, {1628, 8}, {2016, 8},
{2404, 8}, {68, 8}, {456, 8}, {844, 8}, {1232, 8}, {1620, 8}, {2008, 8},
{2396, 8}, {60, 8}, {448, 8}, {836, 8}, {1224, 8}, {1612, 8}, {2000, 8},
{2388, 8}, {52, 8}, {440, 8}, {828, 8}, {1216, 8}, {1604, 8}, {1992, 8},
{2380, 8}, {44, 8}, {432, 8}, {820, 8}, {1208, 8}, {1596, 8}, {1984, 8},
{2372, 8}, {36, 8}, {424, 8}, {812, 8}, {1200, 8}, {1588, 8}, {1976, 8},
{2364, 8}, {28, 8}, {416, 8}, {804, 8}, {1192, 8}, {1580, 8}, {1968, 8},
{2356, 8}, {20, 8}, {408, 8}, {796, 8}, {1184, 8}, {1572, 8}, {1960, 8},
{2348, 8}, {12, 8}, {400, 8}, {788, 8}, {1176, 8}, {1564, 8}, {1952, 8},
{2340, 8}, {4, 8}, {392, 8}, {780, 8}, {1168, 8}, {1556, 8}, {1944, 8},
{2332, 8},
/* missing from original data set */
{388, 4}, {776, 4}, {1164, 4}, {1552, 4}, {1940, 4}, {2328, 4},
};
/* *INDENT-ON* */
int
pattern_cmp (const void *arg1, const void *arg2)
{
test_pattern_t *a1 = (test_pattern_t *) arg1;
test_pattern_t *a2 = (test_pattern_t *) arg2;
if (a1->offset < a2->offset)
return -1;
else if (a1->offset > a2->offset)
return 1;
return 0;
}
static u8
fifo_validate_pattern (vlib_main_t * vm, test_pattern_t * pattern,
u32 pattern_length)
{
test_pattern_t *tp = pattern;
int i;
/* Go through the pattern and make 100% sure it's sane */
for (i = 0; i < pattern_length - 1; i++)
{
if (tp->offset + tp->len != (tp + 1)->offset)
{
vlib_cli_output (vm, "[%d] missing {%d, %d}", i,
(tp->offset + tp->len),
(tp + 1)->offset - (tp->offset + tp->len));
return 0;
}
tp++;
}
return 1;
}
static test_pattern_t *
fifo_get_validate_pattern (vlib_main_t * vm, test_pattern_t * test_data,
u32 test_data_len)
{
test_pattern_t *validate_pattern = 0;
/* Validate, and try segments in order... */
vec_validate (validate_pattern, test_data_len - 1);
memcpy (validate_pattern, test_data,
test_data_len * sizeof (test_pattern_t));
qsort ((u8 *) validate_pattern, test_data_len, sizeof (test_pattern_t),
pattern_cmp);
if (fifo_validate_pattern (vm, validate_pattern, test_data_len) == 0)
return 0;
return validate_pattern;
}
static fifo_segment_t *
fifo_segment_prepare (fifo_segment_main_t * sm, char *seg_name, u32 seg_size)
{
fifo_segment_create_args_t _a, *a = &_a;
clib_memset (a, 0, sizeof (*a));
a->segment_name = seg_name;
a->segment_size = seg_size ? seg_size : 32 << 20;
if (fifo_segment_create (sm, a))
return 0;
return fifo_segment_get_segment (sm, a->new_segment_indices[0]);
}
static void
ft_fifo_segment_free (fifo_segment_main_t * sm, fifo_segment_t * fs)
{
fifo_segment_delete (sm, fs);
}
static svm_fifo_t *
fifo_segment_alloc_fifo (fifo_segment_t * fs, u32 data_bytes,
fifo_segment_ftype_t ftype)
{
return fifo_segment_alloc_fifo_w_slice (fs, 0, data_bytes, ftype);
}
static svm_fifo_t *
fifo_prepare (fifo_segment_t * fs, u32 fifo_size)
{
svm_fifo_t *f;
svm_fifo_chunk_t *c;
f = fifo_segment_alloc_fifo (fs, fifo_size, FIFO_SEGMENT_RX_FIFO);
/* Paint 1st fifo chunk with -1's */
c = f_head_cptr (f);
clib_memset (c->data, 0xFF, c->length);
svm_fifo_init_ooo_lookup (f, 1 /* deq ooo */ );
return f;
}
static void
ft_fifo_free (fifo_segment_t * fs, svm_fifo_t * f)
{
fifo_segment_free_fifo (fs, f);
}
static int
compare_data (u8 * data1, u8 * data2, u32 start, u32 len, u32 * index)
{
int i;
for (i = start; i < start + len; i++)
{
if (data1[i] != data2[i])
{
*index = i;
return 1;
}
}
return 0;
}
int
sfifo_test_fifo1 (vlib_main_t * vm, unformat_input_t * input)
{
u32 fifo_size = 1 << 20, *test_data = 0, offset, data_word, test_data_len;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u8 *data, *s, *data_buf = 0;
int i, rv, verbose = 0;
ooo_segment_t *ooo_seg;
fifo_segment_t *fs;
svm_fifo_t *f;
u32 j;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
}
test_data_len = fifo_size / sizeof (u32);
vec_validate (test_data, test_data_len - 1);
for (i = 0; i < vec_len (test_data); i++)
test_data[i] = i;
fs = fifo_segment_prepare (fsm, "fifo-test1", 0);
f = fifo_prepare (fs, fifo_size);
/*
* Enqueue an initial (un-dequeued) chunk
*/
rv = svm_fifo_enqueue (f, sizeof (u32), (u8 *) test_data);
SFIFO_TEST ((rv == sizeof (u32)), "enqueued %d", rv);
SFIFO_TEST ((f->shr->tail == 4), "fifo tail %u", f->shr->tail);
/*
* Create 3 chunks in the future. The offsets are relative
* to the current fifo tail
*/
for (i = 0; i < 3; i++)
{
offset = (2 * i + 1) * sizeof (u32) - f->shr->tail;
data = (u8 *) (test_data + (2 * i + 1));
if (i == 0)
{
rv = svm_fifo_enqueue (f, sizeof (u32), data);
rv = rv > 0 ? 0 : rv;
}
else
rv = svm_fifo_enqueue_with_offset (f, offset, sizeof (u32), data);
if (verbose)
vlib_cli_output (vm, "add [%d] [%d, %d]", 2 * i + 1, offset,
offset + sizeof (u32));
if (rv)
{
clib_warning ("enqueue returned %d", rv);
goto err;
}
}
if (verbose)
vlib_cli_output (vm, "fifo after odd segs: %U", format_svm_fifo, f, 1);
SFIFO_TEST ((f->shr->tail == 8), "fifo tail %u", f->shr->tail);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 2),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
/*
* Try adding a completely overlapped segment
*/
offset = 3 * sizeof (u32) - f->shr->tail;
data = (u8 *) (test_data + 3);
rv = svm_fifo_enqueue_with_offset (f, offset, sizeof (u32), data);
if (rv)
{
clib_warning ("enqueue returned %d", rv);
goto err;
}
if (verbose)
vlib_cli_output (vm, "fifo after overlap seg: %U", format_svm_fifo, f, 1);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 2),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
/*
* Make sure format functions are not buggy
*/
s = format (0, "%U", format_svm_fifo, f, 2);
vec_free (s);
/*
* Paint some of missing data backwards
*/
for (i = 3; i > 1; i--)
{
offset = (2 * i + 0) * sizeof (u32) - f->shr->tail;
data = (u8 *) (test_data + (2 * i + 0));
rv = svm_fifo_enqueue_with_offset (f, offset, sizeof (u32), data);
if (verbose)
vlib_cli_output (vm, "add [%d] [%d, %d]", 2 * i, offset,
offset + sizeof (u32));
if (rv)
{
clib_warning ("enqueue returned %d", rv);
goto err;
}
}
if (verbose)
vlib_cli_output (vm, "fifo before missing link: %U", format_svm_fifo, f,
1);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 1),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
ooo_seg = svm_fifo_first_ooo_segment (f);
SFIFO_TEST ((ooo_seg->start == 12),
"first ooo seg position %u", ooo_seg->start);
SFIFO_TEST ((ooo_seg->length == 16),
"first ooo seg length %u", ooo_seg->length);
/*
* Enqueue the missing u32
*/
rv = svm_fifo_enqueue (f, sizeof (u32), (u8 *) (test_data + 2));
if (verbose)
vlib_cli_output (vm, "fifo after missing link: %U", format_svm_fifo, f,
1);
SFIFO_TEST ((rv == 20), "bytes to be enqueued %u", rv);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 0),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
/*
* Collect results
*/
for (i = 0; i < 7; i++)
{
rv = svm_fifo_dequeue (f, sizeof (u32), (u8 *) & data_word);
if (rv != sizeof (u32))
{
clib_warning ("bytes dequeues %u", rv);
goto err;
}
if (data_word != test_data[i])
{
clib_warning ("recovered [%d] %d not %d", i, data_word,
test_data[i]);
goto err;
}
}
/*
* Test segment overlaps: last ooo segment overlaps all
*/
ft_fifo_free (fs, f);
f = fifo_prepare (fs, fifo_size);
for (i = 0; i < 4; i++)
{
offset = (2 * i + 1) * sizeof (u32) - f->shr->tail;
data = (u8 *) (test_data + (2 * i + 1));
rv = svm_fifo_enqueue_with_offset (f, offset, sizeof (u32), data);
if (verbose)
vlib_cli_output (vm, "add [%d] [%d, %d]", 2 * i + 1, offset,
offset + sizeof (u32));
if (rv)
{
clib_warning ("enqueue returned %d", rv);
goto err;
}
}
rv = svm_fifo_enqueue_with_offset (f, 8 - f->shr->tail, 21, data);
SFIFO_TEST ((rv == 0), "ooo enqueued %u", rv);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 1),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
/* add missing data to be able to dequeue something */
rv = svm_fifo_enqueue (f, 4, data);
SFIFO_TEST ((rv == 32), "enqueued %u", rv);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 0),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
vec_validate (data_buf, vec_len (test_data));
svm_fifo_peek (f, 0, 4, data_buf);
if (compare_data (data_buf, data, 0, 4, &j))
SFIFO_TEST (0, "[%d] peeked %u expected %u", j, data_buf[j], data[j]);
svm_fifo_peek (f, 8, 21, data_buf);
if (compare_data (data_buf, data, 0, 21, &j))
SFIFO_TEST (0, "[%d] peeked %u expected %u", j, data_buf[j], data[j]);
vec_reset_length (data_buf);
/*
* Test segment overlaps: enqueue and overlap ooo segments
*/
ft_fifo_free (fs, f);
f = fifo_prepare (fs, fifo_size);
for (i = 0; i < 4; i++)
{
offset = (2 * i + 1) * sizeof (u32) - f->shr->tail;
data = (u8 *) (test_data + (2 * i + 1));
rv = svm_fifo_enqueue_with_offset (f, offset, sizeof (u32), data);
if (verbose)
vlib_cli_output (vm, "add [%d] [%d, %d]", 2 * i + 1, offset,
offset + sizeof (u32));
if (rv)
{
clib_warning ("enqueue returned %d", rv);
goto err;
}
}
if (verbose)
vlib_cli_output (vm, "fifo after enqueue: %U", format_svm_fifo, f, 1);
rv = svm_fifo_enqueue (f, 29, data);
if (verbose)
vlib_cli_output (vm, "fifo after enqueueing 29: %U", format_svm_fifo, f,
1);
SFIFO_TEST ((rv == 32), "ooo enqueued %u", rv);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 0),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
vec_validate (data_buf, vec_len (data));
svm_fifo_peek (f, 0, vec_len (data), data_buf);
if (compare_data (data_buf, data, 0, vec_len (data), &j))
{
SFIFO_TEST (0, "[%d] peeked %u expected %u", j, data_buf[j], data[j]);
}
/* Try to peek beyond the data */
rv = svm_fifo_peek (f, svm_fifo_max_dequeue (f), vec_len (data), data_buf);
SFIFO_TEST ((rv == 0), "peeked %u expected 0", rv);
vec_free (data_buf);
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
return 0;
err:
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
return -1;
}
static int
sfifo_test_fifo2 (vlib_main_t * vm)
{
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
test_pattern_t *tp, *vp, *test_data;
u32 fifo_size = (1 << 20) + 1;
int i, rv, test_data_len;
ooo_segment_t *ooo_seg;
fifo_segment_t *fs;
svm_fifo_t *f;
u64 data64;
test_data = test_pattern;
test_data_len = ARRAY_LEN (test_pattern);
vp = fifo_get_validate_pattern (vm, test_data, test_data_len);
/* Create a fifo */
fs = fifo_segment_prepare (fsm, "fifo-test2", 0);
f = fifo_prepare (fs, fifo_size);
/*
* Try with sorted data
*/
for (i = 0; i < test_data_len; i++)
{
tp = vp + i;
data64 = tp->offset;
svm_fifo_enqueue_with_offset (f, tp->offset - f->shr->tail, tp->len,
(u8 *) &data64);
}
/* Expected result: one big fat chunk at offset 4 */
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 1),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
ooo_seg = svm_fifo_first_ooo_segment (f);
SFIFO_TEST ((ooo_seg->start == 4),
"first ooo seg position %u", ooo_seg->start);
SFIFO_TEST ((ooo_seg->length == 2996),
"first ooo seg length %u", ooo_seg->length);
data64 = 0;
rv = svm_fifo_enqueue (f, sizeof (u32), (u8 *) & data64);
SFIFO_TEST ((rv == 3000), "bytes to be enqueued %u", rv);
ft_fifo_free (fs, f);
vec_free (vp);
/*
* Now try it again w/ unsorted data...
*/
f = fifo_prepare (fs, fifo_size);
for (i = 0; i < test_data_len; i++)
{
tp = &test_data[i];
data64 = tp->offset;
rv = svm_fifo_enqueue_with_offset (f, tp->offset - f->shr->tail, tp->len,
(u8 *) &data64);
if (rv)
{
clib_warning ("enqueue returned %d", rv);
}
}
/* Expecting the same result: one big fat chunk at offset 4 */
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 1),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
ooo_seg = svm_fifo_first_ooo_segment (f);
SFIFO_TEST ((ooo_seg->start == 4),
"first ooo seg position %u", ooo_seg->start);
SFIFO_TEST ((ooo_seg->length == 2996),
"first ooo seg length %u", ooo_seg->length);
data64 = 0;
rv = svm_fifo_enqueue (f, sizeof (u32), (u8 *) & data64);
SFIFO_TEST ((rv == 3000), "bytes to be enqueued %u", rv);
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
return 0;
}
static int
sfifo_test_fifo3 (vlib_main_t * vm, unformat_input_t * input)
{
u32 nsegs = 2, seg_size, length_so_far, current_offset, offset_increment;
int overlap = 0, verbose = 0, randomize = 1, drop = 0, in_seq_all = 0;
u32 len_this_chunk, seed = 0xdeaddabe, j, total_size = 2 << 10;
u32 fifo_size = (4 << 10) + 1, fifo_initial_offset = 0;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u8 *data_pattern = 0, *data_buf = 0;
test_pattern_t *tp, *generate = 0;
fifo_segment_t *fs;
svm_fifo_t *f;
int i, rv;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "fifo-size %d", &fifo_size))
;
else if (unformat (input, "total-size %d", &total_size))
;
else if (unformat (input, "verbose"))
verbose = 1;
else if (unformat (input, "overlap"))
overlap = 1;
else if (unformat (input, "initial-offset %d", &fifo_initial_offset))
;
else if (unformat (input, "seed %d", &seed))
;
else if (unformat (input, "nsegs %d", &nsegs))
;
else if (unformat (input, "no-randomize"))
randomize = 0;
else if (unformat (input, "in-seq-all"))
in_seq_all = 1;
else if (unformat (input, "drop"))
drop = 1;
else
{
clib_error_t *e = clib_error_return
(0, "unknown input `%U'", format_unformat_error, input);
clib_error_report (e);
return -1;
}
}
if (total_size > fifo_size)
{
clib_warning ("total_size %d greater than fifo size %d", total_size,
fifo_size);
return -1;
}
if (overlap && randomize == 0)
{
clib_warning ("Can't enqueue in-order with overlap");
return -1;
}
/*
* Generate data
*/
vec_validate (data_pattern, total_size - 1);
for (i = 0; i < vec_len (data_pattern); i++)
data_pattern[i] = i & 0xff;
/*
* Generate segments
*/
seg_size = total_size / nsegs;
length_so_far = 0;
current_offset = randomize;
while (length_so_far < total_size)
{
vec_add2 (generate, tp, 1);
len_this_chunk = clib_min (seg_size, total_size - length_so_far);
tp->offset = current_offset;
tp->len = len_this_chunk;
if (overlap && (len_this_chunk == seg_size))
do
{
offset_increment = len_this_chunk
% (1 + (random_u32 (&seed) % len_this_chunk));
}
while (offset_increment == 0);
else
offset_increment = len_this_chunk;
current_offset += offset_increment;
length_so_far = tp->offset + tp->len;
}
/*
* Validate segment list. Only valid for non-overlap cases.
*/
if (overlap == 0)
fifo_validate_pattern (vm, generate, vec_len (generate));
if (verbose)
{
vlib_cli_output (vm, "raw data pattern:");
for (i = 0; i < vec_len (generate); i++)
{
vlib_cli_output (vm, "[%d] offset %u len %u", i,
generate[i].offset, generate[i].len);
}
}
/* Randomize data pattern */
if (randomize)
{
for (i = 0; i < vec_len (generate) / 2; i++)
{
u32 src_index, dst_index;
test_pattern_t _tmp, *tmp = &_tmp;
src_index = random_u32 (&seed) % vec_len (generate);
dst_index = random_u32 (&seed) % vec_len (generate);
tmp[0] = generate[dst_index];
generate[dst_index] = generate[src_index];
generate[src_index] = tmp[0];
}
if (verbose)
{
vlib_cli_output (vm, "randomized data pattern:");
for (i = 0; i < vec_len (generate); i++)
{
vlib_cli_output (vm, "[%d] offset %u len %u", i,
generate[i].offset, generate[i].len);
}
}
}
/*
* Create a fifo and add segments
*/
fs = fifo_segment_prepare (fsm, "fifo-test3", 0);
f = fifo_prepare (fs, fifo_size);
/* manually set head and tail pointers to validate modular arithmetic */
fifo_initial_offset = fifo_initial_offset % fifo_size;
svm_fifo_init_pointers (f, fifo_initial_offset, fifo_initial_offset);
for (i = !randomize; i < vec_len (generate); i++)
{
tp = generate + i;
svm_fifo_enqueue_with_offset (
f, fifo_initial_offset + tp->offset - f->shr->tail, tp->len,
(u8 *) data_pattern + tp->offset);
}
/* Add the first segment in order for non random data */
if (!randomize)
svm_fifo_enqueue (f, generate[0].len, (u8 *) data_pattern);
/*
* Expected result: one big fat chunk at offset 1 if randomize == 1
*/
if (verbose)
vlib_cli_output (vm, "fifo before missing link: %U",
format_svm_fifo, f, 1 /* verbose */ );
/*
* Add the missing byte if segments were randomized
*/
if (randomize)
{
u32 bytes_to_enq = 1;
if (in_seq_all)
bytes_to_enq = total_size;
rv = svm_fifo_enqueue (f, bytes_to_enq, data_pattern + 0);
if (verbose)
vlib_cli_output (vm, "in-order enqueue returned %d", rv);
SFIFO_TEST ((rv == total_size), "enqueued %u expected %u", rv,
total_size);
}
SFIFO_TEST ((svm_fifo_has_ooo_data (f) == 0), "number of ooo segments %u",
svm_fifo_n_ooo_segments (f));
/*
* Test if peeked data is the same as original data
*/
vec_validate (data_buf, vec_len (data_pattern));
svm_fifo_peek (f, 0, vec_len (data_pattern), data_buf);
if (compare_data (data_buf, data_pattern, 0, vec_len (data_pattern), &j))
{
SFIFO_TEST (0, "[%d] peeked %u expected %u", j, data_buf[j],
data_pattern[j]);
}
/*
* Dequeue or drop all data
*/
if (drop)
{
svm_fifo_dequeue_drop (f, vec_len (data_pattern));
}
else
{
memset (data_buf, 0, vec_len (data_pattern));
svm_fifo_dequeue (f, vec_len (data_pattern), data_buf);
if (compare_data
(data_buf, data_pattern, 0, vec_len (data_pattern), &j))
{
SFIFO_TEST (0, "[%d] dequeued %u expected %u", j, data_buf[j],
data_pattern[j]);
}
}
SFIFO_TEST ((svm_fifo_max_dequeue (f) == 0), "fifo has %d bytes",
svm_fifo_max_dequeue (f));
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (data_pattern);
vec_free (data_buf);
return 0;
}
static int
sfifo_test_fifo4 (vlib_main_t * vm, unformat_input_t * input)
{
u32 fifo_size = 6 << 10, fifo_initial_offset = 1e9, test_n_bytes = 5000, j;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u8 *test_data = 0, *data_buf = 0;
int i, rv, verbose = 0;
fifo_segment_t *fs;
svm_fifo_t *f;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
clib_error_t *e = clib_error_return
(0, "unknown input `%U'", format_unformat_error, input);
clib_error_report (e);
return -1;
}
}
/*
* Create a fifo and add segments
*/
fs = fifo_segment_prepare (fsm, "fifo-test4", 0);
f = fifo_prepare (fs, fifo_size);
/* Set head and tail pointers */
fifo_initial_offset = fifo_initial_offset % fifo_size;
svm_fifo_init_pointers (f, fifo_initial_offset, fifo_initial_offset);
vec_validate (test_data, test_n_bytes - 1);
for (i = 0; i < vec_len (test_data); i++)
test_data[i] = i;
for (i = test_n_bytes - 1; i > 0; i--)
{
rv = svm_fifo_enqueue_with_offset (
f, fifo_initial_offset + i - f->shr->tail, sizeof (u8), &test_data[i]);
if (verbose)
vlib_cli_output (vm, "add [%d] [%d, %d]", i, i, i + sizeof (u8));
if (rv)
SFIFO_TEST (0, "enqueue returned %d", rv);
}
svm_fifo_enqueue (f, sizeof (u8), &test_data[0]);
vec_validate (data_buf, vec_len (test_data));
svm_fifo_dequeue (f, vec_len (test_data), data_buf);
rv = compare_data (data_buf, test_data, 0, vec_len (test_data), &j);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", j, data_buf[j],
test_data[j]);
SFIFO_TEST ((rv == 0), "dequeued compared to original returned %d", rv);
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
return 0;
}
static u32
fifo_pos (svm_fifo_t * f, u32 pos)
{
return pos;
}
/* Avoids exposing svm_fifo.c internal function */
static ooo_segment_t *
ooo_seg_next (svm_fifo_t * f, ooo_segment_t * s)
{
if (pool_is_free_index (f->ooo_segments, s->next))
return 0;
return pool_elt_at_index (f->ooo_segments, s->next);
}
static int
sfifo_test_fifo5 (vlib_main_t * vm, unformat_input_t * input)
{
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u32 fifo_size = 401, j = 0, offset = 200;
u8 *test_data = 0, *data_buf = 0;
int i, rv, verbose = 0;
ooo_segment_t *ooo_seg;
fifo_segment_t *fs;
svm_fifo_t *f;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
clib_error_t *e = clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
clib_error_report (e);
return -1;
}
}
fs = fifo_segment_prepare (fsm, "fifo-test5", 0);
f = fifo_prepare (fs, fifo_size);
svm_fifo_init_pointers (f, offset, offset);
vec_validate (test_data, 399);
for (i = 0; i < vec_len (test_data); i++)
test_data[i] = i % 0xff;
/*
* Start with [100, 200] and [300, 400]
*/
svm_fifo_enqueue_with_offset (f, 100, 100, &test_data[100]);
svm_fifo_enqueue_with_offset (f, 300, 100, &test_data[300]);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 2),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
SFIFO_TEST ((f->ooos_newest == 1), "newest %u", f->ooos_newest);
if (verbose)
vlib_cli_output (vm, "fifo after [100, 200] and [300, 400] : %U",
format_svm_fifo, f, 2 /* verbose */ );
/*
* Add [225, 275]
*/
rv = svm_fifo_enqueue_with_offset (f, 225, 50, &test_data[225]);
if (verbose)
vlib_cli_output (vm, "fifo after [225, 275] : %U",
format_svm_fifo, f, 2 /* verbose */ );
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 3),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
ooo_seg = svm_fifo_first_ooo_segment (f);
SFIFO_TEST ((ooo_seg->start == fifo_pos (f, 100 + offset)),
"first seg start %u expected %u", ooo_seg->start,
fifo_pos (f, 100 + offset));
SFIFO_TEST ((ooo_seg->length == 100), "first seg length %u expected %u",
ooo_seg->length, 100);
ooo_seg = ooo_seg_next (f, ooo_seg);
SFIFO_TEST ((ooo_seg->start == fifo_pos (f, 225 + offset)),
"second seg start %u expected %u",
ooo_seg->start, fifo_pos (f, 225 + offset));
SFIFO_TEST ((ooo_seg->length == 50), "second seg length %u expected %u",
ooo_seg->length, 50);
ooo_seg = ooo_seg_next (f, ooo_seg);
SFIFO_TEST ((ooo_seg->start == fifo_pos (f, 300 + offset)),
"third seg start %u expected %u",
ooo_seg->start, fifo_pos (f, 300 + offset));
SFIFO_TEST ((ooo_seg->length == 100), "third seg length %u expected %u",
ooo_seg->length, 100);
SFIFO_TEST ((f->ooos_newest == 2), "newest %u", f->ooos_newest);
/*
* Add [190, 310]
*/
rv = svm_fifo_enqueue_with_offset (f, 190, 120, &test_data[190]);
if (verbose)
vlib_cli_output (vm, "fifo after [190, 310] : %U",
format_svm_fifo, f, 1 /* verbose */ );
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 1),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
ooo_seg = svm_fifo_first_ooo_segment (f);
SFIFO_TEST ((ooo_seg->start == fifo_pos (f, offset + 100)),
"first seg start %u expected %u",
ooo_seg->start, fifo_pos (f, offset + 100));
SFIFO_TEST ((ooo_seg->length == 300), "first seg length %u expected %u",
ooo_seg->length, 300);
/*
* Add [0, 150]
*/
rv = svm_fifo_enqueue (f, 150, test_data);
if (verbose)
vlib_cli_output (vm, "fifo after [0 150] : %U", format_svm_fifo, f,
2 /* verbose */ );
SFIFO_TEST ((rv == 400), "managed to enqueue %u expected %u", rv, 400);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 0),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
vec_validate (data_buf, 399);
svm_fifo_peek (f, 0, 400, data_buf);
if (compare_data (data_buf, test_data, 0, 400, &j))
{
SFIFO_TEST (0, "[%d] peeked %u expected %u", j, data_buf[j],
test_data[j]);
}
/*
* Add [100 200] and overlap it with [50 250]
*/
ft_fifo_free (fs, f);
f = fifo_prepare (fs, fifo_size);
svm_fifo_enqueue_with_offset (f, 100, 100, &test_data[100]);
svm_fifo_enqueue_with_offset (f, 50, 200, &test_data[50]);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 1),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
ooo_seg = svm_fifo_first_ooo_segment (f);
SFIFO_TEST ((ooo_seg->start == 50), "first seg start %u expected %u",
ooo_seg->start, 50);
SFIFO_TEST ((ooo_seg->length == 200), "first seg length %u expected %u",
ooo_seg->length, 200);
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
return 0;
}
/*
* Test ooo head/tail u32 wrapping
*/
static int
sfifo_test_fifo6 (vlib_main_t * vm, unformat_input_t * input)
{
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u32 fifo_size = 101, n_test_bytes = 100;
int i, j, rv, __clib_unused verbose = 0;
u8 *test_data = 0, *data_buf = 0;
ooo_segment_t *ooo_seg;
fifo_segment_t *fs;
svm_fifo_t *f;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
fs = fifo_segment_prepare (fsm, "fifo-test6", 0);
f = fifo_prepare (fs, fifo_size);
vec_validate (test_data, n_test_bytes - 1);
vec_validate (data_buf, n_test_bytes - 1);
for (i = 0; i < vec_len (test_data); i++)
test_data[i] = i % 0xff;
/*
* Add ooo with tail and ooo segment start u32 wrap
*/
svm_fifo_init_pointers (f, ~0 % fifo_size, ~0 % fifo_size);
svm_fifo_enqueue_with_offset (f, 10, 10, &test_data[10]);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 1),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
ooo_seg = svm_fifo_first_ooo_segment (f);
rv = ooo_segment_offset_prod (f, ooo_seg);
SFIFO_TEST (rv == 10, "offset should be %u is %u", 10, rv);
svm_fifo_enqueue (f, 10, test_data);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 0),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
SFIFO_TEST (f->ooos_list_head == OOO_SEGMENT_INVALID_INDEX,
"there should be no ooo seg");
svm_fifo_peek (f, 5, 10, &data_buf[5]);
if (compare_data (data_buf, test_data, 5, 10, (u32 *) & j))
SFIFO_TEST (0, "[%d] dequeued %u expected %u", j, data_buf[j],
test_data[j]);
svm_fifo_dequeue (f, 20, data_buf);
if (compare_data (data_buf, test_data, 0, 20, (u32 *) & j))
SFIFO_TEST (0, "[%d] dequeued %u expected %u", j, data_buf[j],
test_data[j]);
/*
* Force collect with tail u32 wrap and without ooo segment start u32 wrap
*/
svm_fifo_init_pointers (f, (~0 - 10) % fifo_size, (~0 - 10) % fifo_size);
svm_fifo_enqueue_with_offset (f, 5, 15, &test_data[5]);
svm_fifo_enqueue (f, 12, test_data);
SFIFO_TEST ((svm_fifo_n_ooo_segments (f) == 0),
"number of ooo segments %u", svm_fifo_n_ooo_segments (f));
SFIFO_TEST (f->ooos_list_head == OOO_SEGMENT_INVALID_INDEX,
"there should be no ooo seg");
svm_fifo_dequeue (f, 20, data_buf);
if (compare_data (data_buf, test_data, 0, 20, (u32 *) & j))
SFIFO_TEST (0, "[%d] dequeued %u expected %u", j, data_buf[j],
test_data[j]);
/*
* Cleanup
*/
vec_free (test_data);
vec_free (data_buf);
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
return 0;
}
/*
* Multiple ooo enqueues and dequeues that force fifo tail/head wrap
*/
static int
sfifo_test_fifo7 (vlib_main_t * vm, unformat_input_t * input)
{
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u32 fifo_size = 101, n_iterations = 100;
int i, j, rv, __clib_unused verbose = 0;
u8 *test_data = 0, *data_buf = 0;
u64 n_test_bytes = 100;
fifo_segment_t *fs;
svm_fifo_t *f;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
/*
* Prepare data structures
*/
fs = fifo_segment_prepare (fsm, "fifo-test7", 0);
f = fifo_prepare (fs, fifo_size);
svm_fifo_init_pointers (f, ~0 % fifo_size, ~0 % fifo_size);
vec_validate (test_data, n_test_bytes - 1);
vec_validate (data_buf, n_test_bytes - 1);
for (i = 0; i < vec_len (test_data); i++)
test_data[i] = i % 0xff;
/*
* Run n iterations of test
*/
for (i = 0; i < n_iterations; i++)
{
for (j = n_test_bytes - 1; j > 0; j -= 2)
{
svm_fifo_enqueue_with_offset (f, j, 1, &test_data[j]);
rv = svm_fifo_n_ooo_segments (f);
if (rv != (n_test_bytes - j) / 2 + 1)
SFIFO_TEST (0, "number of ooo segments expected %u is %u",
(n_test_bytes - j) / 2 + 1, rv);
}
svm_fifo_enqueue_with_offset (f, 1, n_test_bytes - 1, &test_data[1]);
rv = svm_fifo_n_ooo_segments (f);
if (rv != 1)
SFIFO_TEST (0, "number of ooo segments %u", rv);
svm_fifo_enqueue (f, 1, test_data);
rv = svm_fifo_n_ooo_segments (f);
if (rv != 0)
SFIFO_TEST (0, "number of ooo segments %u", rv);
svm_fifo_dequeue (f, n_test_bytes, data_buf);
if (compare_data (data_buf, test_data, 0, n_test_bytes, (u32 *) & j))
SFIFO_TEST (0, "[%d] dequeued %u expected %u", j, data_buf[j],
test_data[j]);
svm_fifo_init_pointers (f, (~0 - i) % f->shr->size,
(~0 - i) % f->shr->size);
}
SFIFO_TEST (1, "passed multiple ooo enqueue/dequeue");
/*
* Cleanup
*/
vec_free (test_data);
vec_free (data_buf);
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
return 0;
}
/*
* Enqueue more than 4GB
*/
static int
sfifo_test_fifo_large (vlib_main_t * vm, unformat_input_t * input)
{
u32 n_iterations = 100, n_bytes_per_iter, half, fifo_size;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
int i, j, rv, __clib_unused verbose = 0;
u8 *test_data = 0, *data_buf = 0;
u64 n_test_bytes = 100;
fifo_segment_t *fs;
svm_fifo_t *f;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
n_test_bytes = 5ULL << 30;
n_iterations = 1 << 10;
n_bytes_per_iter = n_test_bytes / n_iterations;
fifo_size = n_bytes_per_iter + 1;
fs = fifo_segment_prepare (fsm, "fifo-large", 0);
f = fifo_prepare (fs, fifo_size);
svm_fifo_init_pointers (f, ~0 % fifo_size, ~0 % fifo_size);
vec_validate (test_data, n_bytes_per_iter - 1);
vec_validate (data_buf, n_bytes_per_iter - 1);
for (i = 0; i < vec_len (test_data); i++)
test_data[i] = i % 0xff;
half = n_bytes_per_iter / 2;
for (i = 0; i < n_iterations; i++)
{
svm_fifo_enqueue_with_offset (f, half, half, &test_data[half]);
svm_fifo_enqueue (f, half, test_data);
rv = svm_fifo_n_ooo_segments (f);
if (rv != 0)
SFIFO_TEST (0, "number of ooo segments %u", rv);
svm_fifo_dequeue (f, n_bytes_per_iter, data_buf);
if (compare_data (data_buf, test_data, 0, n_bytes_per_iter,
(u32 *) & j))
SFIFO_TEST (0, "[%d][%d] dequeued %u expected %u", i, j, data_buf[j],
test_data[j]);
}
SFIFO_TEST (1, "passed large transfer");
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
return 0;
}
static void
validate_test_and_buf_vecs (u8 ** test_data, u8 ** data_buf, u32 len)
{
int i, cur_len;
cur_len = vec_len (*test_data);
vec_validate (*test_data, len - 1);
vec_validate (*data_buf, len - 1);
for (i = cur_len; i < vec_len (*test_data); i++)
(*test_data)[i] = i;
}
static int
enqueue_ooo (svm_fifo_t * f, u8 * test_data, u32 len, u32 iterations)
{
u32 offset, enq_now, ooo_chunk;
int i, rv;
ooo_chunk = len / iterations;
for (i = iterations; i > 0; i--)
{
offset = i * ooo_chunk;
enq_now = clib_min (ooo_chunk, len - offset);
if (!enq_now)
continue;
rv = svm_fifo_enqueue_with_offset (f, offset, enq_now,
test_data + offset);
if (rv)
return rv;
}
return 0;
}
static int
enqueue_ooo_packets (svm_fifo_t * f, u32 len, u32 enq_chunk, u8 * test_data)
{
u32 offset, enq_now;
int i, rv;
for (i = 1; i <= len / enq_chunk; i++)
{
offset = i * enq_chunk;
enq_now = clib_min (enq_chunk, len - offset);
if (!enq_now)
continue;
rv = svm_fifo_enqueue_with_offset (f, offset, enq_now,
test_data + offset);
if (rv)
return rv;
if (svm_fifo_size (f) < len - 4096)
svm_fifo_set_size (f, svm_fifo_size (f) + enq_now);
else
svm_fifo_set_size (f, len);
}
return 0;
}
static int
enqueue_packets_inc (svm_fifo_t * f, u32 len, u32 enq_chunk, u8 * test_data)
{
u32 enq_now, offset;
int i, rv;
for (i = 0; i <= len / enq_chunk; i++)
{
offset = i * enq_chunk;
enq_now = clib_min (enq_chunk, len - offset);
rv = svm_fifo_enqueue (f, enq_now, test_data + offset);
if (rv != enq_now)
return -1;
if (svm_fifo_size (f) < len - 4096)
svm_fifo_set_size (f, svm_fifo_size (f) + enq_now);
else
svm_fifo_set_size (f, len);
}
return 0;
}
static int
dequeue_ooo (svm_fifo_t * f, u8 * data_buf, u32 len, u32 iterations)
{
u32 offset, ooo_chunk, deq_now;
int i, rv;
ooo_chunk = len / iterations;
for (i = iterations; i >= 0; i--)
{
offset = i * ooo_chunk;
deq_now = clib_min (ooo_chunk, len - offset);
if (deq_now == 0)
continue;
rv = svm_fifo_peek (f, offset, deq_now, data_buf + offset);
if (rv != deq_now)
return rv;
}
return 0;
}
static int
dequeue_ooo_inc (svm_fifo_t * f, u8 * data_buf, u32 len, u32 iterations)
{
u32 offset, ooo_chunk, deq_now;
int i, rv;
ooo_chunk = len / iterations;
for (i = 0; i <= iterations; i++)
{
offset = i * ooo_chunk;
deq_now = clib_min (ooo_chunk, len - offset);
if (deq_now == 0)
continue;
rv = svm_fifo_peek (f, offset, deq_now, data_buf + offset);
if (rv != deq_now)
return rv;
}
return 0;
}
static int
dequeue_packets (svm_fifo_t * f, u32 len, u32 deq_chunk, u8 * data_buf)
{
u32 offset, deq_now;
int i, rv;
for (i = 0; i <= len / deq_chunk; i++)
{
offset = i * deq_chunk;
deq_now = clib_min (deq_chunk, len - offset);
if (deq_now == 0)
continue;
rv = svm_fifo_dequeue (f, deq_now, data_buf + offset);
if (rv != deq_now)
return rv;
}
return 0;
}
static int
sfifo_test_fifo_grow (vlib_main_t * vm, unformat_input_t * input)
{
int __clib_unused verbose = 0, fifo_size = 4096, fifo_inc = 4096, rv, i;
u32 enq_chunk, offset, deq_now, last_start_byte;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u8 *test_data = 0, *data_buf = 0;
svm_fifo_chunk_t *c;
fifo_segment_t *fs;
svm_fifo_t *f;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
fs = fifo_segment_prepare (fsm, "fifo-grow", 0);
f = fifo_prepare (fs, fifo_size);
/*
* Grow size and alloc chunks by enqueueing in order
*/
fifo_size += fifo_inc;
svm_fifo_set_size (f, fifo_size);
last_start_byte = 4096;
validate_test_and_buf_vecs (&test_data, &data_buf, fifo_size);
rv = svm_fifo_enqueue (f, fifo_size, test_data);
SFIFO_TEST (rv == fifo_size, "enqueue should work");
SFIFO_TEST (svm_fifo_size (f) == fifo_size, "size expected %u is %u",
fifo_size, svm_fifo_size (f));
SFIFO_TEST (svm_fifo_max_dequeue (f) == fifo_size, "max deq should be %u",
fifo_size);
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 2, "should have 2 chunks has %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
c = f_head_cptr (f);
SFIFO_TEST (c->start_byte == 0, "head start byte should be %u", 0);
SFIFO_TEST (c->length == 4096, "head chunk length should be %u", 4096);
SFIFO_TEST (f->shr->tail_chunk == 0, "no tail chunk");
SFIFO_TEST (f->ooo_enq == 0, "should have no ooo enq chunk");
SFIFO_TEST (f->ooo_deq == 0, "should have no ooo deq chunk");
c = f_end_cptr (f);
SFIFO_TEST (c->start_byte == last_start_byte, "end chunk start byte should"
" be %u", last_start_byte);
SFIFO_TEST (c->length == 4096, "end chunk length should be %u", 4096);
/*
* Dequeue and validate data
*/
rv = svm_fifo_dequeue (f, fifo_size, data_buf);
SFIFO_TEST (rv == fifo_size, "should dequeue all data");
last_start_byte += 4096; /* size of last segment */
rv = compare_data (data_buf, test_data, 0, vec_len (test_data),
(u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
SFIFO_TEST ((rv == 0), "dequeued compared to original returned %d", rv);
SFIFO_TEST (f->shr->head_chunk == 0, "head chunk should be 0");
SFIFO_TEST (f->shr->tail_chunk == 0, "tail chunk should be 0");
SFIFO_TEST (f->ooo_deq == 0, "should have no ooo deq chunk");
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/*
* Allocate one new chunk by enqueueing out of order all but first chunk
*
*/
enq_chunk = vec_len (test_data) / 10;
rv = enqueue_ooo (f, test_data, vec_len (test_data), 10);
SFIFO_TEST (!rv, "enqueue ooo should work");
SFIFO_TEST (svm_fifo_size (f) == fifo_size, "size expected %u is %u",
fifo_size, svm_fifo_size (f));
SFIFO_TEST (svm_fifo_max_dequeue (f) == 0, "max deq should be %u", 0);
/* Fifo has 2 chunks because the we didn't allow the first chunk to be
* freed when all the data was dequeued. Could be optimized in the future */
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 2, "should have %u chunks has %u", 2, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
SFIFO_TEST (f->shr->head_chunk == 0, "should have no head chunk");
/* When new fifo chunks are allocated, tail is initialized */
SFIFO_TEST (f->shr->tail_chunk != 0, "should have no tail chunk");
SFIFO_TEST (f->ooo_enq != 0, "should have an ooo enq chunk");
c = f_end_cptr (f);
SFIFO_TEST (c->start_byte == last_start_byte,
"end chunk should start at %u", last_start_byte);
SFIFO_TEST (c->length == 8192, "end chunk length should be %u", 8192);
SFIFO_TEST (f->ooo_enq == c, "ooo enq chunk should be end chunk");
/*
* Enqueue the first chunk
*/
rv = svm_fifo_enqueue (f, enq_chunk, test_data);
SFIFO_TEST (rv == fifo_size, "enq should succeed %u", rv);
rv = svm_fifo_max_dequeue (f);
SFIFO_TEST (rv == fifo_size, "max deq should be %u is %u", fifo_size, rv);
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 2, "should have %u chunks has %u", 2, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
SFIFO_TEST (f->shr->head_chunk == 0, "should have no head chunk");
/* Fifo is full so tail and ooo_enq should be 0 */
SFIFO_TEST (f->shr->tail_chunk == 0, "should have no tail chunk");
SFIFO_TEST (f->ooo_enq == 0, "should have no ooo enq chunk");
/*
* Peek and validate data
*/
memset (data_buf, 0, vec_len (data_buf));
rv = dequeue_ooo_inc (f, data_buf, fifo_size, 10);
SFIFO_TEST (!rv, "ooo deq should work %d", rv);
rv = compare_data (data_buf, test_data, 0, vec_len (test_data),
(u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
SFIFO_TEST ((rv == 0), "peeked compared to original returned %d", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/* Peeked all the data in a full fifo so ooo_deq ends up 0 */
SFIFO_TEST (f->ooo_deq == 0, "should have no ooo deq chunk");
/*
* Peek in reverse order and validate data
*
* RB tree should be exercised
*/
memset (data_buf, 0, vec_len (data_buf));
for (i = 10; i >= 0; i--)
{
offset = i * enq_chunk;
deq_now = clib_min (enq_chunk, vec_len (test_data) - offset);
rv = svm_fifo_peek (f, offset, deq_now, data_buf + offset);
if (rv != deq_now)
SFIFO_TEST (0, "failed to peek");
}
rv = compare_data (data_buf, test_data, 0, vec_len (test_data),
(u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
SFIFO_TEST ((rv == 0), "peeked compared to original returned %d", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/* Last chunk peeked is the first, so ooo_deq should be non zero */
SFIFO_TEST (f->ooo_deq != 0, "should have ooo deq chunk");
/*
* Dequeue drop all bytes
*/
rv = svm_fifo_dequeue_drop (f, fifo_size);
SFIFO_TEST ((rv == fifo_size), "all bytes should be dropped %u", rv);
last_start_byte += 8192;
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
SFIFO_TEST (f->shr->head_chunk == 0, "should have no head chunk");
SFIFO_TEST (f->shr->tail_chunk == 0, "should have no tail chunk");
/* We don't remove the last chunk even when the fifo goes empty */
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 1, "should have %u chunks has %u", 1, rv);
/*
* Increase size such that it can't be the sum of multiple chunk lengths
*
* A chunk of 16kB should be allocated
*/
fifo_size += 2 * fifo_inc - 100;
svm_fifo_set_size (f, fifo_size);
validate_test_and_buf_vecs (&test_data, &data_buf, fifo_size + fifo_inc);
enq_chunk = vec_len (test_data) / 10;
memset (data_buf, 0, vec_len (data_buf));
/*
* Enqueue data ooo
*/
rv = enqueue_ooo (f, test_data, fifo_size, 10);
SFIFO_TEST (!rv, "enqueue ooo should work");
SFIFO_TEST (svm_fifo_size (f) == fifo_size, "size expected %u is %u",
fifo_size, svm_fifo_size (f));
SFIFO_TEST (svm_fifo_max_dequeue (f) == 0, "max deq should be %u", 0);
/* Fifo has 2 chunks because the we didn't allow the first chunk to be
* freed when all the data was dequeued. Could be optimized in the future */
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 2, "should have %u chunks has %u", 2, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
SFIFO_TEST (f->shr->head_chunk == 0, "should have no head chunk");
/* When new fifo chunks are allocated, tail is initialized */
SFIFO_TEST (f->shr->tail_chunk != 0, "should have no tail chunk");
SFIFO_TEST (f->ooo_enq != 0, "should have an ooo enq chunk");
c = f_end_cptr (f);
SFIFO_TEST (c->start_byte == last_start_byte,
"end chunk should start at %u", last_start_byte);
SFIFO_TEST (c->length == 16384, "end chunk length should be %u", 16384);
SFIFO_TEST (f->ooo_enq == c, "ooo enq chunk should be end chunk");
/*
* Enqueue the first chunk
*/
rv = svm_fifo_enqueue (f, enq_chunk, test_data);
SFIFO_TEST (rv == fifo_size, "enq should succeed %u", rv);
rv = svm_fifo_max_dequeue (f);
SFIFO_TEST (rv == fifo_size, "max deq should be %u is %u", fifo_size, rv);
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 2, "should have %u chunks has %u", 2, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/*
* Dequeue just a part of data. Because we're tracking ooo data, we can't
* call dequeue. Therefore, first peek and then dequeue drop
*/
rv = svm_fifo_peek (f, 0, fifo_inc, data_buf);
SFIFO_TEST (rv == fifo_inc, "should dequeue all data");
rv = svm_fifo_dequeue_drop (f, fifo_inc);
SFIFO_TEST (rv == fifo_inc, "should dequeue all data");
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 1, "should have %u chunks has %u", 1, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/*
* Enqueue ooo as much data as it was dequeued
*/
rv = enqueue_ooo (f, test_data + fifo_size, fifo_inc, 2);
SFIFO_TEST (!rv, "ooo enqueue should work %d", rv);
rv = svm_fifo_enqueue (f, fifo_inc / 2, test_data + fifo_size);
SFIFO_TEST (rv == fifo_inc, "enqueue should work %d", rv);
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 2, "should have %u chunks has %u", 2, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
last_start_byte += 16384;
c = f_end_cptr (f);
SFIFO_TEST (c->start_byte == last_start_byte,
"end chunk should start at %u", last_start_byte);
SFIFO_TEST (c->length == 4096, "end chunk length should be %u", 4096);
/*
* Dequeue all. Don't call dequeue see above
*/
rv = svm_fifo_peek (f, 0, fifo_size, data_buf + fifo_inc);
SFIFO_TEST (rv == fifo_size, "should dequeue all data");
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = compare_data (data_buf, test_data, 0, vec_len (test_data),
(u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
SFIFO_TEST ((rv == 0), "dequeued compared to original returned %d", rv);
rv = svm_fifo_dequeue_drop (f, fifo_size);
SFIFO_TEST (rv == fifo_size, "should dequeue all data");
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/* fifo does not end on chunk boundary because of the - 100 */
SFIFO_TEST (f->shr->head_chunk != 0, "should have head chunk");
SFIFO_TEST (f->shr->tail_chunk != 0, "should have tail chunk");
/*
* Enqueue and dequeue byte-by-byte ooo
*/
memset (data_buf, 0, vec_len (data_buf));
rv = enqueue_ooo (f, test_data, fifo_size, fifo_size);
SFIFO_TEST (!rv, "ooo enqueue should work %d", rv);
rv = svm_fifo_enqueue (f, 1, test_data);
SFIFO_TEST (rv == fifo_size, "enqueue should work %d", rv);
rv = dequeue_ooo (f, data_buf, fifo_size, fifo_size);
SFIFO_TEST (!rv, "ooo deq should work %d", rv);
rv = compare_data (data_buf, test_data, 0, fifo_size, (u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
SFIFO_TEST ((rv == 0), "dequeued compared to original returned %d", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
last_start_byte += 4096;
c = f_end_cptr (f);
SFIFO_TEST (c->start_byte == last_start_byte,
"end chunk should start at %u", last_start_byte);
SFIFO_TEST (c->length == 16384, "end chunk length should be %u", 16384);
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 2, "should have %u chunks has %u", 2, rv);
/*
* Dequeue drop all bytes
*/
rv = svm_fifo_dequeue_drop (f, fifo_size);
SFIFO_TEST ((rv == fifo_size), "all bytes should be dropped %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
SFIFO_TEST (f->shr->head_chunk != 0, "should have head chunk");
SFIFO_TEST (f->shr->tail_chunk != 0, "should have tail chunk");
/* We don't remove the last chunk even when the fifo goes empty */
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 1, "should have %u chunks has %u", 1, rv);
SFIFO_TEST (f->ooo_enq == 0, "should have no ooo enq chunk");
SFIFO_TEST (f->ooo_deq == 0, "should have no ooo deq chunk");
/*
* Grow fifo to 4MB and force only 4kB chunk allocations
*/
fifo_size = 4 << 20;
svm_fifo_set_size (f, fifo_inc);
validate_test_and_buf_vecs (&test_data, &data_buf, fifo_size);
enq_chunk = 1500;
memset (data_buf, 0, vec_len (data_buf));
rv = enqueue_packets_inc (f, fifo_size, enq_chunk, test_data);
SFIFO_TEST (!rv, "incremental packet enqueue should work");
SFIFO_TEST (svm_fifo_max_dequeue (f) == fifo_size, "max deq should be %u",
fifo_size);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == (fifo_size / 4096) + 1, "should have %u chunks has %u",
(fifo_size / 4096) + 1, rv);
/*
* Dequeue all
*/
/* Because we're tracking ooo data, we can't call dequeue. Therefore,
* first peek and then dequeue drop */
rv = svm_fifo_peek (f, 0, fifo_size, data_buf);
SFIFO_TEST (rv == fifo_size, "should dequeue all data");
rv = compare_data (data_buf, test_data, 0, vec_len (test_data),
(u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
SFIFO_TEST ((rv == 0), "dequeued compared to original returned %d", rv);
rv = svm_fifo_dequeue_drop (f, fifo_size);
SFIFO_TEST ((rv == fifo_size), "all bytes should be dropped %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
SFIFO_TEST (f->ooo_deq == 0, "should have no ooo deq chunk");
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 1, "should have %u chunks has %u", 1, rv);
/*
* Cleanup
*/
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
vec_free (data_buf);
return 0;
}
static int
sfifo_test_fifo_shrink (vlib_main_t * vm, unformat_input_t * input)
{
int __clib_unused verbose = 0, fifo_size = 4096, deq_chunk;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u8 *test_data = 0, *data_buf = 0;
fifo_segment_t *fs;
svm_fifo_t *f;
u32 enq_chunk;
int i, rv;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
/*
* Init fifo and enqueue data such that multiple 4096 chunks are allocated
*/
fs = fifo_segment_prepare (fsm, "fifo-shrink", 0);
f = fifo_prepare (fs, fifo_size);
fifo_size = 4 << 20;
svm_fifo_set_size (f, 4096);
validate_test_and_buf_vecs (&test_data, &data_buf, fifo_size);
enq_chunk = 1500;
rv = enqueue_packets_inc (f, fifo_size, enq_chunk, test_data);
SFIFO_TEST (!rv, "incremental packet enqueue should work");
rv = svm_fifo_max_enqueue (f);
SFIFO_TEST (rv == 0, "enqueue space %u", rv);
SFIFO_TEST (svm_fifo_max_dequeue (f) == fifo_size, "max deq should be %u",
fifo_size);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == (fifo_size / 4096), "should have %u chunks has %u",
(fifo_size / 4096), rv);
/*
* Dequeue enough to collect one chunk
*/
deq_chunk = 4096;
rv = svm_fifo_dequeue (f, deq_chunk, data_buf);
SFIFO_TEST (rv == deq_chunk, "should dequeue all data");
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == (fifo_size / 4096) - 1, "should have %u chunks has %u",
(fifo_size / 4096) - 1, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = svm_fifo_max_enqueue (f);
SFIFO_TEST (rv == deq_chunk, "enqueue space %u", rv);
/*
* Dequeue ooo byte-by-byte remaining data
*/
rv = dequeue_ooo (f, data_buf + deq_chunk, fifo_size - deq_chunk,
fifo_size - deq_chunk);
SFIFO_TEST (!rv, "ooo deq should work %d", rv);
rv = compare_data (data_buf, test_data, 0, fifo_size, (u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == (fifo_size / 4096) - 1, "should have %u chunks has %u",
(fifo_size / 4096) - 1, rv);
/*
* Drop all data
*/
rv = svm_fifo_dequeue_drop (f, fifo_size - deq_chunk);
SFIFO_TEST (rv == fifo_size - deq_chunk, "should drop all data");
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == 1, "should have %u chunks has %u", 1, rv);
rv = svm_fifo_max_enqueue (f);
SFIFO_TEST (rv == fifo_size, "enqueue space %u", rv);
/*
* Reset size and enqueue ooo all data
*/
svm_fifo_set_size (f, 4096);
enq_chunk = deq_chunk = 1500;
rv = enqueue_ooo_packets (f, vec_len (test_data), 1500, test_data);
SFIFO_TEST (!rv, "enqueue ooo should work");
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/* 1 additional chunk left from previous test */
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == (fifo_size / 4096) + 1, "should have %u chunks has %u",
(fifo_size / 4096) + 1, rv);
/*
* Add missing first chunk
*/
rv = svm_fifo_enqueue (f, enq_chunk, test_data);
SFIFO_TEST (rv == fifo_size, "enq should succeed %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = svm_fifo_max_dequeue (f);
SFIFO_TEST (rv == fifo_size, "max deq should be %u is %u", fifo_size, rv);
rv = svm_fifo_n_chunks (f);
SFIFO_TEST (rv == (fifo_size / 4096) + 1, "should have %u chunks has %u",
(fifo_size / 4096) + 1, rv);
/*
* Dequeue as packets
*/
memset (data_buf, 0, vec_len (data_buf));
rv = dequeue_packets (f, fifo_size, deq_chunk, data_buf);
SFIFO_TEST (!rv, "deq pkts should work %d", rv);
rv = compare_data (data_buf, test_data, 0, fifo_size, (u32 *) & i);
if (rv)
vlib_cli_output (vm, "[%d] dequeued %u expected %u", i, data_buf[i],
test_data[i]);
/*
* Enqueue and dequeue set of packets
*/
svm_fifo_set_size (f, 4096);
for (i = 0; i < 1000; i++)
{
rv = svm_fifo_enqueue (f, enq_chunk, test_data);
if (rv != enq_chunk)
SFIFO_TEST (0, "enq fail");
rv = svm_fifo_dequeue (f, deq_chunk, data_buf);
if (rv != deq_chunk)
SFIFO_TEST (0, "deq fail");
}
/*
* Cleanup
*/
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
vec_free (data_buf);
return 0;
}
static int
sfifo_test_fifo_indirect (vlib_main_t * vm, unformat_input_t * input)
{
int __clib_unused verbose = 0, fifo_size = 4096, deq_chunk;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u8 *test_data = 0, *data_buf = 0;
svm_fifo_chunk_t *c;
fifo_segment_t *fs;
svm_fifo_t *f;
int rv;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
/*
* Init fifo and enqueue data such that multiple 4096 chunks are allocated
*/
fs = fifo_segment_prepare (fsm, "fifo-indirect", 0);
f = fifo_prepare (fs, fifo_size);
fifo_size = 4 << 20;
svm_fifo_set_size (f, fifo_size);
validate_test_and_buf_vecs (&test_data, &data_buf, fifo_size);
c = f_start_cptr (f);
SFIFO_TEST (c->next == 0, "no next");
svm_fifo_fill_chunk_list (f);
SFIFO_TEST (c->next != 0, "new chunk should've been allocated");
SFIFO_TEST (f_cptr (f, c->next)->length == 4 << 20,
"new chunk should be 4MB");
rv = svm_fifo_max_write_chunk (f);
SFIFO_TEST (rv == 4096, "max write chunk %u", rv);
/*
* Enqueue enough to fill first chunk
*/
svm_fifo_enqueue_nocopy (f, 4096);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
c = f_tail_cptr (f);
SFIFO_TEST (c == f_end_cptr (f), "tail is end chunk");
/* Initialize head chunk */
rv = svm_fifo_max_read_chunk (f);
SFIFO_TEST (rv == 4096, "max read chunk %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/*
* Move head over last segment
*/
rv = svm_fifo_dequeue (f, 4096, data_buf);
SFIFO_TEST (rv == 4096, "dequeue should work");
c = f_head_cptr (f);
SFIFO_TEST (c == f_end_cptr (f), "head chunk should be last");
rv = svm_fifo_max_read_chunk (f);
SFIFO_TEST (rv == 0, "max read chunk %u", rv);
rv = svm_fifo_max_write_chunk (f);
SFIFO_TEST (rv == 4 << 20, "max write chunk %u", rv);
/*
* Cleanup
*/
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
vec_free (data_buf);
return 0;
}
/* *INDENT-OFF* */
svm_fifo_trace_elem_t fifo_trace[] = {};
/* *INDENT-ON* */
static int
sfifo_test_fifo_replay (vlib_main_t * vm, unformat_input_t * input)
{
svm_fifo_t f;
int verbose = 0;
u8 no_read = 0, *str = 0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else if (unformat (input, "no-read"))
no_read = 1;
else
{
clib_error_t *e = clib_error_return
(0, "unknown input `%U'", format_unformat_error, input);
clib_error_report (e);
return -1;
}
}
#if SVMF_FIFO_TRACE
f.trace = fifo_trace;
#endif
str = svm_fifo_replay (str, &f, no_read, verbose);
vlib_cli_output (vm, "%v", str);
return 0;
}
static int
sfifo_test_fifo_make_rcv_wnd_zero (vlib_main_t * vm, unformat_input_t * input)
{
int __clib_unused verbose = 0, fifo_size = 4096, deq_chunk;
fifo_segment_main_t _fsm = { 0 }, *fsm = &_fsm;
u8 *test_data = 0, *data_buf = 0;
fifo_segment_t *fs;
svm_fifo_t *f;
int rv;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
/*
* Init fifo and enqueue data such that multiple 4096 chunks are allocated
*/
fs = fifo_segment_prepare (fsm, "fifo-rcv-wnd-zero", 0);
f = fifo_prepare (fs, fifo_size);
/* Enqueue 3000 into 4KB chunk, so there'll be 1096 free space */
svm_fifo_set_size (f, 4096);
validate_test_and_buf_vecs (&test_data, &data_buf, fifo_size);
rv = svm_fifo_enqueue (f, 3000, test_data);
SFIFO_TEST (rv == 3000, "enqueued %u", rv);
rv = svm_fifo_max_enqueue (f);
SFIFO_TEST (rv == 1096, "svm_fifo_max_enqueue %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/* Shrink fifo size to the in-use size */
svm_fifo_set_size (f, 3000);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
/* In TCP, this should result in rcv-wnd = 0 */
rv = svm_fifo_max_enqueue (f);
SFIFO_TEST (rv == 0, "svm_fifo_max_enqueue %u", rv);
rv = svm_fifo_max_enqueue_prod (f);
SFIFO_TEST (rv == 0, "svm_fifo_max_enqueue_prod %u", rv);
/* Dequeue and ... */
rv = svm_fifo_dequeue (f, 3000, data_buf);
SFIFO_TEST (rv == 3000, "dequeued %u", rv);
/* Clean up */
ft_fifo_free (fs, f);
ft_fifo_segment_free (fsm, fs);
vec_free (test_data);
vec_free (data_buf);
return 0;
}
static fifo_segment_main_t segment_main;
static int
sfifo_test_fifo_segment_hello_world (int verbose)
{
fifo_segment_create_args_t _a, *a = &_a;
fifo_segment_main_t *sm = &segment_main;
u8 *test_data, *retrieved_data = 0;
fifo_segment_t *fs;
svm_fifo_t *f;
int rv;
clib_memset (a, 0, sizeof (*a));
a->segment_name = "fifo-test1";
a->segment_size = 256 << 10;
a->segment_type = SSVM_SEGMENT_PRIVATE;
rv = fifo_segment_create (sm, a);
SFIFO_TEST (!rv, "svm_fifo_segment_create returned %d", rv);
fs = fifo_segment_get_segment (sm, a->new_segment_indices[0]);
f = fifo_segment_alloc_fifo (fs, 4096, FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (f != 0, "svm_fifo_segment_alloc_fifo");
test_data = format (0, "Hello world%c", 0);
vec_validate (retrieved_data, vec_len (test_data) - 1);
while (svm_fifo_max_enqueue (f) >= vec_len (test_data))
svm_fifo_enqueue (f, vec_len (test_data), test_data);
while (svm_fifo_max_dequeue (f) >= vec_len (test_data))
svm_fifo_dequeue (f, vec_len (retrieved_data), retrieved_data);
while (svm_fifo_max_enqueue (f) >= vec_len (test_data))
svm_fifo_enqueue (f, vec_len (test_data), test_data);
while (svm_fifo_max_dequeue (f) >= vec_len (test_data))
svm_fifo_dequeue (f, vec_len (retrieved_data), retrieved_data);
SFIFO_TEST (!memcmp (retrieved_data, test_data, vec_len (test_data)),
"data should be identical");
vec_free (test_data);
vec_free (retrieved_data);
vec_free (a->new_segment_indices);
fifo_segment_free_fifo (fs, f);
fifo_segment_delete (sm, fs);
return 0;
}
static int
sfifo_test_fifo_segment_fifo_grow (int verbose)
{
int rv, fifo_size = 4096, n_chunks, n_batch;
fifo_segment_main_t *sm = &segment_main;
fifo_segment_create_args_t _a, *a = &_a;
u8 *test_data = 0, *data_buf = 0;
u32 n_free_chunk_bytes, new_size;
fifo_segment_t *fs;
svm_fifo_t *f, *tf;
clib_memset (a, 0, sizeof (*a));
a->segment_name = "fifo-test1";
/* size chosen to be able to force multi chunk allocation lower */
a->segment_size = 256 << 10;
/* overhead that reduces the amount of space dedicated to fifos */
a->segment_size += 1 << 14;
a->segment_type = SSVM_SEGMENT_PRIVATE;
/* fifo allocation allocates chunks in batch */
n_batch = FIFO_SEGMENT_ALLOC_BATCH_SIZE;
rv = fifo_segment_create (sm, a);
SFIFO_TEST (!rv, "svm_fifo_segment_create returned %d", rv);
/*
* Alloc fifo
*/
fs = fifo_segment_get_segment (sm, a->new_segment_indices[0]);
fs->h->pct_first_alloc = 100;
f = fifo_segment_alloc_fifo (fs, fifo_size, FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (f != 0, "svm_fifo_segment_alloc_fifo");
n_chunks = fifo_segment_num_free_chunks (fs, fifo_size);
SFIFO_TEST (n_chunks == n_batch - 1, "free 2^10B chunks "
"should be %u is %u", n_batch - 1, n_chunks);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (rv == (n_batch - 1) * fifo_size, "free chunk bytes %u "
"expected %u", rv, (n_batch - 1) * fifo_size);
/*
* Grow fifo by preallocated fifo_size chunk
*/
svm_fifo_set_size (f, 2 * fifo_size);
validate_test_and_buf_vecs (&test_data, &data_buf, 2 * fifo_size);
rv = svm_fifo_enqueue (f, vec_len (test_data), test_data);
SFIFO_TEST (rv == vec_len (test_data), "enq should succeed %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
n_chunks = fifo_segment_num_free_chunks (fs, fifo_size);
SFIFO_TEST (n_chunks == n_batch - 2, "free 2^10B chunks "
"should be %u is %u", n_batch - 2, n_chunks);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (rv == (n_batch - 2) * fifo_size, "free chunk bytes %u "
"expected %u", rv, (n_batch - 2) * fifo_size);
/* Grow by a size not preallocated but first make sure there's space */
rv = fifo_segment_free_bytes (fs);
SFIFO_TEST (rv > 16 * fifo_size, "free bytes %u more than %u", rv,
16 * fifo_size);
/* Force fifo growth */
svm_fifo_set_size (f, svm_fifo_size (f) + 16 * fifo_size);
validate_test_and_buf_vecs (&test_data, &data_buf, svm_fifo_size (f));
rv = svm_fifo_enqueue (f, vec_len (test_data), test_data);
SFIFO_TEST (svm_fifo_size (f) == 18 * fifo_size, "fifo size should be %u "
"is %u", 18 * fifo_size, svm_fifo_size (f));
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (rv == (n_batch - 2) * fifo_size, "free chunk bytes %u "
"expected %u", rv, (n_batch - 2) * fifo_size);
/*
* Free and test free list size
*/
fifo_segment_free_fifo (fs, f);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (rv == (16 + n_batch) * fifo_size, "free chunk bytes expected %u"
" is %u", (16 + n_batch) * fifo_size, rv);
n_chunks = fifo_segment_num_free_chunks (fs, fifo_size);
SFIFO_TEST (n_chunks == n_batch, "free 2^10B chunks "
"should be %u is %u", n_batch, n_chunks);
n_chunks = fifo_segment_num_free_chunks (fs, 16 * fifo_size);
SFIFO_TEST (n_chunks == 1, "free 2^14B chunks should be %u is %u", 1,
n_chunks);
n_chunks = fifo_segment_num_free_chunks (fs, ~0);
SFIFO_TEST (n_chunks == 1 + n_batch, "free chunks should be %u is %u",
1 + n_batch, n_chunks);
/*
* Realloc fifo
*/
f = fifo_segment_alloc_fifo (fs, fifo_size, FIFO_SEGMENT_RX_FIFO);
/* Force chunk allocation */
svm_fifo_set_size (f, svm_fifo_size (f) + fifo_size);
rv = svm_fifo_enqueue (f, svm_fifo_size (f), test_data);
SFIFO_TEST (rv == svm_fifo_size (f), "enq should succeed %u", rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
n_chunks = fifo_segment_num_free_chunks (fs, fifo_size);
SFIFO_TEST (n_chunks == n_batch - 2, "free 2^10B chunks should be %u is %u",
n_batch - 2, n_chunks);
/* Grow and alloc 16 * fifo_size chunk */
svm_fifo_set_size (f, svm_fifo_size (f) + 16 * fifo_size);
rv = svm_fifo_enqueue (f, svm_fifo_size (f), test_data);
n_chunks = fifo_segment_num_free_chunks (fs, 16 * fifo_size);
SFIFO_TEST (n_chunks == 0, "free 2^14B chunks should be %u is %u", 0,
n_chunks);
n_chunks = fifo_segment_num_free_chunks (fs, ~0);
SFIFO_TEST (n_chunks == n_batch - 2, "free chunks should be %u is %u",
n_batch - 2, n_chunks);
/*
* Free again
*/
fifo_segment_free_fifo (fs, f);
n_chunks = fifo_segment_num_free_chunks (fs, ~0);
SFIFO_TEST (n_chunks == 1 + n_batch, "free chunks should be %u is %u",
1 + n_batch, n_chunks);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (rv == (16 + n_batch) * fifo_size, "free chunk bytes expected %u"
" is %u", (16 + n_batch) * fifo_size, rv);
n_free_chunk_bytes = rv;
/*
* Allocate non power of 2 fifo/chunk and check that free chunk bytes
* is correctly updated
*/
f = fifo_segment_alloc_fifo (fs, 16 * fifo_size - 1, FIFO_SEGMENT_RX_FIFO);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (n_free_chunk_bytes - 16 * fifo_size == rv, "free chunk bytes "
"expected %u is %u", n_free_chunk_bytes - 16 * fifo_size, rv);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
fifo_segment_free_fifo (fs, f);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (n_free_chunk_bytes == rv, "free chunk bytes expected %u is %u",
n_free_chunk_bytes, rv);
/*
* Force multi chunk fifo allocation
*/
/* Check that we can force multi chunk allocation. Note that fifo size
* rounded up to power of 2, i.e., 17 becomes 32 */
rv = fifo_segment_free_bytes (fs);
SFIFO_TEST (rv < 32 * fifo_size, "free bytes %u less than %u", rv,
32 * fifo_size);
f = fifo_segment_alloc_fifo (fs, 17 * fifo_size, FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
rv = fifo_segment_fl_chunk_bytes (fs);
/* Make sure that the non-power of two chunk freed above is correctly
* accounted for in the chunk free bytes reduction due to chunk allocation
* for the fifo, i.e., it's rounded up by 1 */
SFIFO_TEST (n_free_chunk_bytes - 17 * fifo_size == rv, "free chunk bytes "
"expected %u is %u", n_free_chunk_bytes - 17 * fifo_size, rv);
fifo_segment_free_fifo (fs, f);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (n_free_chunk_bytes == rv, "free chunk bytes expected %u is %u",
n_free_chunk_bytes, rv);
/*
* Allocate fifo that has all chunks. Because we have a chunk size limit of
* segment_size / 2, allocate 2 fifos.
*/
tf = fifo_segment_alloc_fifo (fs, n_free_chunk_bytes / 2,
FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (tf != 0, "allocation should work");
SFIFO_TEST (svm_fifo_is_sane (tf), "fifo should be sane");
f = fifo_segment_alloc_fifo (fs, n_free_chunk_bytes / 2,
FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (f != 0, "allocation should work");
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
fifo_segment_free_fifo (fs, tf);
fifo_segment_free_fifo (fs, f);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (n_free_chunk_bytes == rv, "free chunk bytes expected %u is %u",
n_free_chunk_bytes, rv);
/*
* Try to allocate more than space available
*/
f = fifo_segment_alloc_fifo (fs, n_free_chunk_bytes + fifo_size,
FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (f == 0, "allocation should fail");
/*
* Allocate fifo and try to grow beyond available space
*/
f = fifo_segment_alloc_fifo (fs, fifo_segment_free_bytes (fs),
FIFO_SEGMENT_RX_FIFO);
/* Try to force fifo growth */
new_size = svm_fifo_size (f) + n_free_chunk_bytes + 1;
svm_fifo_set_size (f, new_size);
validate_test_and_buf_vecs (&test_data, &data_buf, new_size);
rv = svm_fifo_enqueue (f, new_size, test_data);
SFIFO_TEST (rv != new_size, "grow should fail size %u wrote %d",
new_size, rv);
fifo_segment_free_fifo (fs, f);
/*
* Cleanup
*/
fifo_segment_delete (sm, fs);
vec_free (a->new_segment_indices);
return 0;
}
static int
sfifo_test_fifo_segment_slave (int verbose)
{
fifo_segment_create_args_t _a, *a = &_a;
fifo_segment_main_t *sm = &segment_main;
u8 *test_data, *retrieved_data = 0;
fifo_segment_t *fs;
svm_fifo_t *f;
u32 *result;
int rv, i;
sleep (2);
sm->timeout_in_seconds = 5;
clib_memset (a, 0, sizeof (*a));
a->segment_name = "fifo-test1";
rv = fifo_segment_attach (sm, a);
SFIFO_TEST (!rv, "svm_fifo_segment_attach returned %d", rv);
fs = fifo_segment_get_segment (sm, a->new_segment_indices[0]);
vec_free (a->new_segment_indices);
/* might wanna wait.. */
f = fifo_segment_get_slice_fifo_list (fs, 0);
/* Lazy bastards united */
test_data = format (0, "Hello world%c", 0);
vec_validate (retrieved_data, vec_len (test_data) - 1);
for (i = 0; i < 1000; i++)
{
svm_fifo_dequeue (f, vec_len (retrieved_data), retrieved_data);
if (memcmp (retrieved_data, test_data, vec_len (retrieved_data)))
{
result = (u32 *) f_head_cptr (f)->data;
*result = 1;
_exit (0);
}
}
result = (u32 *) f_head_cptr (f)->data;
*result = 0;
vec_free (test_data);
vec_free (retrieved_data);
_exit (0);
}
static int
sfifo_test_fifo_segment_master_slave (int verbose)
{
fifo_segment_create_args_t _a, *a = &_a;
fifo_segment_main_t *sm = &segment_main;
fifo_segment_t *sp;
svm_fifo_t *f;
u8 *test_data;
u32 *result;
int rv, i;
pid_t pid;
pid = fork ();
if (pid < 0)
SFIFO_TEST (0, "fork failed");
if (!pid)
sfifo_test_fifo_segment_slave (verbose);
clib_memset (a, 0, sizeof (*a));
a->segment_name = "fifo-test1";
a->segment_size = 256 << 10;
rv = fifo_segment_create (sm, a);
SFIFO_TEST (!rv, "svm_fifo_segment_create returned %d", rv);
sp = fifo_segment_get_segment (sm, a->new_segment_indices[0]);
f = fifo_segment_alloc_fifo (sp, 4096, FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (f != 0, "svm_fifo_segment_alloc_fifo alloc");
test_data = format (0, "Hello world%c", 0);
usleep (200e3);
for (i = 0; i < 1000; i++)
svm_fifo_enqueue (f, vec_len (test_data), test_data);
/* Wait for slave */
i = 0;
while (svm_fifo_max_dequeue (f) && i++ < 1e10)
;
usleep (1e3);
result = (u32 *) f_head_cptr (f)->data;
SFIFO_TEST (*result == 0, "slave reported no error");
vec_free (a->new_segment_indices);
vec_free (test_data);
fifo_segment_free_fifo (sp, f);
fifo_segment_delete (sm, sp);
return 0;
}
static int
sfifo_test_fifo_segment_mempig (int verbose)
{
fifo_segment_create_args_t _a, *a = &_a;
fifo_segment_main_t *sm = &segment_main;
fifo_segment_t *sp;
svm_fifo_t *f;
svm_fifo_t **flist = 0;
int rv;
int i;
clib_memset (a, 0, sizeof (*a));
a->segment_name = "fifo-test1";
a->segment_size = 256 << 10;
a->segment_type = SSVM_SEGMENT_PRIVATE;
rv = fifo_segment_create (sm, a);
SFIFO_TEST (!rv, "svm_fifo_segment_create returned %d", rv);
sp = fifo_segment_get_segment (sm, a->new_segment_indices[0]);
for (i = 0; i < 1000; i++)
{
f = fifo_segment_alloc_fifo (sp, 4096, FIFO_SEGMENT_RX_FIFO);
if (f == 0)
break;
vec_add1 (flist, f);
}
SFIFO_TEST (vec_len (flist), "created %d fifos", vec_len (flist));
for (i = 0; i < vec_len (flist); i++)
{
f = flist[i];
fifo_segment_free_fifo (sp, f);
}
vec_set_len (flist, 0);
for (i = 0; i < 1000; i++)
{
f = fifo_segment_alloc_fifo (sp, 4096, FIFO_SEGMENT_RX_FIFO);
if (f == 0)
break;
vec_add1 (flist, f);
}
SFIFO_TEST (vec_len (flist), "second try created %d fifos",
vec_len (flist));
for (i = 0; i < vec_len (flist); i++)
{
f = flist[i];
fifo_segment_free_fifo (sp, f);
}
fifo_segment_delete (sm, sp);
return 0;
}
static int
approx_leq (uword a, uword b, u32 margin)
{
if (a - margin <= b && b <= a)
return 1;
return 0;
}
static int
sfifo_test_fifo_segment_prealloc (int verbose)
{
u32 max_pairs, pairs_req, free_space, pair_mem, overhead;
fifo_segment_create_args_t _a, *a = &_a;
fifo_segment_main_t *sm = &segment_main;
svm_fifo_t *f, *tf, *old;
fifo_segment_t *fs;
int rv, alloc;
clib_memset (a, 0, sizeof (*a));
/* Overhead due to segment internal headers and offsets. The magic 384
* bytes are the fsh->n_reserved_bytes after seg init */
overhead = (8 << 10) + 384;
a->segment_name = "fifo-test-prealloc";
a->segment_size = (256 << 10) + overhead;
a->segment_type = SSVM_SEGMENT_PRIVATE;
rv = fifo_segment_create (sm, a);
SFIFO_TEST (!rv, "svm_fifo_segment_create returned %d", rv);
fs = fifo_segment_get_segment (sm, a->new_segment_indices[0]);
fs->h->pct_first_alloc = 100;
/*
* Prealloc chunks and headers
*/
free_space = fifo_segment_free_bytes (fs);
SFIFO_TEST (free_space - 4096 <= 256 << 10, "free space expected %u is %u",
256 << 10, free_space);
rv = fifo_segment_prealloc_fifo_chunks (fs, 0, 4096, 50);
SFIFO_TEST (rv == 0, "chunk prealloc should work");
rv = fifo_segment_num_free_chunks (fs, 4096);
SFIFO_TEST (rv == 50, "prealloc chunks expected %u is %u", 50, rv);
rv = fifo_segment_free_bytes (fs);
free_space -= (sizeof (svm_fifo_chunk_t) + 4096) * 50;
/* Memory alloc alignment accounts for the difference */
SFIFO_TEST (approx_leq (free_space, rv, 16), "free space expected %u is %u",
free_space, rv);
free_space = rv;
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (rv == 4096 * 50, "chunk free space expected %u is %u",
4096 * 50, rv);
rv = fifo_segment_prealloc_fifo_hdrs (fs, 0, 50);
SFIFO_TEST (rv == 0, "fifo hdr prealloc should work");
rv = fifo_segment_num_free_fifos (fs);
SFIFO_TEST (rv == 50, "prealloc fifo hdrs expected %u is %u", 50, rv);
rv = fifo_segment_free_bytes (fs);
free_space -= sizeof (svm_fifo_shared_t) * 50;
/* Memory alloc alignment accounts for the difference */
SFIFO_TEST (approx_leq (free_space, rv, 128), "free space expected %u is %u",
free_space, rv);
free_space = rv;
rv = fifo_segment_free_bytes (fs);
SFIFO_TEST (clib_abs (rv - (int) free_space) < 512,
"free space expected %u is %u", free_space, rv);
/* Use all free chunk memory */
f = fifo_segment_alloc_fifo (fs, 100 << 10, FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (f != 0, "fifo allocated");
SFIFO_TEST (svm_fifo_is_sane (f), "fifo should be sane");
tf = fifo_segment_alloc_fifo (fs, 100 << 10, FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (tf != 0, "fifo allocated");
SFIFO_TEST (svm_fifo_is_sane (tf), "fifo should be sane");
rv = fifo_segment_num_free_chunks (fs, 4096);
SFIFO_TEST (rv == 0, "prealloc chunks expected %u is %u", 0, rv);
rv = fifo_segment_fl_chunk_bytes (fs);
SFIFO_TEST (rv == 0, "chunk free space expected %u is %u", 0, rv);
/*
* Multiple preallocs that consume the remaining space
*/
free_space = fifo_segment_free_bytes (fs);
pair_mem = 2 * (4096 + sizeof (*f) + sizeof (svm_fifo_chunk_t));
max_pairs = pairs_req = (free_space / pair_mem) - 1;
fifo_segment_preallocate_fifo_pairs (fs, 4096, 4096, &pairs_req);
SFIFO_TEST (pairs_req == 0, "prealloc pairs should work req %u", max_pairs);
rv = fifo_segment_num_free_chunks (fs, 4096);
SFIFO_TEST (rv == max_pairs * 2, "prealloc chunks expected %u is %u",
max_pairs * 2, rv);
rv = fifo_segment_free_bytes (fs);
SFIFO_TEST (rv < 2 * pair_mem, "free bytes %u less than %u", rv,
2 * pair_mem);
/* Preallocate as many more chunks as possible. Heap is almost full
* so we may not use all the free space*/
alloc = 0;
while (!fifo_segment_prealloc_fifo_chunks (fs, 0, 4096, 1))
alloc++;
SFIFO_TEST (alloc, "chunk prealloc should work %u", alloc);
rv = fifo_segment_num_free_chunks (fs, 4096);
SFIFO_TEST (rv == max_pairs * 2 + alloc, "prealloc chunks expected %u "
"is %u", max_pairs * 2 + alloc, rv);
rv = fifo_segment_free_bytes (fs);
SFIFO_TEST (rv < pair_mem, "free bytes expected less than %u is %u",
pair_mem, rv);
/*
* Test negative prealloc cases
*/
pairs_req = 1;
fifo_segment_preallocate_fifo_pairs (fs, 4096, 4096, &pairs_req);
SFIFO_TEST (pairs_req == 1, "prealloc pairs should not work");
old = f;
f = fifo_segment_alloc_fifo (fs, 200 << 10, FIFO_SEGMENT_RX_FIFO);
SFIFO_TEST (f == 0, "fifo alloc should fail");
rv = fifo_segment_prealloc_fifo_chunks (fs, 0, 4096, 50);
SFIFO_TEST (rv == -1, "chunk prealloc should fail");
rv = fifo_segment_prealloc_fifo_hdrs (fs, 0, 50);
SFIFO_TEST (rv == -1, "fifo hdr prealloc should fail");
/*
* Cleanup
*/
fifo_segment_free_fifo (fs, old);
fifo_segment_free_fifo (fs, tf);
fifo_segment_delete (sm, fs);
return 0;
}
static int
sfifo_test_fifo_segment (vlib_main_t * vm, unformat_input_t * input)
{
int rv, verbose = 0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))
verbose = 1;
else if (unformat (input, "masterslave"))
{
if ((rv = sfifo_test_fifo_segment_master_slave (verbose)))
return -1;
}
else if (unformat (input, "basic"))
{
if ((rv = sfifo_test_fifo_segment_hello_world (verbose)))
return -1;
}
else if (unformat (input, "mempig"))
{
if ((rv = sfifo_test_fifo_segment_mempig (verbose)))
return -1;
}
else if (unformat (input, "grow fifo"))
{
if ((rv = sfifo_test_fifo_segment_fifo_grow (verbose)))
return -1;
}
else if (unformat (input, "prealloc"))
{
if ((rv = sfifo_test_fifo_segment_prealloc (verbose)))
return -1;
}
else if (unformat (input, "all"))
{
if ((rv = sfifo_test_fifo_segment_hello_world (verbose)))
return -1;
if ((rv = sfifo_test_fifo_segment_mempig (verbose)))
return -1;
if ((rv = sfifo_test_fifo_segment_fifo_grow (verbose)))
return -1;
if ((rv = sfifo_test_fifo_segment_prealloc (verbose)))
return -1;
/* Pretty slow so avoid running it always
if ((rv = sfifo_test_fifo_segment_master_slave (verbose)))
return -1;
*/
}
else
{
vlib_cli_output (vm, "parse error: '%U'", format_unformat_error,
input);
return -1;
}
}
return 0;
}
static clib_error_t *
svm_fifo_test (vlib_main_t * vm, unformat_input_t * input,
vlib_cli_command_t * cmd_arg)
{
int res = 0;
char *str;
clib_warning ("high mem %lu", HIGH_SEGMENT_BASEVA);
fifo_segment_main_init (&segment_main, HIGH_SEGMENT_BASEVA, 5);
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "fifo1"))
res = sfifo_test_fifo1 (vm, input);
else if (unformat (input, "fifo2"))
res = sfifo_test_fifo2 (vm);
else if (unformat (input, "fifo3"))
res = sfifo_test_fifo3 (vm, input);
else if (unformat (input, "fifo4"))
res = sfifo_test_fifo4 (vm, input);
else if (unformat (input, "fifo5"))
res = sfifo_test_fifo5 (vm, input);
else if (unformat (input, "fifo6"))
res = sfifo_test_fifo6 (vm, input);
else if (unformat (input, "fifo7"))
res = sfifo_test_fifo7 (vm, input);
else if (unformat (input, "large"))
res = sfifo_test_fifo_large (vm, input);
else if (unformat (input, "replay"))
res = sfifo_test_fifo_replay (vm, input);
else if (unformat (input, "grow"))
res = sfifo_test_fifo_grow (vm, input);
else if (unformat (input, "shrink"))
res = sfifo_test_fifo_shrink (vm, input);
else if (unformat (input, "indirect"))
res = sfifo_test_fifo_indirect (vm, input);
else if (unformat (input, "zero"))
res = sfifo_test_fifo_make_rcv_wnd_zero (vm, input);
else if (unformat (input, "segment"))
res = sfifo_test_fifo_segment (vm, input);
else if (unformat (input, "all"))
{
if ((res = sfifo_test_fifo1 (vm, input)))
goto done;
if ((res = sfifo_test_fifo2 (vm)))
goto done;
/*
* Run a number of fifo3 configs
*/
str = "nsegs 10 overlap seed 123";
unformat_init_cstring (input, str);
if ((res = sfifo_test_fifo3 (vm, input)))
goto done;
unformat_free (input);
str = "nsegs 10 overlap seed 123 in-seq-all";
unformat_init_cstring (input, str);
if ((res = sfifo_test_fifo3 (vm, input)))
goto done;
unformat_free (input);
str = "nsegs 10 overlap seed 123 initial-offset 3917";
unformat_init_cstring (input, str);
if ((res = sfifo_test_fifo3 (vm, input)))
goto done;
unformat_free (input);
str = "nsegs 10 overlap seed 123 initial-offset 3917 drop";
unformat_init_cstring (input, str);
if ((res = sfifo_test_fifo3 (vm, input)))
goto done;
unformat_free (input);
str = "nsegs 10 seed 123 initial-offset 3917 drop no-randomize";
unformat_init_cstring (input, str);
if ((res = sfifo_test_fifo3 (vm, input)))
goto done;
unformat_free (input);
if ((res = sfifo_test_fifo4 (vm, input)))
goto done;
if ((res = sfifo_test_fifo5 (vm, input)))
goto done;
if ((res = sfifo_test_fifo6 (vm, input)))
goto done;
if ((res = sfifo_test_fifo7 (vm, input)))
goto done;
if ((res = sfifo_test_fifo_grow (vm, input)))
goto done;
if ((res = sfifo_test_fifo_shrink (vm, input)))
goto done;
if ((res = sfifo_test_fifo_indirect (vm, input)))
goto done;
if ((res = sfifo_test_fifo_make_rcv_wnd_zero (vm, input)))
goto done;
str = "all";
unformat_init_cstring (input, str);
if ((res = sfifo_test_fifo_segment (vm, input)))
goto done;
}
else
{
vlib_cli_output (vm, "unknown input `%U'", format_unformat_error,
input);
res = -1;
goto done;
}
}
done:
if (res)
return clib_error_return (0, "svm fifo unit test failed");
return 0;
}
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (svm_fifo_test_command, static) =
{
.path = "test svm fifo",
.short_help = "internal svm fifo unit tests",
.function = svm_fifo_test,
};
/* *INDENT-ON* */
/*
* fd.io coding-style-patch-verification: ON
*
* Local Variables:
* eval: (c-set-style "gnu")
* End:
*/
|
e3b5711e3693266db5727394f780ae0ebd6f6e7c
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/net/wireless/rtlwifi/rtl8192se/fw.c
|
380e7d4b1ccf8a3629ab142354b88c35535629f1
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 17,756
|
c
|
fw.c
|
/******************************************************************************
*
* Copyright(c) 2009-2012 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
* The full GNU General Public License is included in this distribution in the
* file called LICENSE.
*
* Contact Information:
* wlanfae <wlanfae@realtek.com>
* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
* Hsinchu 300, Taiwan.
*
* Larry Finger <Larry.Finger@lwfinger.net>
*
*****************************************************************************/
#include "../wifi.h"
#include "../pci.h"
#include "../base.h"
#include "reg.h"
#include "def.h"
#include "fw.h"
static void _rtl92s_fw_set_rqpn(struct ieee80211_hw *hw)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
rtl_write_dword(rtlpriv, RQPN, 0xffffffff);
rtl_write_dword(rtlpriv, RQPN + 4, 0xffffffff);
rtl_write_byte(rtlpriv, RQPN + 8, 0xff);
rtl_write_byte(rtlpriv, RQPN + 0xB, 0x80);
}
static bool _rtl92s_firmware_enable_cpu(struct ieee80211_hw *hw)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
u32 ichecktime = 200;
u16 tmpu2b;
u8 tmpu1b, cpustatus = 0;
_rtl92s_fw_set_rqpn(hw);
/* Enable CPU. */
tmpu1b = rtl_read_byte(rtlpriv, SYS_CLKR);
/* AFE source */
rtl_write_byte(rtlpriv, SYS_CLKR, (tmpu1b | SYS_CPU_CLKSEL));
tmpu2b = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN);
rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, (tmpu2b | FEN_CPUEN));
/* Polling IMEM Ready after CPU has refilled. */
do {
cpustatus = rtl_read_byte(rtlpriv, TCR);
if (cpustatus & IMEM_RDY) {
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"IMEM Ready after CPU has refilled\n");
break;
}
udelay(100);
} while (ichecktime--);
if (!(cpustatus & IMEM_RDY))
return false;
return true;
}
static enum fw_status _rtl92s_firmware_get_nextstatus(
enum fw_status fw_currentstatus)
{
enum fw_status next_fwstatus = 0;
switch (fw_currentstatus) {
case FW_STATUS_INIT:
next_fwstatus = FW_STATUS_LOAD_IMEM;
break;
case FW_STATUS_LOAD_IMEM:
next_fwstatus = FW_STATUS_LOAD_EMEM;
break;
case FW_STATUS_LOAD_EMEM:
next_fwstatus = FW_STATUS_LOAD_DMEM;
break;
case FW_STATUS_LOAD_DMEM:
next_fwstatus = FW_STATUS_READY;
break;
default:
break;
}
return next_fwstatus;
}
static u8 _rtl92s_firmware_header_map_rftype(struct ieee80211_hw *hw)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &(rtlpriv->phy);
switch (rtlphy->rf_type) {
case RF_1T1R:
return 0x11;
break;
case RF_1T2R:
return 0x12;
break;
case RF_2T2R:
return 0x22;
break;
default:
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Unknown RF type(%x)\n",
rtlphy->rf_type);
break;
}
return 0x22;
}
static void _rtl92s_firmwareheader_priveupdate(struct ieee80211_hw *hw,
struct fw_priv *pfw_priv)
{
/* Update RF types for RATR settings. */
pfw_priv->rf_config = _rtl92s_firmware_header_map_rftype(hw);
}
static bool _rtl92s_cmd_send_packet(struct ieee80211_hw *hw,
struct sk_buff *skb, u8 last)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
struct rtl8192_tx_ring *ring;
struct rtl_tx_desc *pdesc;
unsigned long flags;
u8 idx = 0;
ring = &rtlpci->tx_ring[TXCMD_QUEUE];
spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);
idx = (ring->idx + skb_queue_len(&ring->queue)) % ring->entries;
pdesc = &ring->desc[idx];
rtlpriv->cfg->ops->fill_tx_cmddesc(hw, (u8 *)pdesc, 1, 1, skb);
__skb_queue_tail(&ring->queue, skb);
spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags);
return true;
}
static bool _rtl92s_firmware_downloadcode(struct ieee80211_hw *hw,
u8 *code_virtual_address, u32 buffer_len)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct sk_buff *skb;
struct rtl_tcb_desc *tcb_desc;
unsigned char *seg_ptr;
u16 frag_threshold = MAX_FIRMWARE_CODE_SIZE;
u16 frag_length, frag_offset = 0;
u16 extra_descoffset = 0;
u8 last_inipkt = 0;
_rtl92s_fw_set_rqpn(hw);
if (buffer_len >= MAX_FIRMWARE_CODE_SIZE) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"Size over FIRMWARE_CODE_SIZE!\n");
return false;
}
extra_descoffset = 0;
do {
if ((buffer_len - frag_offset) > frag_threshold) {
frag_length = frag_threshold + extra_descoffset;
} else {
frag_length = (u16)(buffer_len - frag_offset +
extra_descoffset);
last_inipkt = 1;
}
/* Allocate skb buffer to contain firmware */
/* info and tx descriptor info. */
skb = dev_alloc_skb(frag_length);
if (!skb)
return false;
skb_reserve(skb, extra_descoffset);
seg_ptr = (u8 *)skb_put(skb, (u32)(frag_length -
extra_descoffset));
memcpy(seg_ptr, code_virtual_address + frag_offset,
(u32)(frag_length - extra_descoffset));
tcb_desc = (struct rtl_tcb_desc *)(skb->cb);
tcb_desc->queue_index = TXCMD_QUEUE;
tcb_desc->cmd_or_init = DESC_PACKET_TYPE_INIT;
tcb_desc->last_inipkt = last_inipkt;
_rtl92s_cmd_send_packet(hw, skb, last_inipkt);
frag_offset += (frag_length - extra_descoffset);
} while (frag_offset < buffer_len);
rtl_write_byte(rtlpriv, TP_POLL, TPPOLL_CQ);
return true ;
}
static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw,
u8 loadfw_status)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
struct rt_firmware *firmware = (struct rt_firmware *)rtlhal->pfirmware;
u32 tmpu4b;
u8 cpustatus = 0;
short pollingcnt = 1000;
bool rtstatus = true;
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"LoadStaus(%d)\n", loadfw_status);
firmware->fwstatus = (enum fw_status)loadfw_status;
switch (loadfw_status) {
case FW_STATUS_LOAD_IMEM:
/* Polling IMEM code done. */
do {
cpustatus = rtl_read_byte(rtlpriv, TCR);
if (cpustatus & IMEM_CODE_DONE)
break;
udelay(5);
} while (pollingcnt--);
if (!(cpustatus & IMEM_CHK_RPT) || (pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"FW_STATUS_LOAD_IMEM FAIL CPU, Status=%x\n",
cpustatus);
goto status_check_fail;
}
break;
case FW_STATUS_LOAD_EMEM:
/* Check Put Code OK and Turn On CPU */
/* Polling EMEM code done. */
do {
cpustatus = rtl_read_byte(rtlpriv, TCR);
if (cpustatus & EMEM_CODE_DONE)
break;
udelay(5);
} while (pollingcnt--);
if (!(cpustatus & EMEM_CHK_RPT) || (pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"FW_STATUS_LOAD_EMEM FAIL CPU, Status=%x\n",
cpustatus);
goto status_check_fail;
}
/* Turn On CPU */
rtstatus = _rtl92s_firmware_enable_cpu(hw);
if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"Enable CPU fail!\n");
goto status_check_fail;
}
break;
case FW_STATUS_LOAD_DMEM:
/* Polling DMEM code done */
do {
cpustatus = rtl_read_byte(rtlpriv, TCR);
if (cpustatus & DMEM_CODE_DONE)
break;
udelay(5);
} while (pollingcnt--);
if (!(cpustatus & DMEM_CODE_DONE) || (pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"Polling DMEM code done fail ! cpustatus(%#x)\n",
cpustatus);
goto status_check_fail;
}
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"DMEM code download success, cpustatus(%#x)\n",
cpustatus);
/* Prevent Delay too much and being scheduled out */
/* Polling Load Firmware ready */
pollingcnt = 2000;
do {
cpustatus = rtl_read_byte(rtlpriv, TCR);
if (cpustatus & FWRDY)
break;
udelay(40);
} while (pollingcnt--);
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"Polling Load Firmware ready, cpustatus(%x)\n",
cpustatus);
if (((cpustatus & LOAD_FW_READY) != LOAD_FW_READY) ||
(pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"Polling Load Firmware ready fail ! cpustatus(%x)\n",
cpustatus);
goto status_check_fail;
}
/* If right here, we can set TCR/RCR to desired value */
/* and config MAC lookback mode to normal mode */
tmpu4b = rtl_read_dword(rtlpriv, TCR);
rtl_write_dword(rtlpriv, TCR, (tmpu4b & (~TCR_ICV)));
tmpu4b = rtl_read_dword(rtlpriv, RCR);
rtl_write_dword(rtlpriv, RCR, (tmpu4b | RCR_APPFCS |
RCR_APP_ICV | RCR_APP_MIC));
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"Current RCR settings(%#x)\n", tmpu4b);
/* Set to normal mode. */
rtl_write_byte(rtlpriv, LBKMD_SEL, LBK_NORMAL);
break;
default:
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG,
"Unknown status check!\n");
rtstatus = false;
break;
}
status_check_fail:
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"loadfw_status(%d), rtstatus(%x)\n",
loadfw_status, rtstatus);
return rtstatus;
}
int rtl92s_download_fw(struct ieee80211_hw *hw)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
struct rt_firmware *firmware = NULL;
struct fw_hdr *pfwheader;
struct fw_priv *pfw_priv = NULL;
u8 *puc_mappedfile = NULL;
u32 ul_filelength = 0;
u8 fwhdr_size = RT_8192S_FIRMWARE_HDR_SIZE;
u8 fwstatus = FW_STATUS_INIT;
bool rtstatus = true;
if (rtlpriv->max_fw_size == 0 || !rtlhal->pfirmware)
return 1;
firmware = (struct rt_firmware *)rtlhal->pfirmware;
firmware->fwstatus = FW_STATUS_INIT;
puc_mappedfile = firmware->sz_fw_tmpbuffer;
/* 1. Retrieve FW header. */
firmware->pfwheader = (struct fw_hdr *) puc_mappedfile;
pfwheader = firmware->pfwheader;
firmware->firmwareversion = byte(pfwheader->version, 0);
firmware->pfwheader->fwpriv.hci_sel = 1;/* pcie */
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"signature:%x, version:%x, size:%x, imemsize:%x, sram size:%x\n",
pfwheader->signature,
pfwheader->version, pfwheader->dmem_size,
pfwheader->img_imem_size, pfwheader->img_sram_size);
/* 2. Retrieve IMEM image. */
if ((pfwheader->img_imem_size == 0) || (pfwheader->img_imem_size >
sizeof(firmware->fw_imem))) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"memory for data image is less than IMEM required\n");
goto fail;
} else {
puc_mappedfile += fwhdr_size;
memcpy(firmware->fw_imem, puc_mappedfile,
pfwheader->img_imem_size);
firmware->fw_imem_len = pfwheader->img_imem_size;
}
/* 3. Retriecve EMEM image. */
if (pfwheader->img_sram_size > sizeof(firmware->fw_emem)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"memory for data image is less than EMEM required\n");
goto fail;
} else {
puc_mappedfile += firmware->fw_imem_len;
memcpy(firmware->fw_emem, puc_mappedfile,
pfwheader->img_sram_size);
firmware->fw_emem_len = pfwheader->img_sram_size;
}
/* 4. download fw now */
fwstatus = _rtl92s_firmware_get_nextstatus(firmware->fwstatus);
while (fwstatus != FW_STATUS_READY) {
/* Image buffer redirection. */
switch (fwstatus) {
case FW_STATUS_LOAD_IMEM:
puc_mappedfile = firmware->fw_imem;
ul_filelength = firmware->fw_imem_len;
break;
case FW_STATUS_LOAD_EMEM:
puc_mappedfile = firmware->fw_emem;
ul_filelength = firmware->fw_emem_len;
break;
case FW_STATUS_LOAD_DMEM:
/* Partial update the content of header private. */
pfwheader = firmware->pfwheader;
pfw_priv = &pfwheader->fwpriv;
_rtl92s_firmwareheader_priveupdate(hw, pfw_priv);
puc_mappedfile = (u8 *)(firmware->pfwheader) +
RT_8192S_FIRMWARE_HDR_EXCLUDE_PRI_SIZE;
ul_filelength = fwhdr_size -
RT_8192S_FIRMWARE_HDR_EXCLUDE_PRI_SIZE;
break;
default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"Unexpected Download step!!\n");
goto fail;
break;
}
/* <2> Download image file */
rtstatus = _rtl92s_firmware_downloadcode(hw, puc_mappedfile,
ul_filelength);
if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "fail!\n");
goto fail;
}
/* <3> Check whether load FW process is ready */
rtstatus = _rtl92s_firmware_checkready(hw, fwstatus);
if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "fail!\n");
goto fail;
}
fwstatus = _rtl92s_firmware_get_nextstatus(firmware->fwstatus);
}
return rtstatus;
fail:
return 0;
}
static u32 _rtl92s_fill_h2c_cmd(struct sk_buff *skb, u32 h2cbufferlen,
u32 cmd_num, u32 *pelement_id, u32 *pcmd_len,
u8 **pcmb_buffer, u8 *cmd_start_seq)
{
u32 totallen = 0, len = 0, tx_desclen = 0;
u32 pre_continueoffset = 0;
u8 *ph2c_buffer;
u8 i = 0;
do {
/* 8 - Byte aligment */
len = H2C_TX_CMD_HDR_LEN + N_BYTE_ALIGMENT(pcmd_len[i], 8);
/* Buffer length is not enough */
if (h2cbufferlen < totallen + len + tx_desclen)
break;
/* Clear content */
ph2c_buffer = (u8 *)skb_put(skb, (u32)len);
memset((ph2c_buffer + totallen + tx_desclen), 0, len);
/* CMD len */
SET_BITS_TO_LE_4BYTE((ph2c_buffer + totallen + tx_desclen),
0, 16, pcmd_len[i]);
/* CMD ID */
SET_BITS_TO_LE_4BYTE((ph2c_buffer + totallen + tx_desclen),
16, 8, pelement_id[i]);
/* CMD Sequence */
*cmd_start_seq = *cmd_start_seq % 0x80;
SET_BITS_TO_LE_4BYTE((ph2c_buffer + totallen + tx_desclen),
24, 7, *cmd_start_seq);
++*cmd_start_seq;
/* Copy memory */
memcpy((ph2c_buffer + totallen + tx_desclen +
H2C_TX_CMD_HDR_LEN), pcmb_buffer[i], pcmd_len[i]);
/* CMD continue */
/* set the continue in prevoius cmd. */
if (i < cmd_num - 1)
SET_BITS_TO_LE_4BYTE((ph2c_buffer + pre_continueoffset),
31, 1, 1);
pre_continueoffset = totallen;
totallen += len;
} while (++i < cmd_num);
return totallen;
}
static u32 _rtl92s_get_h2c_cmdlen(u32 h2cbufferlen, u32 cmd_num, u32 *pcmd_len)
{
u32 totallen = 0, len = 0, tx_desclen = 0;
u8 i = 0;
do {
/* 8 - Byte aligment */
len = H2C_TX_CMD_HDR_LEN + N_BYTE_ALIGMENT(pcmd_len[i], 8);
/* Buffer length is not enough */
if (h2cbufferlen < totallen + len + tx_desclen)
break;
totallen += len;
} while (++i < cmd_num);
return totallen + tx_desclen;
}
static bool _rtl92s_firmware_set_h2c_cmd(struct ieee80211_hw *hw, u8 h2c_cmd,
u8 *pcmd_buffer)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
struct rtl_tcb_desc *cb_desc;
struct sk_buff *skb;
u32 element_id = 0;
u32 cmd_len = 0;
u32 len;
switch (h2c_cmd) {
case FW_H2C_SETPWRMODE:
element_id = H2C_SETPWRMODE_CMD ;
cmd_len = sizeof(struct h2c_set_pwrmode_parm);
break;
case FW_H2C_JOINBSSRPT:
element_id = H2C_JOINBSSRPT_CMD;
cmd_len = sizeof(struct h2c_joinbss_rpt_parm);
break;
case FW_H2C_WOWLAN_UPDATE_GTK:
element_id = H2C_WOWLAN_UPDATE_GTK_CMD;
cmd_len = sizeof(struct h2c_wpa_two_way_parm);
break;
case FW_H2C_WOWLAN_UPDATE_IV:
element_id = H2C_WOWLAN_UPDATE_IV_CMD;
cmd_len = sizeof(unsigned long long);
break;
case FW_H2C_WOWLAN_OFFLOAD:
element_id = H2C_WOWLAN_FW_OFFLOAD;
cmd_len = sizeof(u8);
break;
default:
break;
}
len = _rtl92s_get_h2c_cmdlen(MAX_TRANSMIT_BUFFER_SIZE, 1, &cmd_len);
skb = dev_alloc_skb(len);
if (!skb)
return false;
cb_desc = (struct rtl_tcb_desc *)(skb->cb);
cb_desc->queue_index = TXCMD_QUEUE;
cb_desc->cmd_or_init = DESC_PACKET_TYPE_NORMAL;
cb_desc->last_inipkt = false;
_rtl92s_fill_h2c_cmd(skb, MAX_TRANSMIT_BUFFER_SIZE, 1, &element_id,
&cmd_len, &pcmd_buffer, &rtlhal->h2c_txcmd_seq);
_rtl92s_cmd_send_packet(hw, skb, false);
rtlpriv->cfg->ops->tx_polling(hw, TXCMD_QUEUE);
return true;
}
void rtl92s_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 Mode)
{
struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
struct h2c_set_pwrmode_parm pwrmode;
u16 max_wakeup_period = 0;
pwrmode.mode = Mode;
pwrmode.flag_low_traffic_en = 0;
pwrmode.flag_lpnav_en = 0;
pwrmode.flag_rf_low_snr_en = 0;
pwrmode.flag_dps_en = 0;
pwrmode.bcn_rx_en = 0;
pwrmode.bcn_to = 0;
SET_BITS_TO_LE_2BYTE((u8 *)(&pwrmode) + 8, 0, 16,
mac->vif->bss_conf.beacon_int);
pwrmode.app_itv = 0;
pwrmode.awake_bcn_itvl = ppsc->reg_max_lps_awakeintvl;
pwrmode.smart_ps = 1;
pwrmode.bcn_pass_period = 10;
/* Set beacon pass count */
if (pwrmode.mode == FW_PS_MIN_MODE)
max_wakeup_period = mac->vif->bss_conf.beacon_int;
else if (pwrmode.mode == FW_PS_MAX_MODE)
max_wakeup_period = mac->vif->bss_conf.beacon_int *
mac->vif->bss_conf.dtim_period;
if (max_wakeup_period >= 500)
pwrmode.bcn_pass_cnt = 1;
else if ((max_wakeup_period >= 300) && (max_wakeup_period < 500))
pwrmode.bcn_pass_cnt = 2;
else if ((max_wakeup_period >= 200) && (max_wakeup_period < 300))
pwrmode.bcn_pass_cnt = 3;
else if ((max_wakeup_period >= 20) && (max_wakeup_period < 200))
pwrmode.bcn_pass_cnt = 5;
else
pwrmode.bcn_pass_cnt = 1;
_rtl92s_firmware_set_h2c_cmd(hw, FW_H2C_SETPWRMODE, (u8 *)&pwrmode);
}
void rtl92s_set_fw_joinbss_report_cmd(struct ieee80211_hw *hw,
u8 mstatus, u8 ps_qosinfo)
{
struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
struct h2c_joinbss_rpt_parm joinbss_rpt;
joinbss_rpt.opmode = mstatus;
joinbss_rpt.ps_qos_info = ps_qosinfo;
joinbss_rpt.bssid[0] = mac->bssid[0];
joinbss_rpt.bssid[1] = mac->bssid[1];
joinbss_rpt.bssid[2] = mac->bssid[2];
joinbss_rpt.bssid[3] = mac->bssid[3];
joinbss_rpt.bssid[4] = mac->bssid[4];
joinbss_rpt.bssid[5] = mac->bssid[5];
SET_BITS_TO_LE_2BYTE((u8 *)(&joinbss_rpt) + 8, 0, 16,
mac->vif->bss_conf.beacon_int);
SET_BITS_TO_LE_2BYTE((u8 *)(&joinbss_rpt) + 10, 0, 16, mac->assoc_id);
_rtl92s_firmware_set_h2c_cmd(hw, FW_H2C_JOINBSSRPT, (u8 *)&joinbss_rpt);
}
|
309f857ff90c68d2a09bdf52eb8db78a92a655e8
|
010279e2ba272d09e9d2c4e903722e5faba2cf7a
|
/contrib/python/matplotlib/py3/src/checkdep_freetype2.c
|
8d9d8ca24a0716258c1ac764d3c00f088cd925d7
|
[
"CC0-1.0",
"BSD-3-Clause",
"MIT",
"Bitstream-Charter",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-bakoma-fonts-1995",
"LicenseRef-scancode-unknown-license-reference",
"OFL-1.1",
"Apache-2.0"
] |
permissive
|
catboost/catboost
|
854c1a1f439a96f1ae6b48e16644be20aa04dba2
|
f5042e35b945aded77b23470ead62d7eacefde92
|
refs/heads/master
| 2023-09-01T12:14:14.174108
| 2023-09-01T10:01:01
| 2023-09-01T10:22:12
| 97,556,265
| 8,012
| 1,425
|
Apache-2.0
| 2023-09-11T03:32:32
| 2017-07-18T05:29:04
|
Python
|
UTF-8
|
C
| false
| false
| 664
|
c
|
checkdep_freetype2.c
|
#ifdef __has_include
#if !__has_include(<ft2build.h>)
#error "FreeType version 2.3 or higher is required. \
You may unset the system_freetype entry in mplsetup.cfg to let Matplotlib download it."
#endif
#endif
#include <ft2build.h>
#include FT_FREETYPE_H
#define XSTR(x) STR(x)
#define STR(x) #x
#pragma message("Compiling with FreeType version " \
XSTR(FREETYPE_MAJOR) "." XSTR(FREETYPE_MINOR) "." XSTR(FREETYPE_PATCH) ".")
#if FREETYPE_MAJOR << 16 + FREETYPE_MINOR << 8 + FREETYPE_PATCH < 0x020300
#error "FreeType version 2.3 or higher is required. \
You may unset the system_freetype entry in mplsetup.cfg to let Matplotlib download it."
#endif
|
d7f153208ff4a7d1bb649ba4817d6e8c432f1705
|
331640994b1b6f66c1639278571ddbdc6c8c0751
|
/src/nxt_http_route.c
|
4a64d5c1532a3c2be2aff8d73da0645635927ada
|
[
"Apache-2.0"
] |
permissive
|
nginx/unit
|
eabcd067eaa60f4bdcf0cfaffe7d9932add2c66a
|
9b22b6957bc87b3df002d0bc691fdae6a20abdac
|
refs/heads/master
| 2023-09-04T02:02:13.581700
| 2023-08-30T16:07:24
| 2023-08-30T16:07:24
| 102,627,638
| 4,649
| 452
|
Apache-2.0
| 2023-09-12T01:28:22
| 2017-09-06T15:45:30
|
C
|
UTF-8
|
C
| false
| false
| 56,813
|
c
|
nxt_http_route.c
|
/*
* Copyright (C) Igor Sysoev
* Copyright (C) NGINX, Inc.
*/
#include <nxt_router.h>
#include <nxt_http.h>
#include <nxt_sockaddr.h>
#include <nxt_http_route_addr.h>
#include <nxt_regex.h>
typedef enum {
NXT_HTTP_ROUTE_TABLE = 0,
NXT_HTTP_ROUTE_STRING,
NXT_HTTP_ROUTE_STRING_PTR,
NXT_HTTP_ROUTE_HEADER,
NXT_HTTP_ROUTE_ARGUMENT,
NXT_HTTP_ROUTE_COOKIE,
NXT_HTTP_ROUTE_SCHEME,
NXT_HTTP_ROUTE_QUERY,
NXT_HTTP_ROUTE_SOURCE,
NXT_HTTP_ROUTE_DESTINATION,
} nxt_http_route_object_t;
typedef enum {
NXT_HTTP_ROUTE_PATTERN_EXACT = 0,
NXT_HTTP_ROUTE_PATTERN_BEGIN,
NXT_HTTP_ROUTE_PATTERN_END,
NXT_HTTP_ROUTE_PATTERN_SUBSTRING,
} nxt_http_route_pattern_type_t;
typedef enum {
NXT_HTTP_ROUTE_PATTERN_NOCASE = 0,
NXT_HTTP_ROUTE_PATTERN_LOWCASE,
NXT_HTTP_ROUTE_PATTERN_UPCASE,
} nxt_http_route_pattern_case_t;
typedef struct {
nxt_conf_value_t *host;
nxt_conf_value_t *uri;
nxt_conf_value_t *method;
nxt_conf_value_t *headers;
nxt_conf_value_t *arguments;
nxt_conf_value_t *cookies;
nxt_conf_value_t *scheme;
nxt_conf_value_t *query;
nxt_conf_value_t *source;
nxt_conf_value_t *destination;
} nxt_http_route_match_conf_t;
typedef struct {
u_char *start;
uint32_t length;
nxt_http_route_pattern_type_t type:8;
} nxt_http_route_pattern_slice_t;
typedef struct {
union {
nxt_array_t *pattern_slices;
#if (NXT_HAVE_REGEX)
nxt_regex_t *regex;
#endif
} u;
uint32_t min_length;
uint8_t case_sensitive; /* 1 bit */
uint8_t negative; /* 1 bit */
uint8_t any; /* 1 bit */
#if (NXT_HAVE_REGEX)
uint8_t regex; /* 1 bit */
#endif
} nxt_http_route_pattern_t;
typedef struct {
uint16_t hash;
uint16_t name_length;
uint32_t value_length;
u_char *name;
u_char *value;
} nxt_http_cookie_t;
struct nxt_http_route_rule_s {
/* The object must be the first field. */
nxt_http_route_object_t object:8;
uint32_t items;
union {
uintptr_t offset;
struct {
u_char *start;
uint16_t hash;
uint16_t length;
} name;
} u;
nxt_http_route_pattern_t pattern[0];
};
typedef struct {
uint32_t items;
nxt_http_route_rule_t *rule[0];
} nxt_http_route_ruleset_t;
typedef struct {
/* The object must be the first field. */
nxt_http_route_object_t object:8;
uint32_t items;
nxt_http_route_ruleset_t *ruleset[0];
} nxt_http_route_table_t;
struct nxt_http_route_addr_rule_s {
/* The object must be the first field. */
nxt_http_route_object_t object:8;
uint32_t items;
nxt_http_route_addr_pattern_t addr_pattern[0];
};
typedef union {
nxt_http_route_rule_t *rule;
nxt_http_route_table_t *table;
nxt_http_route_addr_rule_t *addr_rule;
} nxt_http_route_test_t;
typedef struct {
uint32_t items;
nxt_http_action_t action;
nxt_http_route_test_t test[0];
} nxt_http_route_match_t;
struct nxt_http_route_s {
nxt_str_t name;
uint32_t items;
nxt_http_route_match_t *match[0];
};
struct nxt_http_routes_s {
uint32_t items;
nxt_http_route_t *route[0];
};
static nxt_http_route_t *nxt_http_route_create(nxt_task_t *task,
nxt_router_temp_conf_t *tmcf, nxt_conf_value_t *cv);
static nxt_http_route_match_t *nxt_http_route_match_create(nxt_task_t *task,
nxt_router_temp_conf_t *tmcf, nxt_conf_value_t *cv);
static nxt_http_route_table_t *nxt_http_route_table_create(nxt_task_t *task,
nxt_mp_t *mp, nxt_conf_value_t *table_cv, nxt_http_route_object_t object,
nxt_bool_t case_sensitive, nxt_http_uri_encoding_t encoding);
static nxt_http_route_ruleset_t *nxt_http_route_ruleset_create(nxt_task_t *task,
nxt_mp_t *mp, nxt_conf_value_t *ruleset_cv, nxt_http_route_object_t object,
nxt_bool_t case_sensitive, nxt_http_uri_encoding_t encoding);
static nxt_http_route_rule_t *nxt_http_route_rule_name_create(nxt_task_t *task,
nxt_mp_t *mp, nxt_conf_value_t *rule_cv, nxt_str_t *name,
nxt_bool_t case_sensitive, nxt_http_uri_encoding_t encoding);
static nxt_http_route_rule_t *nxt_http_route_rule_create(nxt_task_t *task,
nxt_mp_t *mp, nxt_conf_value_t *cv, nxt_bool_t case_sensitive,
nxt_http_route_pattern_case_t pattern_case,
nxt_http_uri_encoding_t encoding);
static int nxt_http_pattern_compare(const void *one, const void *two);
static int nxt_http_addr_pattern_compare(const void *one, const void *two);
static nxt_int_t nxt_http_route_pattern_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *cv, nxt_http_route_pattern_t *pattern,
nxt_http_route_pattern_case_t pattern_case,
nxt_http_uri_encoding_t encoding);
static nxt_int_t nxt_http_route_decode_str(nxt_str_t *str,
nxt_http_uri_encoding_t encoding);
static nxt_int_t nxt_http_route_pattern_slice(nxt_array_t *slices,
nxt_str_t *test,
nxt_http_route_pattern_type_t type,
nxt_http_uri_encoding_t encoding,
nxt_http_route_pattern_case_t pattern_case);
static nxt_int_t nxt_http_route_resolve(nxt_task_t *task,
nxt_router_temp_conf_t *tmcf, nxt_http_route_t *route);
static nxt_int_t nxt_http_action_resolve(nxt_task_t *task,
nxt_router_temp_conf_t *tmcf, nxt_http_action_t *action);
static nxt_http_action_t *nxt_http_pass_var(nxt_task_t *task,
nxt_http_request_t *r, nxt_http_action_t *action);
static void nxt_http_pass_query_ready(nxt_task_t *task, void *obj, void *data);
static void nxt_http_pass_query_error(nxt_task_t *task, void *obj, void *data);
static nxt_int_t nxt_http_pass_find(nxt_mp_t *mp, nxt_router_conf_t *rtcf,
nxt_str_t *pass, nxt_http_action_t *action);
static nxt_int_t nxt_http_route_find(nxt_http_routes_t *routes, nxt_str_t *name,
nxt_http_action_t *action);
static nxt_http_action_t *nxt_http_route_handler(nxt_task_t *task,
nxt_http_request_t *r, nxt_http_action_t *start);
static nxt_http_action_t *nxt_http_route_match(nxt_task_t *task,
nxt_http_request_t *r, nxt_http_route_match_t *match);
static nxt_int_t nxt_http_route_table(nxt_http_request_t *r,
nxt_http_route_table_t *table);
static nxt_int_t nxt_http_route_ruleset(nxt_http_request_t *r,
nxt_http_route_ruleset_t *ruleset);
static nxt_int_t nxt_http_route_rule(nxt_http_request_t *r,
nxt_http_route_rule_t *rule);
static nxt_int_t nxt_http_route_header(nxt_http_request_t *r,
nxt_http_route_rule_t *rule);
static nxt_int_t nxt_http_route_arguments(nxt_http_request_t *r,
nxt_http_route_rule_t *rule);
static nxt_int_t nxt_http_route_test_argument(nxt_http_request_t *r,
nxt_http_route_rule_t *rule, nxt_array_t *array);
static nxt_int_t nxt_http_route_scheme(nxt_http_request_t *r,
nxt_http_route_rule_t *rule);
static nxt_int_t nxt_http_route_query(nxt_http_request_t *r,
nxt_http_route_rule_t *rule);
static nxt_int_t nxt_http_route_cookies(nxt_http_request_t *r,
nxt_http_route_rule_t *rule);
static nxt_int_t nxt_http_route_test_cookie(nxt_http_request_t *r,
nxt_http_route_rule_t *rule, nxt_array_t *array);
static nxt_int_t nxt_http_route_pattern(nxt_http_request_t *r,
nxt_http_route_pattern_t *pattern, u_char *start, size_t length);
static nxt_int_t nxt_http_route_memcmp(u_char *start, u_char *test,
size_t length, nxt_bool_t case_sensitive);
nxt_http_routes_t *
nxt_http_routes_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_conf_value_t *routes_conf)
{
size_t size;
uint32_t i, n, next;
nxt_mp_t *mp;
nxt_str_t name, *string;
nxt_bool_t object;
nxt_conf_value_t *route_conf;
nxt_http_route_t *route;
nxt_http_routes_t *routes;
object = (nxt_conf_type(routes_conf) == NXT_CONF_OBJECT);
n = object ? nxt_conf_object_members_count(routes_conf) : 1;
size = sizeof(nxt_http_routes_t) + n * sizeof(nxt_http_route_t *);
mp = tmcf->router_conf->mem_pool;
routes = nxt_mp_alloc(mp, size);
if (nxt_slow_path(routes == NULL)) {
return NULL;
}
routes->items = n;
if (object) {
next = 0;
for (i = 0; i < n; i++) {
route_conf = nxt_conf_next_object_member(routes_conf, &name, &next);
route = nxt_http_route_create(task, tmcf, route_conf);
if (nxt_slow_path(route == NULL)) {
return NULL;
}
routes->route[i] = route;
string = nxt_str_dup(mp, &route->name, &name);
if (nxt_slow_path(string == NULL)) {
return NULL;
}
}
} else {
route = nxt_http_route_create(task, tmcf, routes_conf);
if (nxt_slow_path(route == NULL)) {
return NULL;
}
routes->route[0] = route;
route->name.length = 0;
route->name.start = NULL;
}
return routes;
}
static nxt_conf_map_t nxt_http_route_match_conf[] = {
{
nxt_string("scheme"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, scheme)
},
{
nxt_string("host"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, host),
},
{
nxt_string("uri"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, uri),
},
{
nxt_string("method"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, method),
},
{
nxt_string("headers"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, headers),
},
{
nxt_string("arguments"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, arguments),
},
{
nxt_string("cookies"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, cookies),
},
{
nxt_string("query"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, query),
},
{
nxt_string("source"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, source),
},
{
nxt_string("destination"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_route_match_conf_t, destination),
},
};
static nxt_http_route_t *
nxt_http_route_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_conf_value_t *cv)
{
size_t size;
uint32_t i, n;
nxt_conf_value_t *value;
nxt_http_route_t *route;
nxt_http_route_match_t *match, **m;
n = nxt_conf_array_elements_count(cv);
size = sizeof(nxt_http_route_t) + n * sizeof(nxt_http_route_match_t *);
route = nxt_mp_alloc(tmcf->router_conf->mem_pool, size);
if (nxt_slow_path(route == NULL)) {
return NULL;
}
route->items = n;
m = &route->match[0];
for (i = 0; i < n; i++) {
value = nxt_conf_get_array_element(cv, i);
match = nxt_http_route_match_create(task, tmcf, value);
if (match == NULL) {
return NULL;
}
*m++ = match;
}
return route;
}
static nxt_http_route_match_t *
nxt_http_route_match_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_conf_value_t *cv)
{
size_t size;
uint32_t n;
nxt_mp_t *mp;
nxt_int_t ret;
nxt_conf_value_t *match_conf, *action_conf;
nxt_http_route_test_t *test;
nxt_http_route_rule_t *rule;
nxt_http_route_table_t *table;
nxt_http_route_match_t *match;
nxt_http_route_addr_rule_t *addr_rule;
nxt_http_route_match_conf_t mtcf;
static nxt_str_t match_path = nxt_string("/match");
static nxt_str_t action_path = nxt_string("/action");
match_conf = nxt_conf_get_path(cv, &match_path);
n = (match_conf != NULL) ? nxt_conf_object_members_count(match_conf) : 0;
size = sizeof(nxt_http_route_match_t) + n * sizeof(nxt_http_route_test_t *);
mp = tmcf->router_conf->mem_pool;
match = nxt_mp_alloc(mp, size);
if (nxt_slow_path(match == NULL)) {
return NULL;
}
match->items = n;
action_conf = nxt_conf_get_path(cv, &action_path);
if (nxt_slow_path(action_conf == NULL)) {
return NULL;
}
ret = nxt_http_action_init(task, tmcf, action_conf, &match->action);
if (nxt_slow_path(ret != NXT_OK)) {
return NULL;
}
if (n == 0) {
return match;
}
nxt_memzero(&mtcf, sizeof(mtcf));
ret = nxt_conf_map_object(tmcf->mem_pool,
match_conf, nxt_http_route_match_conf,
nxt_nitems(nxt_http_route_match_conf), &mtcf);
if (ret != NXT_OK) {
return NULL;
}
test = &match->test[0];
if (mtcf.scheme != NULL) {
rule = nxt_http_route_rule_create(task, mp, mtcf.scheme, 1,
NXT_HTTP_ROUTE_PATTERN_NOCASE,
NXT_HTTP_URI_ENCODING_NONE);
if (rule == NULL) {
return NULL;
}
rule->object = NXT_HTTP_ROUTE_SCHEME;
test->rule = rule;
test++;
}
if (mtcf.host != NULL) {
rule = nxt_http_route_rule_create(task, mp, mtcf.host, 1,
NXT_HTTP_ROUTE_PATTERN_LOWCASE,
NXT_HTTP_URI_ENCODING_NONE);
if (rule == NULL) {
return NULL;
}
rule->u.offset = offsetof(nxt_http_request_t, host);
rule->object = NXT_HTTP_ROUTE_STRING;
test->rule = rule;
test++;
}
if (mtcf.uri != NULL) {
rule = nxt_http_route_rule_create(task, mp, mtcf.uri, 1,
NXT_HTTP_ROUTE_PATTERN_NOCASE,
NXT_HTTP_URI_ENCODING);
if (rule == NULL) {
return NULL;
}
rule->u.offset = offsetof(nxt_http_request_t, path);
rule->object = NXT_HTTP_ROUTE_STRING_PTR;
test->rule = rule;
test++;
}
if (mtcf.method != NULL) {
rule = nxt_http_route_rule_create(task, mp, mtcf.method, 1,
NXT_HTTP_ROUTE_PATTERN_UPCASE,
NXT_HTTP_URI_ENCODING_NONE);
if (rule == NULL) {
return NULL;
}
rule->u.offset = offsetof(nxt_http_request_t, method);
rule->object = NXT_HTTP_ROUTE_STRING_PTR;
test->rule = rule;
test++;
}
if (mtcf.headers != NULL) {
table = nxt_http_route_table_create(task, mp, mtcf.headers,
NXT_HTTP_ROUTE_HEADER, 0,
NXT_HTTP_URI_ENCODING_NONE);
if (table == NULL) {
return NULL;
}
test->table = table;
test++;
}
if (mtcf.arguments != NULL) {
table = nxt_http_route_table_create(task, mp, mtcf.arguments,
NXT_HTTP_ROUTE_ARGUMENT, 1,
NXT_HTTP_URI_ENCODING_PLUS);
if (table == NULL) {
return NULL;
}
test->table = table;
test++;
}
if (mtcf.cookies != NULL) {
table = nxt_http_route_table_create(task, mp, mtcf.cookies,
NXT_HTTP_ROUTE_COOKIE, 1,
NXT_HTTP_URI_ENCODING_NONE);
if (table == NULL) {
return NULL;
}
test->table = table;
test++;
}
if (mtcf.query != NULL) {
rule = nxt_http_route_rule_create(task, mp, mtcf.query, 1,
NXT_HTTP_ROUTE_PATTERN_NOCASE,
NXT_HTTP_URI_ENCODING_PLUS);
if (rule == NULL) {
return NULL;
}
rule->object = NXT_HTTP_ROUTE_QUERY;
test->rule = rule;
test++;
}
if (mtcf.source != NULL) {
addr_rule = nxt_http_route_addr_rule_create(task, mp, mtcf.source);
if (addr_rule == NULL) {
return NULL;
}
addr_rule->object = NXT_HTTP_ROUTE_SOURCE;
test->addr_rule = addr_rule;
test++;
}
if (mtcf.destination != NULL) {
addr_rule = nxt_http_route_addr_rule_create(task, mp, mtcf.destination);
if (addr_rule == NULL) {
return NULL;
}
addr_rule->object = NXT_HTTP_ROUTE_DESTINATION;
test->addr_rule = addr_rule;
test++;
}
return match;
}
static nxt_conf_map_t nxt_http_route_action_conf[] = {
{
nxt_string("rewrite"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, rewrite)
},
{
nxt_string("response_headers"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, set_headers)
},
{
nxt_string("pass"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, pass)
},
{
nxt_string("return"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, ret)
},
{
nxt_string("location"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, location)
},
{
nxt_string("proxy"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, proxy)
},
{
nxt_string("share"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, share)
},
{
nxt_string("index"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, index)
},
{
nxt_string("chroot"),
NXT_CONF_MAP_STR,
offsetof(nxt_http_action_conf_t, chroot)
},
{
nxt_string("follow_symlinks"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, follow_symlinks)
},
{
nxt_string("traverse_mounts"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, traverse_mounts)
},
{
nxt_string("types"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, types)
},
{
nxt_string("fallback"),
NXT_CONF_MAP_PTR,
offsetof(nxt_http_action_conf_t, fallback)
},
};
nxt_int_t
nxt_http_action_init(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_conf_value_t *cv, nxt_http_action_t *action)
{
nxt_mp_t *mp;
nxt_int_t ret;
nxt_str_t pass;
nxt_router_conf_t *rtcf;
nxt_http_action_conf_t acf;
nxt_memzero(&acf, sizeof(acf));
ret = nxt_conf_map_object(tmcf->mem_pool, cv, nxt_http_route_action_conf,
nxt_nitems(nxt_http_route_action_conf), &acf);
if (ret != NXT_OK) {
return ret;
}
nxt_memzero(action, sizeof(nxt_http_action_t));
rtcf = tmcf->router_conf;
mp = rtcf->mem_pool;
if (acf.rewrite != NULL) {
ret = nxt_http_rewrite_init(rtcf, action, &acf);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
}
if (acf.set_headers != NULL) {
ret = nxt_http_set_headers_init(rtcf, action, &acf);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
}
if (acf.ret != NULL) {
return nxt_http_return_init(rtcf, action, &acf);
}
if (acf.share != NULL) {
return nxt_http_static_init(task, tmcf, action, &acf);
}
if (acf.proxy != NULL) {
return nxt_http_proxy_init(mp, action, &acf);
}
nxt_conf_get_string(acf.pass, &pass);
action->u.tstr = nxt_tstr_compile(rtcf->tstr_state, &pass, 0);
if (nxt_slow_path(action->u.tstr == NULL)) {
return NXT_ERROR;
}
return NXT_OK;
}
static nxt_http_route_table_t *
nxt_http_route_table_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *table_cv, nxt_http_route_object_t object,
nxt_bool_t case_sensitive, nxt_http_uri_encoding_t encoding)
{
size_t size;
uint32_t i, n;
nxt_conf_value_t *ruleset_cv;
nxt_http_route_table_t *table;
nxt_http_route_ruleset_t *ruleset;
n = nxt_conf_array_elements_count_or_1(table_cv);
size = sizeof(nxt_http_route_table_t)
+ n * sizeof(nxt_http_route_ruleset_t *);
table = nxt_mp_alloc(mp, size);
if (nxt_slow_path(table == NULL)) {
return NULL;
}
table->items = n;
table->object = NXT_HTTP_ROUTE_TABLE;
for (i = 0; i < n; i++) {
ruleset_cv = nxt_conf_get_array_element_or_itself(table_cv, i);
ruleset = nxt_http_route_ruleset_create(task, mp, ruleset_cv, object,
case_sensitive, encoding);
if (nxt_slow_path(ruleset == NULL)) {
return NULL;
}
table->ruleset[i] = ruleset;
}
return table;
}
static nxt_http_route_ruleset_t *
nxt_http_route_ruleset_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *ruleset_cv, nxt_http_route_object_t object,
nxt_bool_t case_sensitive, nxt_http_uri_encoding_t encoding)
{
size_t size;
uint32_t i, n, next;
nxt_str_t name;
nxt_conf_value_t *rule_cv;
nxt_http_route_rule_t *rule;
nxt_http_route_ruleset_t *ruleset;
n = nxt_conf_object_members_count(ruleset_cv);
size = sizeof(nxt_http_route_ruleset_t)
+ n * sizeof(nxt_http_route_rule_t *);
ruleset = nxt_mp_alloc(mp, size);
if (nxt_slow_path(ruleset == NULL)) {
return NULL;
}
ruleset->items = n;
next = 0;
/*
* A workaround for GCC 10 with -flto -O2 flags that warns about "name"
* may be uninitialized in nxt_http_route_rule_name_create().
*/
nxt_str_null(&name);
for (i = 0; i < n; i++) {
rule_cv = nxt_conf_next_object_member(ruleset_cv, &name, &next);
rule = nxt_http_route_rule_name_create(task, mp, rule_cv, &name,
case_sensitive, encoding);
if (nxt_slow_path(rule == NULL)) {
return NULL;
}
rule->object = object;
ruleset->rule[i] = rule;
}
return ruleset;
}
static nxt_http_route_rule_t *
nxt_http_route_rule_name_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *rule_cv, nxt_str_t *name, nxt_bool_t case_sensitive,
nxt_http_uri_encoding_t encoding)
{
int64_t hash;
nxt_http_route_rule_t *rule;
rule = nxt_http_route_rule_create(task, mp, rule_cv, case_sensitive,
NXT_HTTP_ROUTE_PATTERN_NOCASE,
encoding);
if (nxt_slow_path(rule == NULL)) {
return NULL;
}
hash = nxt_http_field_hash(mp, name, case_sensitive, encoding);
if (nxt_slow_path(hash == -1)) {
return NULL;
}
rule->u.name.hash = hash;
rule->u.name.start = name->start;
rule->u.name.length = name->length;
return rule;
}
static nxt_http_route_rule_t *
nxt_http_route_rule_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *cv, nxt_bool_t case_sensitive,
nxt_http_route_pattern_case_t pattern_case,
nxt_http_uri_encoding_t encoding)
{
size_t size;
uint32_t i, n;
nxt_int_t ret;
nxt_conf_value_t *value;
nxt_http_route_rule_t *rule;
nxt_http_route_pattern_t *pattern;
n = nxt_conf_array_elements_count_or_1(cv);
size = sizeof(nxt_http_route_rule_t) + n * sizeof(nxt_http_route_pattern_t);
rule = nxt_mp_alloc(mp, size);
if (nxt_slow_path(rule == NULL)) {
return NULL;
}
rule->items = n;
pattern = &rule->pattern[0];
nxt_conf_array_qsort(cv, nxt_http_pattern_compare);
for (i = 0; i < n; i++) {
pattern[i].case_sensitive = case_sensitive;
value = nxt_conf_get_array_element_or_itself(cv, i);
ret = nxt_http_route_pattern_create(task, mp, value, &pattern[i],
pattern_case, encoding);
if (nxt_slow_path(ret != NXT_OK)) {
return NULL;
}
}
return rule;
}
nxt_http_route_addr_rule_t *
nxt_http_route_addr_rule_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *cv)
{
size_t size;
uint32_t i, n;
nxt_conf_value_t *value;
nxt_http_route_addr_rule_t *addr_rule;
nxt_http_route_addr_pattern_t *pattern;
n = nxt_conf_array_elements_count_or_1(cv);
size = sizeof(nxt_http_route_addr_rule_t)
+ n * sizeof(nxt_http_route_addr_pattern_t);
addr_rule = nxt_mp_alloc(mp, size);
if (nxt_slow_path(addr_rule == NULL)) {
return NULL;
}
addr_rule->items = n;
for (i = 0; i < n; i++) {
pattern = &addr_rule->addr_pattern[i];
value = nxt_conf_get_array_element_or_itself(cv, i);
if (nxt_http_route_addr_pattern_parse(mp, pattern, value) != NXT_OK) {
return NULL;
}
}
if (n > 1) {
nxt_qsort(addr_rule->addr_pattern, addr_rule->items,
sizeof(nxt_http_route_addr_pattern_t),
nxt_http_addr_pattern_compare);
}
return addr_rule;
}
nxt_http_route_rule_t *
nxt_http_route_types_rule_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *types)
{
return nxt_http_route_rule_create(task, mp, types, 0,
NXT_HTTP_ROUTE_PATTERN_LOWCASE,
NXT_HTTP_URI_ENCODING_NONE);
}
static int
nxt_http_pattern_compare(const void *one, const void *two)
{
nxt_str_t test;
nxt_bool_t negative1, negative2;
nxt_conf_value_t *value;
value = (nxt_conf_value_t *) one;
nxt_conf_get_string(value, &test);
negative1 = (test.length != 0 && test.start[0] == '!');
value = (nxt_conf_value_t *) two;
nxt_conf_get_string(value, &test);
negative2 = (test.length != 0 && test.start[0] == '!');
return (negative2 - negative1);
}
static int
nxt_http_addr_pattern_compare(const void *one, const void *two)
{
const nxt_http_route_addr_pattern_t *p1, *p2;
p1 = one;
p2 = two;
return (p2->base.negative - p1->base.negative);
}
static nxt_int_t
nxt_http_route_pattern_create(nxt_task_t *task, nxt_mp_t *mp,
nxt_conf_value_t *cv, nxt_http_route_pattern_t *pattern,
nxt_http_route_pattern_case_t pattern_case,
nxt_http_uri_encoding_t encoding)
{
u_char c, *p, *end;
nxt_str_t test, tmp;
nxt_int_t ret;
nxt_array_t *slices;
#if (NXT_HAVE_REGEX)
nxt_regex_t *re;
nxt_regex_err_t err;
#endif
nxt_http_route_pattern_type_t type;
nxt_http_route_pattern_slice_t *slice;
type = NXT_HTTP_ROUTE_PATTERN_EXACT;
nxt_conf_get_string(cv, &test);
pattern->u.pattern_slices = NULL;
pattern->negative = 0;
pattern->any = 1;
pattern->min_length = 0;
#if (NXT_HAVE_REGEX)
pattern->regex = 0;
#endif
if (test.length != 0 && test.start[0] == '!') {
test.start++;
test.length--;
pattern->negative = 1;
pattern->any = 0;
}
if (test.length > 0 && test.start[0] == '~') {
#if (NXT_HAVE_REGEX)
test.start++;
test.length--;
re = nxt_regex_compile(mp, &test, &err);
if (nxt_slow_path(re == NULL)) {
if (err.offset < test.length) {
nxt_alert(task, "nxt_regex_compile(%V) failed: %s at offset %d",
&test, err.msg, (int) err.offset);
return NXT_ERROR;
}
nxt_alert(task, "nxt_regex_compile(%V) failed %s", &test, err.msg);
return NXT_ERROR;
}
pattern->u.regex = re;
pattern->regex = 1;
return NXT_OK;
#else
return NXT_ERROR;
#endif
}
slices = nxt_array_create(mp, 1, sizeof(nxt_http_route_pattern_slice_t));
if (nxt_slow_path(slices == NULL)) {
return NXT_ERROR;
}
pattern->u.pattern_slices = slices;
if (test.length == 0) {
slice = nxt_array_add(slices);
if (nxt_slow_path(slice == NULL)) {
return NXT_ERROR;
}
slice->type = NXT_HTTP_ROUTE_PATTERN_EXACT;
slice->start = NULL;
slice->length = 0;
return NXT_OK;
}
if (test.start[0] == '*') {
/* 'type' is no longer 'EXACT', assume 'END'. */
type = NXT_HTTP_ROUTE_PATTERN_END;
test.start++;
test.length--;
}
if (type == NXT_HTTP_ROUTE_PATTERN_EXACT) {
tmp.start = test.start;
p = memchr(test.start, '*', test.length);
if (p == NULL) {
/* No '*' found - EXACT pattern. */
tmp.length = test.length;
type = NXT_HTTP_ROUTE_PATTERN_EXACT;
test.start += test.length;
test.length = 0;
} else {
/* '*' found - BEGIN pattern. */
tmp.length = p - test.start;
type = NXT_HTTP_ROUTE_PATTERN_BEGIN;
test.start = p + 1;
test.length -= tmp.length + 1;
}
ret = nxt_http_route_pattern_slice(slices, &tmp, type, encoding,
pattern_case);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
pattern->min_length += tmp.length;
}
end = test.start + test.length;
if (test.length != 0 && end[-1] != '*') {
p = end - 1;
while (p != test.start) {
c = *p--;
if (c == '*') {
p += 2;
break;
}
}
tmp.start = p;
tmp.length = end - p;
test.length -= tmp.length;
end = p;
ret = nxt_http_route_pattern_slice(slices, &tmp,
NXT_HTTP_ROUTE_PATTERN_END,
encoding, pattern_case);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
pattern->min_length += tmp.length;
}
tmp.start = test.start;
tmp.length = 0;
p = tmp.start;
while (p != end) {
c = *p++;
if (c != '*') {
tmp.length++;
continue;
}
if (tmp.length == 0) {
tmp.start = p;
continue;
}
ret = nxt_http_route_pattern_slice(slices, &tmp,
NXT_HTTP_ROUTE_PATTERN_SUBSTRING,
encoding, pattern_case);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
pattern->min_length += tmp.length;
tmp.start = p;
tmp.length = 0;
}
if (tmp.length != 0) {
ret = nxt_http_route_pattern_slice(slices, &tmp,
NXT_HTTP_ROUTE_PATTERN_SUBSTRING,
encoding, pattern_case);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
pattern->min_length += tmp.length;
}
return NXT_OK;
}
static nxt_int_t
nxt_http_route_decode_str(nxt_str_t *str, nxt_http_uri_encoding_t encoding)
{
u_char *start, *end;
switch (encoding) {
case NXT_HTTP_URI_ENCODING_NONE:
break;
case NXT_HTTP_URI_ENCODING:
start = str->start;
end = nxt_decode_uri(start, start, str->length);
if (nxt_slow_path(end == NULL)) {
return NXT_ERROR;
}
str->length = end - start;
break;
case NXT_HTTP_URI_ENCODING_PLUS:
start = str->start;
end = nxt_decode_uri_plus(start, start, str->length);
if (nxt_slow_path(end == NULL)) {
return NXT_ERROR;
}
str->length = end - start;
break;
default:
nxt_unreachable();
}
return NXT_OK;
}
static nxt_int_t
nxt_http_route_pattern_slice(nxt_array_t *slices,
nxt_str_t *test, nxt_http_route_pattern_type_t type,
nxt_http_uri_encoding_t encoding,
nxt_http_route_pattern_case_t pattern_case)
{
u_char *start;
nxt_int_t ret;
nxt_http_route_pattern_slice_t *slice;
ret = nxt_http_route_decode_str(test, encoding);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
start = nxt_mp_nget(slices->mem_pool, test->length);
if (nxt_slow_path(start == NULL)) {
return NXT_ERROR;
}
switch (pattern_case) {
case NXT_HTTP_ROUTE_PATTERN_UPCASE:
nxt_memcpy_upcase(start, test->start, test->length);
break;
case NXT_HTTP_ROUTE_PATTERN_LOWCASE:
nxt_memcpy_lowcase(start, test->start, test->length);
break;
case NXT_HTTP_ROUTE_PATTERN_NOCASE:
nxt_memcpy(start, test->start, test->length);
break;
}
slice = nxt_array_add(slices);
if (nxt_slow_path(slice == NULL)) {
return NXT_ERROR;
}
slice->type = type;
slice->start = start;
slice->length = test->length;
return NXT_OK;
}
nxt_int_t
nxt_http_routes_resolve(nxt_task_t *task, nxt_router_temp_conf_t *tmcf)
{
nxt_int_t ret;
nxt_http_route_t **route, **end;
nxt_http_routes_t *routes;
routes = tmcf->router_conf->routes;
if (routes != NULL) {
route = &routes->route[0];
end = route + routes->items;
while (route < end) {
ret = nxt_http_route_resolve(task, tmcf, *route);
if (nxt_slow_path(ret != NXT_OK)) {
return NXT_ERROR;
}
route++;
}
}
return NXT_OK;
}
static nxt_int_t
nxt_http_route_resolve(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_http_route_t *route)
{
nxt_int_t ret;
nxt_http_route_match_t **match, **end;
match = &route->match[0];
end = match + route->items;
while (match < end) {
ret = nxt_http_action_resolve(task, tmcf, &(*match)->action);
if (nxt_slow_path(ret != NXT_OK)) {
return NXT_ERROR;
}
match++;
}
return NXT_OK;
}
static nxt_int_t
nxt_http_action_resolve(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_http_action_t *action)
{
nxt_int_t ret;
nxt_str_t pass;
if (action->handler != NULL) {
if (action->fallback != NULL) {
return nxt_http_action_resolve(task, tmcf, action->fallback);
}
return NXT_OK;
}
if (nxt_tstr_is_const(action->u.tstr)) {
nxt_tstr_str(action->u.tstr, &pass);
ret = nxt_http_pass_find(tmcf->mem_pool, tmcf->router_conf, &pass,
action);
if (nxt_slow_path(ret != NXT_OK)) {
return NXT_ERROR;
}
} else {
action->handler = nxt_http_pass_var;
}
return NXT_OK;
}
static nxt_http_action_t *
nxt_http_pass_var(nxt_task_t *task, nxt_http_request_t *r,
nxt_http_action_t *action)
{
nxt_int_t ret;
nxt_str_t str;
nxt_tstr_t *tstr;
nxt_router_conf_t *rtcf;
tstr = action->u.tstr;
nxt_tstr_str(tstr, &str);
nxt_debug(task, "http pass: \"%V\"", &str);
rtcf = r->conf->socket_conf->router_conf;
ret = nxt_tstr_query_init(&r->tstr_query, rtcf->tstr_state, &r->tstr_cache,
r, r->mem_pool);
if (nxt_slow_path(ret != NXT_OK)) {
goto fail;
}
action = nxt_mp_zget(r->mem_pool,
sizeof(nxt_http_action_t) + sizeof(nxt_str_t));
if (nxt_slow_path(action == NULL)) {
goto fail;
}
action->u.pass = nxt_pointer_to(action, sizeof(nxt_http_action_t));
nxt_tstr_query(task, r->tstr_query, tstr, action->u.pass);
nxt_tstr_query_resolve(task, r->tstr_query, action,
nxt_http_pass_query_ready,
nxt_http_pass_query_error);
return NULL;
fail:
nxt_http_request_error(task, r, NXT_HTTP_INTERNAL_SERVER_ERROR);
return NULL;
}
static void
nxt_http_pass_query_ready(nxt_task_t *task, void *obj, void *data)
{
nxt_int_t ret;
nxt_router_conf_t *rtcf;
nxt_http_action_t *action;
nxt_http_status_t status;
nxt_http_request_t *r;
r = obj;
action = data;
rtcf = r->conf->socket_conf->router_conf;
nxt_debug(task, "http pass lookup: %V", action->u.pass);
ret = nxt_http_pass_find(r->mem_pool, rtcf, action->u.pass, action);
if (ret != NXT_OK) {
status = (ret == NXT_DECLINED) ? NXT_HTTP_NOT_FOUND
: NXT_HTTP_INTERNAL_SERVER_ERROR;
nxt_http_request_error(task, r, status);
return;
}
nxt_http_request_action(task, r, action);
}
static void
nxt_http_pass_query_error(nxt_task_t *task, void *obj, void *data)
{
nxt_http_request_t *r;
r = obj;
nxt_http_request_error(task, r, NXT_HTTP_INTERNAL_SERVER_ERROR);
}
static nxt_int_t
nxt_http_pass_find(nxt_mp_t *mp, nxt_router_conf_t *rtcf, nxt_str_t *pass,
nxt_http_action_t *action)
{
nxt_int_t ret;
nxt_str_t segments[3];
ret = nxt_http_pass_segments(mp, pass, segments, 3);
if (nxt_slow_path(ret != NXT_OK)) {
return ret;
}
if (nxt_str_eq(&segments[0], "applications", 12)) {
return nxt_router_application_init(rtcf, &segments[1], &segments[2],
action);
}
if (segments[2].length == 0) {
if (nxt_str_eq(&segments[0], "upstreams", 9)) {
return nxt_upstream_find(rtcf->upstreams, &segments[1], action);
}
if (nxt_str_eq(&segments[0], "routes", 6)) {
return nxt_http_route_find(rtcf->routes, &segments[1], action);
}
}
return NXT_DECLINED;
}
nxt_int_t
nxt_http_pass_segments(nxt_mp_t *mp, nxt_str_t *pass, nxt_str_t *segments,
nxt_uint_t n)
{
u_char *p;
nxt_str_t rest;
if (nxt_slow_path(nxt_str_dup(mp, &rest, pass) == NULL)) {
return NXT_ERROR;
}
nxt_memzero(segments, n * sizeof(nxt_str_t));
do {
p = memchr(rest.start, '/', rest.length);
if (p != NULL) {
n--;
if (n == 0) {
return NXT_DECLINED;
}
segments->length = p - rest.start;
segments->start = rest.start;
rest.length -= segments->length + 1;
rest.start = p + 1;
} else {
n = 0;
*segments = rest;
}
if (segments->length == 0) {
return NXT_DECLINED;
}
p = nxt_decode_uri(segments->start, segments->start, segments->length);
if (p == NULL) {
return NXT_DECLINED;
}
segments->length = p - segments->start;
segments++;
} while (n);
return NXT_OK;
}
static nxt_int_t
nxt_http_route_find(nxt_http_routes_t *routes, nxt_str_t *name,
nxt_http_action_t *action)
{
nxt_http_route_t **route, **end;
if (routes == NULL) {
return NXT_DECLINED;
}
route = &routes->route[0];
end = route + routes->items;
while (route < end) {
if (nxt_strstr_eq(&(*route)->name, name)) {
action->u.route = *route;
action->handler = nxt_http_route_handler;
return NXT_OK;
}
route++;
}
return NXT_DECLINED;
}
nxt_http_action_t *
nxt_http_action_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
nxt_str_t *pass)
{
nxt_mp_t *mp;
nxt_int_t ret;
nxt_router_conf_t *rtcf;
nxt_http_action_t *action;
rtcf = tmcf->router_conf;
mp = rtcf->mem_pool;
action = nxt_mp_zalloc(mp, sizeof(nxt_http_action_t));
if (nxt_slow_path(action == NULL)) {
return NULL;
}
action->u.tstr = nxt_tstr_compile(rtcf->tstr_state, pass, 0);
if (nxt_slow_path(action->u.tstr == NULL)) {
return NULL;
}
action->handler = NULL;
ret = nxt_http_action_resolve(task, tmcf, action);
if (nxt_slow_path(ret != NXT_OK)) {
return NULL;
}
return action;
}
/* COMPATIBILITY: listener application. */
nxt_http_action_t *
nxt_http_pass_application(nxt_task_t *task, nxt_router_conf_t *rtcf,
nxt_str_t *name)
{
nxt_http_action_t *action;
action = nxt_mp_zalloc(rtcf->mem_pool, sizeof(nxt_http_action_t));
if (nxt_slow_path(action == NULL)) {
return NULL;
}
(void) nxt_router_application_init(rtcf, name, NULL, action);
return action;
}
static nxt_http_action_t *
nxt_http_route_handler(nxt_task_t *task, nxt_http_request_t *r,
nxt_http_action_t *start)
{
size_t i;
nxt_http_route_t *route;
nxt_http_action_t *action;
route = start->u.route;
for (i = 0; i < route->items; i++) {
action = nxt_http_route_match(task, r, route->match[i]);
if (nxt_slow_path(r->log_route)) {
uint32_t lvl = (action == NULL) ? NXT_LOG_INFO : NXT_LOG_NOTICE;
const char *sel = (action == NULL) ? "discarded" : "selected";
if (route->name.length == 0) {
nxt_log(task, lvl, "\"routes/%z\" %s", i, sel);
} else {
nxt_log(task, lvl, "\"routes/%V/%z\" %s", &route->name, i, sel);
}
}
if (action != NULL) {
if (action != NXT_HTTP_ACTION_ERROR) {
r->action = action;
}
return action;
}
}
nxt_http_request_error(task, r, NXT_HTTP_NOT_FOUND);
return NULL;
}
static nxt_http_action_t *
nxt_http_route_match(nxt_task_t *task, nxt_http_request_t *r,
nxt_http_route_match_t *match)
{
nxt_int_t ret;
nxt_http_route_test_t *test, *end;
test = &match->test[0];
end = test + match->items;
while (test < end) {
switch (test->rule->object) {
case NXT_HTTP_ROUTE_TABLE:
ret = nxt_http_route_table(r, test->table);
break;
case NXT_HTTP_ROUTE_SOURCE:
ret = nxt_http_route_addr_rule(r, test->addr_rule, r->remote);
break;
case NXT_HTTP_ROUTE_DESTINATION:
if (r->local == NULL && nxt_fast_path(r->proto.any != NULL)) {
nxt_http_proto[r->protocol].local_addr(task, r);
}
ret = nxt_http_route_addr_rule(r, test->addr_rule, r->local);
break;
default:
ret = nxt_http_route_rule(r, test->rule);
break;
}
if (ret <= 0) {
/* 0 => NULL, -1 => NXT_HTTP_ACTION_ERROR. */
return (nxt_http_action_t *) (intptr_t) ret;
}
test++;
}
return &match->action;
}
static nxt_int_t
nxt_http_route_table(nxt_http_request_t *r, nxt_http_route_table_t *table)
{
nxt_int_t ret;
nxt_http_route_ruleset_t **ruleset, **end;
ret = 1;
ruleset = &table->ruleset[0];
end = ruleset + table->items;
while (ruleset < end) {
ret = nxt_http_route_ruleset(r, *ruleset);
if (ret != 0) {
return ret;
}
ruleset++;
}
return ret;
}
static nxt_int_t
nxt_http_route_ruleset(nxt_http_request_t *r, nxt_http_route_ruleset_t *ruleset)
{
nxt_int_t ret;
nxt_http_route_rule_t **rule, **end;
rule = &ruleset->rule[0];
end = rule + ruleset->items;
while (rule < end) {
ret = nxt_http_route_rule(r, *rule);
if (ret <= 0) {
return ret;
}
rule++;
}
return 1;
}
static nxt_int_t
nxt_http_route_rule(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
{
void *p, **pp;
u_char *start;
size_t length;
nxt_str_t *s;
switch (rule->object) {
case NXT_HTTP_ROUTE_HEADER:
return nxt_http_route_header(r, rule);
case NXT_HTTP_ROUTE_ARGUMENT:
return nxt_http_route_arguments(r, rule);
case NXT_HTTP_ROUTE_COOKIE:
return nxt_http_route_cookies(r, rule);
case NXT_HTTP_ROUTE_SCHEME:
return nxt_http_route_scheme(r, rule);
case NXT_HTTP_ROUTE_QUERY:
return nxt_http_route_query(r, rule);
default:
break;
}
p = nxt_pointer_to(r, rule->u.offset);
if (rule->object == NXT_HTTP_ROUTE_STRING) {
s = p;
} else {
/* NXT_HTTP_ROUTE_STRING_PTR */
pp = p;
s = *pp;
if (s == NULL) {
return 0;
}
}
length = s->length;
start = s->start;
return nxt_http_route_test_rule(r, rule, start, length);
}
static nxt_int_t
nxt_http_route_addr_pattern_match(nxt_http_route_addr_pattern_t *p,
nxt_sockaddr_t *sa)
{
#if (NXT_INET6)
uint32_t i;
#endif
in_port_t in_port;
nxt_int_t match;
struct sockaddr_in *sin;
#if (NXT_INET6)
struct sockaddr_in6 *sin6;
#endif
nxt_http_route_addr_base_t *base;
base = &p->base;
switch (sa->u.sockaddr.sa_family) {
case AF_INET:
match = (base->addr_family == AF_INET
|| base->addr_family == AF_UNSPEC);
if (!match) {
break;
}
sin = &sa->u.sockaddr_in;
in_port = ntohs(sin->sin_port);
match = (in_port >= base->port.start && in_port <= base->port.end);
if (!match) {
break;
}
switch (base->match_type) {
case NXT_HTTP_ROUTE_ADDR_ANY:
break;
case NXT_HTTP_ROUTE_ADDR_EXACT:
match = (memcmp(&sin->sin_addr, &p->addr.v4.start,
sizeof(struct in_addr))
== 0);
break;
case NXT_HTTP_ROUTE_ADDR_RANGE:
match = (memcmp(&sin->sin_addr, &p->addr.v4.start,
sizeof(struct in_addr)) >= 0
&& memcmp(&sin->sin_addr, &p->addr.v4.end,
sizeof(struct in_addr)) <= 0);
break;
case NXT_HTTP_ROUTE_ADDR_CIDR:
match = ((sin->sin_addr.s_addr & p->addr.v4.end)
== p->addr.v4.start);
break;
default:
nxt_unreachable();
}
break;
#if (NXT_INET6)
case AF_INET6:
match = (base->addr_family == AF_INET6
|| base->addr_family == AF_UNSPEC);
if (!match) {
break;
}
sin6 = &sa->u.sockaddr_in6;
in_port = ntohs(sin6->sin6_port);
match = (in_port >= base->port.start && in_port <= base->port.end);
if (!match) {
break;
}
switch (base->match_type) {
case NXT_HTTP_ROUTE_ADDR_ANY:
break;
case NXT_HTTP_ROUTE_ADDR_EXACT:
match = (memcmp(&sin6->sin6_addr, &p->addr.v6.start,
sizeof(struct in6_addr))
== 0);
break;
case NXT_HTTP_ROUTE_ADDR_RANGE:
match = (memcmp(&sin6->sin6_addr, &p->addr.v6.start,
sizeof(struct in6_addr)) >= 0
&& memcmp(&sin6->sin6_addr, &p->addr.v6.end,
sizeof(struct in6_addr)) <= 0);
break;
case NXT_HTTP_ROUTE_ADDR_CIDR:
for (i = 0; i < 16; i++) {
match = ((sin6->sin6_addr.s6_addr[i]
& p->addr.v6.end.s6_addr[i])
== p->addr.v6.start.s6_addr[i]);
if (!match) {
break;
}
}
break;
default:
nxt_unreachable();
}
break;
#endif
#if (NXT_HAVE_UNIX_DOMAIN)
case AF_UNIX:
match = (base->addr_family == AF_UNIX);
break;
#endif
default:
match = 0;
break;
}
return match ^ base->negative;
}
nxt_int_t
nxt_http_route_addr_rule(nxt_http_request_t *r,
nxt_http_route_addr_rule_t *addr_rule, nxt_sockaddr_t *sa)
{
uint32_t n;
nxt_bool_t matches;
nxt_http_route_addr_pattern_t *p;
n = addr_rule->items;
if (n == 0) {
return 0;
}
p = &addr_rule->addr_pattern[0] - 1;
do {
p++;
n--;
matches = nxt_http_route_addr_pattern_match(p, sa);
if (p->base.negative) {
if (matches) {
continue;
}
return 0;
}
if (matches) {
return 1;
}
} while (n > 0);
return p->base.negative;
}
static nxt_int_t
nxt_http_route_header(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
{
nxt_int_t ret;
nxt_http_field_t *f;
ret = 0;
nxt_list_each(f, r->fields) {
if (rule->u.name.hash != f->hash
|| rule->u.name.length != f->name_length
|| nxt_strncasecmp(rule->u.name.start, f->name, f->name_length)
!= 0)
{
continue;
}
ret = nxt_http_route_test_rule(r, rule, f->value, f->value_length);
if (nxt_slow_path(ret == NXT_ERROR)) {
return NXT_ERROR;
}
if (ret == 0) {
return ret;
}
} nxt_list_loop;
return ret;
}
static nxt_int_t
nxt_http_route_arguments(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
{
nxt_array_t *arguments;
arguments = nxt_http_arguments_parse(r);
if (nxt_slow_path(arguments == NULL)) {
return -1;
}
return nxt_http_route_test_argument(r, rule, arguments);
}
static nxt_int_t
nxt_http_route_test_argument(nxt_http_request_t *r,
nxt_http_route_rule_t *rule, nxt_array_t *array)
{
nxt_int_t ret;
nxt_http_name_value_t *nv, *end;
ret = 0;
nv = array->elts;
end = nv + array->nelts;
while (nv < end) {
if (rule->u.name.hash == nv->hash
&& rule->u.name.length == nv->name_length
&& memcmp(rule->u.name.start, nv->name, nv->name_length) == 0)
{
ret = nxt_http_route_test_rule(r, rule, nv->value,
nv->value_length);
if (nxt_slow_path(ret == NXT_ERROR)) {
return NXT_ERROR;
}
if (ret == 0) {
break;
}
}
nv++;
}
return ret;
}
static nxt_int_t
nxt_http_route_scheme(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
{
nxt_bool_t https;
nxt_http_route_pattern_slice_t *pattern_slice;
pattern_slice = rule->pattern[0].u.pattern_slices->elts;
https = (pattern_slice->length == nxt_length("https"));
return (r->tls == https);
}
static nxt_int_t
nxt_http_route_query(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
{
nxt_array_t *arguments;
arguments = nxt_http_arguments_parse(r);
if (nxt_slow_path(arguments == NULL)) {
return -1;
}
return nxt_http_route_test_rule(r, rule, r->args_decoded.start,
r->args_decoded.length);
}
static nxt_int_t
nxt_http_route_cookies(nxt_http_request_t *r, nxt_http_route_rule_t *rule)
{
nxt_array_t *cookies;
cookies = nxt_http_cookies_parse(r);
if (nxt_slow_path(cookies == NULL)) {
return -1;
}
return nxt_http_route_test_cookie(r, rule, cookies);
}
static nxt_int_t
nxt_http_route_test_cookie(nxt_http_request_t *r,
nxt_http_route_rule_t *rule, nxt_array_t *array)
{
nxt_int_t ret;
nxt_http_name_value_t *nv, *end;
ret = 0;
nv = array->elts;
end = nv + array->nelts;
while (nv < end) {
if (rule->u.name.hash == nv->hash
&& rule->u.name.length == nv->name_length
&& memcmp(rule->u.name.start, nv->name, nv->name_length) == 0)
{
ret = nxt_http_route_test_rule(r, rule, nv->value,
nv->value_length);
if (nxt_slow_path(ret == NXT_ERROR)) {
return NXT_ERROR;
}
if (ret == 0) {
break;
}
}
nv++;
}
return ret;
}
nxt_int_t
nxt_http_route_test_rule(nxt_http_request_t *r, nxt_http_route_rule_t *rule,
u_char *start, size_t length)
{
nxt_int_t ret;
nxt_http_route_pattern_t *pattern, *end;
ret = 1;
pattern = &rule->pattern[0];
end = pattern + rule->items;
while (pattern < end) {
ret = nxt_http_route_pattern(r, pattern, start, length);
if (nxt_slow_path(ret == NXT_ERROR)) {
return NXT_ERROR;
}
/* nxt_http_route_pattern() returns either 1 or 0. */
ret ^= pattern->negative;
if (pattern->any == ret) {
return ret;
}
pattern++;
}
return ret;
}
static nxt_int_t
nxt_http_route_pattern(nxt_http_request_t *r, nxt_http_route_pattern_t *pattern,
u_char *start, size_t length)
{
u_char *p, *end, *test;
size_t test_length;
uint32_t i;
nxt_array_t *pattern_slices;
nxt_http_route_pattern_slice_t *pattern_slice;
#if (NXT_HAVE_REGEX)
if (pattern->regex) {
if (r->regex_match == NULL) {
r->regex_match = nxt_regex_match_create(r->mem_pool, 0);
if (nxt_slow_path(r->regex_match == NULL)) {
return NXT_ERROR;
}
}
return nxt_regex_match(pattern->u.regex, start, length, r->regex_match);
}
#endif
if (length < pattern->min_length) {
return 0;
}
nxt_assert(pattern->u.pattern_slices != NULL);
pattern_slices = pattern->u.pattern_slices;
pattern_slice = pattern_slices->elts;
end = start + length;
for (i = 0; i < pattern_slices->nelts; i++, pattern_slice++) {
test = pattern_slice->start;
test_length = pattern_slice->length;
switch (pattern_slice->type) {
case NXT_HTTP_ROUTE_PATTERN_EXACT:
return ((length == pattern->min_length) &&
nxt_http_route_memcmp(start, test, test_length,
pattern->case_sensitive));
case NXT_HTTP_ROUTE_PATTERN_BEGIN:
if (nxt_http_route_memcmp(start, test, test_length,
pattern->case_sensitive))
{
start += test_length;
break;
}
return 0;
case NXT_HTTP_ROUTE_PATTERN_END:
p = end - test_length;
if (nxt_http_route_memcmp(p, test, test_length,
pattern->case_sensitive))
{
end = p;
break;
}
return 0;
case NXT_HTTP_ROUTE_PATTERN_SUBSTRING:
if (pattern->case_sensitive) {
p = nxt_memstrn(start, end, (char *) test, test_length);
} else {
p = nxt_memcasestrn(start, end, (char *) test, test_length);
}
if (p == NULL) {
return 0;
}
start = p + test_length;
}
}
return 1;
}
static nxt_int_t
nxt_http_route_memcmp(u_char *start, u_char *test, size_t test_length,
nxt_bool_t case_sensitive)
{
nxt_int_t n;
if (case_sensitive) {
n = memcmp(start, test, test_length);
} else {
n = nxt_memcasecmp(start, test, test_length);
}
return (n == 0);
}
|
b00bbebbf230986798fd521880940b5877ef4572
|
5cb3030ed86e12332d109e1ab39f92c0c866677d
|
/src/image.h
|
742627e7e78df33f416afe9e3efec699237052c8
|
[
"BSD-3-Clause",
"ISC"
] |
permissive
|
ultravideo/kvazaar
|
9c8ac79644b4782e0c9743f6518f6997e2d9b774
|
aab6aa9b349d2768f9371ef58680298c200e47e6
|
refs/heads/master
| 2023-08-24T03:29:58.344475
| 2023-07-17T05:51:47
| 2023-07-17T05:51:47
| 16,339,396
| 629
| 211
|
BSD-3-Clause
| 2023-07-03T13:01:52
| 2014-01-29T08:35:53
|
C
|
UTF-8
|
C
| false
| false
| 4,064
|
h
|
image.h
|
#ifndef IMAGE_H_
#define IMAGE_H_
/*****************************************************************************
* This file is part of Kvazaar HEVC encoder.
*
* Copyright (c) 2021, Tampere University, ITU/ISO/IEC, project contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or
* other materials provided with the distribution.
*
* * Neither the name of the Tampere University or ITU/ISO/IEC nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS
****************************************************************************/
/**
* \ingroup DataStructures
* \file
* A reference counted YUV pixel buffer.
*/
#include "global.h" // IWYU pragma: keep
#include "kvazaar.h"
#include "strategies/optimized_sad_func_ptr_t.h"
typedef struct {
kvz_pixel y[LCU_LUMA_SIZE];
kvz_pixel u[LCU_CHROMA_SIZE];
kvz_pixel v[LCU_CHROMA_SIZE];
enum kvz_chroma_format chroma_format;
} lcu_yuv_t;
typedef struct {
int size;
kvz_pixel *y;
kvz_pixel *u;
kvz_pixel *v;
} yuv_t;
typedef struct {
int size;
kvz_pixel_im *y;
kvz_pixel_im *u;
kvz_pixel_im *v;
} yuv_im_t;
kvz_picture *kvz_image_alloc_420(const int32_t width, const int32_t height);
kvz_picture *kvz_image_alloc(enum kvz_chroma_format chroma_format, const int32_t width, const int32_t height);
void kvz_image_free(kvz_picture *im);
kvz_picture *kvz_image_copy_ref(kvz_picture *im);
kvz_picture *kvz_image_make_subimage(kvz_picture *const orig_image,
const unsigned x_offset,
const unsigned y_offset,
const unsigned width,
const unsigned height);
yuv_t * kvz_yuv_t_alloc(int luma_size, int chroma_size);
void kvz_yuv_t_free(yuv_t * yuv);
//Algorithms
unsigned kvz_image_calc_sad(const kvz_picture *pic,
const kvz_picture *ref,
int pic_x,
int pic_y,
int ref_x,
int ref_y,
int block_width,
int block_height,
optimized_sad_func_ptr_t optimized_sad);
unsigned kvz_image_calc_satd(const kvz_picture *pic,
const kvz_picture *ref,
int pic_x,
int pic_y,
int ref_x,
int ref_y,
int block_width,
int block_height);
void kvz_pixels_blit(const kvz_pixel* orig, kvz_pixel *dst,
unsigned width, unsigned height,
unsigned orig_stride, unsigned dst_stride);
#endif
|
4872bc5b83bdffb685f5ee076250cec0bded8e50
|
88aca3340574f733b9ecd6f76708ecd2d57cb07e
|
/vendor/bundle/ruby/2.6.0/gems/rb-fsevent-0.11.1/ext/fsevent_watch/main.c
|
b18596a60345cee63db868f8f1cb4cefd6203f66
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
collabnix/dockerlabs
|
65c63a8424d34120bddc0fc8d6fd54a688953491
|
0f2a6b906a8ca0ebc28561236d4d6516f93b184c
|
refs/heads/master
| 2023-09-05T07:30:30.601797
| 2023-09-05T07:25:53
| 2023-09-05T07:25:53
| 153,069,455
| 5,239
| 1,854
|
Apache-2.0
| 2023-09-03T05:51:41
| 2018-10-15T07:19:18
|
PHP
|
UTF-8
|
C
| false
| false
| 20,513
|
c
|
main.c
|
#include "common.h"
#include "signal_handlers.h"
#include "cli.h"
#include "FSEventsFix.h"
// TODO: set on fire. cli.{h,c} handle both parsing and defaults, so there's
// no need to set those here. also, in order to scope metadata by path,
// each stream will need its own configuration... so this won't work as
// a global any more. In the end the goal is to make the output format
// able to declare not just that something happened and what flags were
// attached, but what path it was watching that caused those events (so
// that the path itself can be used for routing that information to the
// relevant callback).
//
// Structure for storing metadata parsed from the commandline
static struct {
FSEventStreamEventId sinceWhen;
CFTimeInterval latency;
FSEventStreamCreateFlags flags;
CFMutableArrayRef paths;
enum FSEventWatchOutputFormat format;
} config = {
(UInt64) kFSEventStreamEventIdSinceNow,
(double) 0.3,
(CFOptionFlags) kFSEventStreamCreateFlagNone,
NULL,
kFSEventWatchOutputFormatOTNetstring
};
// Prototypes
static void append_path(const char* path);
static inline void parse_cli_settings(int argc, const char* argv[]);
static void callback(FSEventStreamRef streamRef,
void* clientCallBackInfo,
size_t numEvents,
void* eventPaths,
const FSEventStreamEventFlags eventFlags[],
const FSEventStreamEventId eventIds[]);
static bool needs_fsevents_fix = false;
// Resolve a path and append it to the CLI settings structure
// The FSEvents API will, internally, resolve paths using a similar scheme.
// Performing this ahead of time makes things less confusing, IMHO.
static void append_path(const char* path)
{
#ifdef DEBUG
fprintf(stderr, "\n");
fprintf(stderr, "append_path called for: %s\n", path);
#endif
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
#ifdef DEBUG
fprintf(stderr, "compiled against 10.6+, using CFURLCreateFileReferenceURL\n");
#endif
CFURLRef url = CFURLCreateFromFileSystemRepresentation(NULL, (const UInt8*)path, (CFIndex)strlen(path), false);
CFURLRef placeholder = CFURLCopyAbsoluteURL(url);
CFRelease(url);
CFMutableArrayRef imaginary = NULL;
// if we don't have an existing url, spin until we get to a parent that
// does exist, saving any imaginary components for appending back later
while(!CFURLResourceIsReachable(placeholder, NULL)) {
#ifdef DEBUG
fprintf(stderr, "path does not exist\n");
#endif
CFStringRef child;
if (imaginary == NULL) {
imaginary = CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks);
}
child = CFURLCopyLastPathComponent(placeholder);
CFArrayInsertValueAtIndex(imaginary, 0, child);
CFRelease(child);
url = CFURLCreateCopyDeletingLastPathComponent(NULL, placeholder);
CFRelease(placeholder);
placeholder = url;
#ifdef DEBUG
fprintf(stderr, "parent: ");
CFShow(placeholder);
#endif
}
#ifdef DEBUG
fprintf(stderr, "path exists\n");
#endif
// realpath() doesn't always return the correct case for a path, so this
// is a funky workaround that converts a path into a (volId/inodeId) pair
// and asks what the path should be for that. since it looks at the actual
// inode instead of returning the same case passed in like realpath()
// appears to do for HFS+, it should always be correct.
url = CFURLCreateFileReferenceURL(NULL, placeholder, NULL);
CFRelease(placeholder);
placeholder = CFURLCreateFilePathURL(NULL, url, NULL);
CFRelease(url);
#ifdef DEBUG
fprintf(stderr, "path resolved to: ");
CFShow(placeholder);
#endif
// if we stripped off any imaginary path components, append them back on
if (imaginary != NULL) {
CFIndex count = CFArrayGetCount(imaginary);
for (CFIndex i = 0; i<count; i++) {
CFStringRef component = CFArrayGetValueAtIndex(imaginary, i);
#ifdef DEBUG
fprintf(stderr, "appending component: ");
CFShow(component);
#endif
url = CFURLCreateCopyAppendingPathComponent(NULL, placeholder, component, false);
CFRelease(placeholder);
placeholder = url;
}
CFRelease(imaginary);
}
#ifdef DEBUG
fprintf(stderr, "result: ");
CFShow(placeholder);
#endif
CFStringRef cfPath = CFURLCopyFileSystemPath(placeholder, kCFURLPOSIXPathStyle);
CFRelease(placeholder);
char cPath[PATH_MAX];
if (CFStringGetCString(cfPath, cPath, PATH_MAX, kCFStringEncodingUTF8)) {
FSEventsFixRepairStatus status = FSEventsFixRepairIfNeeded(cPath);
if (status == FSEventsFixRepairStatusFailed) {
needs_fsevents_fix = true;
}
}
CFArrayAppendValue(config.paths, cfPath);
CFRelease(cfPath);
#else
#ifdef DEBUG
fprintf(stderr, "compiled against 10.5, using realpath()\n");
#endif
char fullPath[PATH_MAX + 1];
if (realpath(path, fullPath) == NULL) {
#ifdef DEBUG
fprintf(stderr, " realpath not directly resolvable from path\n");
#endif
if (path[0] != '/') {
#ifdef DEBUG
fprintf(stderr, " passed path is not absolute\n");
#endif
size_t len;
getcwd(fullPath, sizeof(fullPath));
#ifdef DEBUG
fprintf(stderr, " result of getcwd: %s\n", fullPath);
#endif
len = strlen(fullPath);
fullPath[len] = '/';
strlcpy(&fullPath[len + 1], path, sizeof(fullPath) - (len + 1));
} else {
#ifdef DEBUG
fprintf(stderr, " assuming path does not YET exist\n");
#endif
strlcpy(fullPath, path, sizeof(fullPath));
}
}
#ifdef DEBUG
fprintf(stderr, " resolved path to: %s\n", fullPath);
fprintf(stderr, "\n");
#endif
CFStringRef pathRef = CFStringCreateWithCString(kCFAllocatorDefault,
fullPath,
kCFStringEncodingUTF8);
CFArrayAppendValue(config.paths, pathRef);
CFRelease(pathRef);
#endif
}
// Parse commandline settings
static inline void parse_cli_settings(int argc, const char* argv[])
{
// runtime os version detection
SInt32 osMajorVersion, osMinorVersion;
if (!(Gestalt(gestaltSystemVersionMajor, &osMajorVersion) == noErr)) {
osMajorVersion = 0;
}
if (!(Gestalt(gestaltSystemVersionMinor, &osMinorVersion) == noErr)) {
osMinorVersion = 0;
}
if ((osMajorVersion == 10) & (osMinorVersion < 5)) {
fprintf(stderr, "The FSEvents API is unavailable on this version of macos!\n");
exit(EXIT_FAILURE);
}
struct cli_info args_info;
cli_parser_init(&args_info);
if (cli_parser(argc, argv, &args_info) != 0) {
exit(EXIT_FAILURE);
}
config.paths = CFArrayCreateMutable(NULL,
(CFIndex)0,
&kCFTypeArrayCallBacks);
config.sinceWhen = args_info.since_when_arg;
config.latency = args_info.latency_arg;
config.format = args_info.format_arg;
if (args_info.no_defer_flag) {
config.flags |= kFSEventStreamCreateFlagNoDefer;
}
if (args_info.watch_root_flag) {
config.flags |= kFSEventStreamCreateFlagWatchRoot;
}
if (args_info.ignore_self_flag) {
if ((osMajorVersion == 10) & (osMinorVersion >= 6)) {
config.flags |= kFSEventStreamCreateFlagIgnoreSelf;
} else {
fprintf(stderr, "MacOSX 10.6 or later is required for --ignore-self\n");
exit(EXIT_FAILURE);
}
}
if (args_info.file_events_flag) {
if ((osMajorVersion == 10) & (osMinorVersion >= 7)) {
config.flags |= kFSEventStreamCreateFlagFileEvents;
} else {
fprintf(stderr, "MacOSX 10.7 or later required for --file-events\n");
exit(EXIT_FAILURE);
}
}
if (args_info.mark_self_flag) {
if ((osMajorVersion == 10) & (osMinorVersion >= 9)) {
config.flags |= kFSEventStreamCreateFlagMarkSelf;
} else {
fprintf(stderr, "MacOSX 10.9 or later required for --mark-self\n");
exit(EXIT_FAILURE);
}
}
if (args_info.inputs_num == 0) {
append_path(".");
} else {
for (unsigned int i=0; i < args_info.inputs_num; ++i) {
append_path(args_info.inputs[i]);
}
}
cli_parser_free(&args_info);
#ifdef DEBUG
fprintf(stderr, "config.sinceWhen %llu\n", config.sinceWhen);
fprintf(stderr, "config.latency %f\n", config.latency);
// STFU clang
#if defined(__LP64__)
fprintf(stderr, "config.flags %#.8x\n", config.flags);
#else
fprintf(stderr, "config.flags %#.8lx\n", config.flags);
#endif
FLAG_CHECK_STDERR(config.flags, kFSEventStreamCreateFlagUseCFTypes,
" Using CF instead of C types");
FLAG_CHECK_STDERR(config.flags, kFSEventStreamCreateFlagNoDefer,
" NoDefer latency modifier enabled");
FLAG_CHECK_STDERR(config.flags, kFSEventStreamCreateFlagWatchRoot,
" WatchRoot notifications enabled");
FLAG_CHECK_STDERR(config.flags, kFSEventStreamCreateFlagIgnoreSelf,
" IgnoreSelf enabled");
FLAG_CHECK_STDERR(config.flags, kFSEventStreamCreateFlagFileEvents,
" FileEvents enabled");
fprintf(stderr, "config.paths\n");
long numpaths = CFArrayGetCount(config.paths);
for (long i = 0; i < numpaths; i++) {
char path[PATH_MAX];
CFStringGetCString(CFArrayGetValueAtIndex(config.paths, i),
path,
PATH_MAX,
kCFStringEncodingUTF8);
fprintf(stderr, " %s\n", path);
}
fprintf(stderr, "\n");
#endif
}
// original output format for rb-fsevent
static void classic_output_format(size_t numEvents,
char** paths)
{
for (size_t i = 0; i < numEvents; i++) {
fprintf(stdout, "%s:", paths[i]);
}
fprintf(stdout, "\n");
}
// output format used in the Yoshimasa Niwa branch of rb-fsevent
static void niw_output_format(size_t numEvents,
char** paths,
const FSEventStreamEventFlags eventFlags[],
const FSEventStreamEventId eventIds[])
{
for (size_t i = 0; i < numEvents; i++) {
fprintf(stdout, "%lu:%llu:%s\n",
(unsigned long)eventFlags[i],
(unsigned long long)eventIds[i],
paths[i]);
}
fprintf(stdout, "\n");
}
static void tstring_output_format(size_t numEvents,
char** paths,
const FSEventStreamEventFlags eventFlags[],
const FSEventStreamEventId eventIds[],
TSITStringFormat format)
{
CFMutableArrayRef events = CFArrayCreateMutable(kCFAllocatorDefault,
0, &kCFTypeArrayCallBacks);
for (size_t i = 0; i < numEvents; i++) {
CFMutableDictionaryRef event = CFDictionaryCreateMutable(kCFAllocatorDefault,
0,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks);
CFStringRef path = CFStringCreateWithBytes(kCFAllocatorDefault,
(const UInt8*)paths[i],
(CFIndex)strlen(paths[i]),
kCFStringEncodingUTF8,
false);
CFDictionarySetValue(event, CFSTR("path"), path);
CFNumberRef ident = CFNumberCreate(kCFAllocatorDefault, kCFNumberLongLongType, &eventIds[i]);
CFDictionarySetValue(event, CFSTR("id"), ident);
CFNumberRef cflags = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &eventFlags[i]);
CFDictionarySetValue(event, CFSTR("cflags"), cflags);
CFMutableArrayRef flags = CFArrayCreateMutable(kCFAllocatorDefault,
0, &kCFTypeArrayCallBacks);
#define FLAG_ADD_NAME(flagsnum, flagnum, flagname, flagarray) \
do { \
if (FLAG_CHECK(flagsnum, flagnum)) { \
CFArrayAppendValue(flagarray, CFSTR(flagname)); } } \
while(0)
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagMustScanSubDirs, "MustScanSubDirs", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagUserDropped, "UserDropped", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagKernelDropped, "KernelDropped", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagEventIdsWrapped, "EventIdsWrapped", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagHistoryDone, "HistoryDone", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagRootChanged, "RootChanged", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagMount, "Mount", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagUnmount, "Unmount", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemCreated, "ItemCreated", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemRemoved, "ItemRemoved", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemInodeMetaMod, "ItemInodeMetaMod", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemRenamed, "ItemRenamed", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemModified, "ItemModified", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemFinderInfoMod, "ItemFinderInfoMod", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemChangeOwner, "ItemChangeOwner", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemXattrMod, "ItemXattrMod", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemIsFile, "ItemIsFile", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemIsDir, "ItemIsDir", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemIsSymlink, "ItemIsSymlink", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagOwnEvent, "OwnEvent", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemIsHardlink, "ItemIsHardLink", flags);
FLAG_ADD_NAME(eventFlags[i], kFSEventStreamEventFlagItemIsLastHardlink, "ItemIsLastHardLink", flags);
CFDictionarySetValue(event, CFSTR("flags"), flags);
CFArrayAppendValue(events, event);
CFRelease(event);
CFRelease(path);
CFRelease(ident);
CFRelease(cflags);
CFRelease(flags);
}
CFMutableDictionaryRef meta = CFDictionaryCreateMutable(kCFAllocatorDefault,
0,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks);
CFDictionarySetValue(meta, CFSTR("events"), events);
CFNumberRef num = CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &numEvents);
CFDictionarySetValue(meta, CFSTR("numEvents"), num);
CFDataRef data = TSICTStringCreateRenderedDataFromObjectWithFormat(meta, format);
fprintf(stdout, "%s", CFDataGetBytePtr(data));
CFRelease(events);
CFRelease(num);
CFRelease(meta);
CFRelease(data);
}
static void callback(__attribute__((unused)) FSEventStreamRef streamRef,
__attribute__((unused)) void* clientCallBackInfo,
size_t numEvents,
void* eventPaths,
const FSEventStreamEventFlags eventFlags[],
const FSEventStreamEventId eventIds[])
{
char** paths = eventPaths;
#ifdef DEBUG
fprintf(stderr, "\n");
fprintf(stderr, "FSEventStreamCallback fired!\n");
fprintf(stderr, " numEvents: %lu\n", numEvents);
for (size_t i = 0; i < numEvents; i++) {
fprintf(stderr, "\n");
fprintf(stderr, " event ID: %llu\n", eventIds[i]);
// STFU clang
#if defined(__LP64__)
fprintf(stderr, " event flags: %#.8x\n", eventFlags[i]);
#else
fprintf(stderr, " event flags: %#.8lx\n", eventFlags[i]);
#endif
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagMustScanSubDirs,
" Recursive scanning of directory required");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagUserDropped,
" Buffering problem: events dropped user-side");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagKernelDropped,
" Buffering problem: events dropped kernel-side");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagEventIdsWrapped,
" Event IDs have wrapped");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagHistoryDone,
" All historical events have been processed");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagRootChanged,
" Root path has changed");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagMount,
" A new volume was mounted at this path");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagUnmount,
" A volume was unmounted from this path");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemCreated,
" Item created");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemRemoved,
" Item removed");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemInodeMetaMod,
" Item metadata modified");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemRenamed,
" Item renamed");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemModified,
" Item modified");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemFinderInfoMod,
" Item Finder Info modified");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemChangeOwner,
" Item changed ownership");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemXattrMod,
" Item extended attributes modified");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemIsFile,
" Item is a file");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemIsDir,
" Item is a directory");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemIsSymlink,
" Item is a symbolic link");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemIsHardlink,
" Item is a hard link");
FLAG_CHECK_STDERR(eventFlags[i], kFSEventStreamEventFlagItemIsLastHardlink,
" Item is the last hard link");
fprintf(stderr, " event path: %s\n", paths[i]);
fprintf(stderr, "\n");
}
fprintf(stderr, "\n");
#endif
if (config.format == kFSEventWatchOutputFormatClassic) {
classic_output_format(numEvents, paths);
} else if (config.format == kFSEventWatchOutputFormatNIW) {
niw_output_format(numEvents, paths, eventFlags, eventIds);
} else if (config.format == kFSEventWatchOutputFormatTNetstring) {
tstring_output_format(numEvents, paths, eventFlags, eventIds,
kTSITStringFormatTNetstring);
} else if (config.format == kFSEventWatchOutputFormatOTNetstring) {
tstring_output_format(numEvents, paths, eventFlags, eventIds,
kTSITStringFormatOTNetstring);
}
fflush(stdout);
}
int main(int argc, const char* argv[])
{
install_signal_handlers();
parse_cli_settings(argc, argv);
if (needs_fsevents_fix) {
FSEventsFixEnable();
}
FSEventStreamContext context = {0, NULL, NULL, NULL, NULL};
FSEventStreamRef stream;
stream = FSEventStreamCreate(kCFAllocatorDefault,
(FSEventStreamCallback)&callback,
&context,
config.paths,
config.sinceWhen,
config.latency,
config.flags);
#ifdef DEBUG
FSEventStreamShow(stream);
fprintf(stderr, "\n");
#endif
if (needs_fsevents_fix) {
FSEventsFixDisable();
}
FSEventStreamScheduleWithRunLoop(stream,
CFRunLoopGetCurrent(),
kCFRunLoopDefaultMode);
FSEventStreamStart(stream);
CFRunLoopRun();
FSEventStreamFlushSync(stream);
FSEventStreamStop(stream);
return 0;
}
|
75e376f76b621d26b7691ff1ed46881be85da7b5
|
e910318d01528d82040507a49eeeb8dade45b31f
|
/ports/qemu-arm/startup.c
|
a52b068c332ae533753259c41bf1f62ce6a580c1
|
[
"MIT"
] |
permissive
|
pfalcon/pycopy
|
e844480a5e5cd463530328889daed2ba87552b8a
|
3ac90ae9c3c6bbebfba9cada2d37025e35c62796
|
refs/heads/pfalcon
| 2023-08-30T09:39:52.290147
| 2022-09-08T16:42:38
| 2022-09-08T16:42:38
| 15,507,576
| 753
| 71
|
MIT
| 2021-05-08T04:59:21
| 2013-12-29T11:38:47
|
C
|
UTF-8
|
C
| false
| false
| 2,888
|
c
|
startup.c
|
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "uart.h"
extern uint32_t _estack, _sidata, _sdata, _edata, _sbss, _ebss;
__attribute__((naked)) void Reset_Handler(void) {
// set stack pointer
__asm volatile ("ldr r0, =_estack");
__asm volatile ("mov sp, r0");
// copy .data section from flash to RAM
for (uint32_t *src = &_sidata, *dest = &_sdata; dest < &_edata;) {
*dest++ = *src++;
}
// zero out .bss section
for (uint32_t *dest = &_sbss; dest < &_ebss;) {
*dest++ = 0;
}
// jump to board initialisation
void _start(void);
_start();
}
void Default_Handler(void) {
for (;;) {
}
}
#if defined(__ARM_ARCH_ISA_ARM)
// ARM architecture with standard ARM ISA.
__attribute__((naked, section(".isr_vector"))) void isr_vector(void) {
__asm volatile (
"b Reset_Handler\n"
"b Default_Handler\n"
"b Default_Handler\n"
"b Default_Handler\n"
"b Default_Handler\n"
"nop\n"
"b Default_Handler\n"
"b Default_Handler\n"
);
}
#elif defined(__ARM_ARCH_ISA_THUMB)
// ARM architecture with Thumb-only ISA.
const uint32_t isr_vector[] __attribute__((section(".isr_vector"))) = {
(uint32_t)&_estack,
(uint32_t)&Reset_Handler,
(uint32_t)&Default_Handler, // NMI_Handler
(uint32_t)&Default_Handler, // HardFault_Handler
(uint32_t)&Default_Handler, // MemManage_Handler
(uint32_t)&Default_Handler, // BusFault_Handler
(uint32_t)&Default_Handler, // UsageFault_Handler
0,
0,
0,
0,
(uint32_t)&Default_Handler, // SVC_Handler
(uint32_t)&Default_Handler, // DebugMon_Handler
0,
(uint32_t)&Default_Handler, // PendSV_Handler
(uint32_t)&Default_Handler, // SysTick_Handler
};
#endif
void _start(void) {
// Enable the UART
uart_init();
// Now that we have a basic system up and running we can call main
extern int main();
main(0, 0);
// Finished
exit(0);
}
__attribute__((naked)) void exit(int status) {
// Force qemu to exit using ARM Semihosting
__asm volatile (
"mov r1, r0\n"
"cmp r1, #0\n"
"bne .notclean\n"
"ldr r1, =0x20026\n" // ADP_Stopped_ApplicationExit, a clean exit
".notclean:\n"
"movs r0, #0x18\n" // SYS_EXIT
#if defined(__ARM_ARCH_ISA_ARM)
"svc 0x00123456\n"
#elif defined(__ARM_ARCH_ISA_THUMB)
"bkpt 0xab\n"
#endif
);
for (;;) {
}
}
#ifndef NDEBUG
void __assert_func(const char *file, int line, const char *func, const char *expr) {
(void)func;
printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line);
exit(1);
}
#endif
// The following are needed for tinytest
#include <stdio.h>
int setvbuf(FILE *stream, char *buf, int mode, size_t size) {
return 0;
}
struct _reent *_impure_ptr;
|
6c11837a5b4762851df75ba0e18b02290ce34a73
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/isdn/hisax/st5481_b.c
|
409849165838fba631eeb74983c7fc7e8e68b152
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 9,957
|
c
|
st5481_b.c
|
/*
* Driver for ST5481 USB ISDN modem
*
* Author Frode Isaksen
* Copyright 2001 by Frode Isaksen <fisaksen@bewan.com>
* 2001 by Kai Germaschewski <kai.germaschewski@gmx.de>
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
*/
#include <linux/init.h>
#include <linux/gfp.h>
#include <linux/usb.h>
#include <linux/netdevice.h>
#include <linux/bitrev.h>
#include "st5481.h"
static inline void B_L1L2(struct st5481_bcs *bcs, int pr, void *arg)
{
struct hisax_if *ifc = (struct hisax_if *) &bcs->b_if;
ifc->l1l2(ifc, pr, arg);
}
/*
* Encode and transmit next frame.
*/
static void usb_b_out(struct st5481_bcs *bcs, int buf_nr)
{
struct st5481_b_out *b_out = &bcs->b_out;
struct st5481_adapter *adapter = bcs->adapter;
struct urb *urb;
unsigned int packet_size, offset;
int len, buf_size, bytes_sent;
int i;
struct sk_buff *skb;
if (test_and_set_bit(buf_nr, &b_out->busy)) {
DBG(4, "ep %d urb %d busy", (bcs->channel + 1) * 2, buf_nr);
return;
}
urb = b_out->urb[buf_nr];
// Adjust isoc buffer size according to flow state
if (b_out->flow_event & (OUT_DOWN | OUT_UNDERRUN)) {
buf_size = NUM_ISO_PACKETS_B * SIZE_ISO_PACKETS_B_OUT + B_FLOW_ADJUST;
packet_size = SIZE_ISO_PACKETS_B_OUT + B_FLOW_ADJUST;
DBG(4, "B%d,adjust flow,add %d bytes", bcs->channel + 1, B_FLOW_ADJUST);
} else if (b_out->flow_event & OUT_UP) {
buf_size = NUM_ISO_PACKETS_B * SIZE_ISO_PACKETS_B_OUT - B_FLOW_ADJUST;
packet_size = SIZE_ISO_PACKETS_B_OUT - B_FLOW_ADJUST;
DBG(4, "B%d,adjust flow,remove %d bytes", bcs->channel + 1, B_FLOW_ADJUST);
} else {
buf_size = NUM_ISO_PACKETS_B * SIZE_ISO_PACKETS_B_OUT;
packet_size = 8;
}
b_out->flow_event = 0;
len = 0;
while (len < buf_size) {
if ((skb = b_out->tx_skb)) {
DBG_SKB(0x100, skb);
DBG(4, "B%d,len=%d", bcs->channel + 1, skb->len);
if (bcs->mode == L1_MODE_TRANS) {
bytes_sent = buf_size - len;
if (skb->len < bytes_sent)
bytes_sent = skb->len;
{ /* swap tx bytes to get hearable audio data */
register unsigned char *src = skb->data;
register unsigned char *dest = urb->transfer_buffer + len;
register unsigned int count;
for (count = 0; count < bytes_sent; count++)
*dest++ = bitrev8(*src++);
}
len += bytes_sent;
} else {
len += isdnhdlc_encode(&b_out->hdlc_state,
skb->data, skb->len, &bytes_sent,
urb->transfer_buffer + len, buf_size-len);
}
skb_pull(skb, bytes_sent);
if (!skb->len) {
// Frame sent
b_out->tx_skb = NULL;
B_L1L2(bcs, PH_DATA | CONFIRM, (void *)(unsigned long) skb->truesize);
dev_kfree_skb_any(skb);
/* if (!(bcs->tx_skb = skb_dequeue(&bcs->sq))) { */
/* st5481B_sched_event(bcs, B_XMTBUFREADY); */
/* } */
}
} else {
if (bcs->mode == L1_MODE_TRANS) {
memset(urb->transfer_buffer + len, 0xff, buf_size-len);
len = buf_size;
} else {
// Send flags
len += isdnhdlc_encode(&b_out->hdlc_state,
NULL, 0, &bytes_sent,
urb->transfer_buffer + len, buf_size-len);
}
}
}
// Prepare the URB
for (i = 0, offset = 0; offset < len; i++) {
urb->iso_frame_desc[i].offset = offset;
urb->iso_frame_desc[i].length = packet_size;
offset += packet_size;
packet_size = SIZE_ISO_PACKETS_B_OUT;
}
urb->transfer_buffer_length = len;
urb->number_of_packets = i;
urb->dev = adapter->usb_dev;
DBG_ISO_PACKET(0x200, urb);
SUBMIT_URB(urb, GFP_NOIO);
}
/*
* Start transferring (flags or data) on the B channel, since
* FIFO counters has been set to a non-zero value.
*/
static void st5481B_start_xfer(void *context)
{
struct st5481_bcs *bcs = context;
DBG(4, "B%d", bcs->channel + 1);
// Start transmitting (flags or data) on B channel
usb_b_out(bcs, 0);
usb_b_out(bcs, 1);
}
/*
* If the adapter has only 2 LEDs, the green
* LED will blink with a rate depending
* on the number of channels opened.
*/
static void led_blink(struct st5481_adapter *adapter)
{
u_char leds = adapter->leds;
// 50 frames/sec for each channel
if (++adapter->led_counter % 50) {
return;
}
if (adapter->led_counter % 100) {
leds |= GREEN_LED;
} else {
leds &= ~GREEN_LED;
}
st5481_usb_device_ctrl_msg(adapter, GPIO_OUT, leds, NULL, NULL);
}
static void usb_b_out_complete(struct urb *urb)
{
struct st5481_bcs *bcs = urb->context;
struct st5481_b_out *b_out = &bcs->b_out;
struct st5481_adapter *adapter = bcs->adapter;
int buf_nr;
buf_nr = get_buf_nr(b_out->urb, urb);
test_and_clear_bit(buf_nr, &b_out->busy);
if (unlikely(urb->status < 0)) {
switch (urb->status) {
case -ENOENT:
case -ESHUTDOWN:
case -ECONNRESET:
DBG(4, "urb killed status %d", urb->status);
return; // Give up
default:
WARNING("urb status %d", urb->status);
if (b_out->busy == 0) {
st5481_usb_pipe_reset(adapter, (bcs->channel + 1) * 2 | USB_DIR_OUT, NULL, NULL);
}
break;
}
}
usb_b_out(bcs, buf_nr);
if (adapter->number_of_leds == 2)
led_blink(adapter);
}
/*
* Start or stop the transfer on the B channel.
*/
static void st5481B_mode(struct st5481_bcs *bcs, int mode)
{
struct st5481_b_out *b_out = &bcs->b_out;
struct st5481_adapter *adapter = bcs->adapter;
DBG(4, "B%d,mode=%d", bcs->channel + 1, mode);
if (bcs->mode == mode)
return;
bcs->mode = mode;
// Cancel all USB transfers on this B channel
usb_unlink_urb(b_out->urb[0]);
usb_unlink_urb(b_out->urb[1]);
b_out->busy = 0;
st5481_in_mode(&bcs->b_in, mode);
if (bcs->mode != L1_MODE_NULL) {
// Open the B channel
if (bcs->mode != L1_MODE_TRANS) {
u32 features = HDLC_BITREVERSE;
if (bcs->mode == L1_MODE_HDLC_56K)
features |= HDLC_56KBIT;
isdnhdlc_out_init(&b_out->hdlc_state, features);
}
st5481_usb_pipe_reset(adapter, (bcs->channel + 1) * 2, NULL, NULL);
// Enable B channel interrupts
st5481_usb_device_ctrl_msg(adapter, FFMSK_B1 + (bcs->channel * 2),
OUT_UP + OUT_DOWN + OUT_UNDERRUN, NULL, NULL);
// Enable B channel FIFOs
st5481_usb_device_ctrl_msg(adapter, OUT_B1_COUNTER+(bcs->channel * 2), 32, st5481B_start_xfer, bcs);
if (adapter->number_of_leds == 4) {
if (bcs->channel == 0) {
adapter->leds |= B1_LED;
} else {
adapter->leds |= B2_LED;
}
}
} else {
// Disble B channel interrupts
st5481_usb_device_ctrl_msg(adapter, FFMSK_B1+(bcs->channel * 2), 0, NULL, NULL);
// Disable B channel FIFOs
st5481_usb_device_ctrl_msg(adapter, OUT_B1_COUNTER+(bcs->channel * 2), 0, NULL, NULL);
if (adapter->number_of_leds == 4) {
if (bcs->channel == 0) {
adapter->leds &= ~B1_LED;
} else {
adapter->leds &= ~B2_LED;
}
} else {
st5481_usb_device_ctrl_msg(adapter, GPIO_OUT, adapter->leds, NULL, NULL);
}
if (b_out->tx_skb) {
dev_kfree_skb_any(b_out->tx_skb);
b_out->tx_skb = NULL;
}
}
}
static int st5481_setup_b_out(struct st5481_bcs *bcs)
{
struct usb_device *dev = bcs->adapter->usb_dev;
struct usb_interface *intf;
struct usb_host_interface *altsetting = NULL;
struct usb_host_endpoint *endpoint;
struct st5481_b_out *b_out = &bcs->b_out;
DBG(4, "");
intf = usb_ifnum_to_if(dev, 0);
if (intf)
altsetting = usb_altnum_to_altsetting(intf, 3);
if (!altsetting)
return -ENXIO;
// Allocate URBs and buffers for the B channel out
endpoint = &altsetting->endpoint[EP_B1_OUT - 1 + bcs->channel * 2];
DBG(4, "endpoint address=%02x,packet size=%d",
endpoint->desc.bEndpointAddress, le16_to_cpu(endpoint->desc.wMaxPacketSize));
// Allocate memory for 8000bytes/sec + extra bytes if underrun
return st5481_setup_isocpipes(b_out->urb, dev,
usb_sndisocpipe(dev, endpoint->desc.bEndpointAddress),
NUM_ISO_PACKETS_B, SIZE_ISO_PACKETS_B_OUT,
NUM_ISO_PACKETS_B * SIZE_ISO_PACKETS_B_OUT + B_FLOW_ADJUST,
usb_b_out_complete, bcs);
}
static void st5481_release_b_out(struct st5481_bcs *bcs)
{
struct st5481_b_out *b_out = &bcs->b_out;
DBG(4, "");
st5481_release_isocpipes(b_out->urb);
}
int st5481_setup_b(struct st5481_bcs *bcs)
{
int retval;
DBG(4, "");
retval = st5481_setup_b_out(bcs);
if (retval)
goto err;
bcs->b_in.bufsize = HSCX_BUFMAX;
bcs->b_in.num_packets = NUM_ISO_PACKETS_B;
bcs->b_in.packet_size = SIZE_ISO_PACKETS_B_IN;
bcs->b_in.ep = (bcs->channel ? EP_B2_IN : EP_B1_IN) | USB_DIR_IN;
bcs->b_in.counter = bcs->channel ? IN_B2_COUNTER : IN_B1_COUNTER;
bcs->b_in.adapter = bcs->adapter;
bcs->b_in.hisax_if = &bcs->b_if.ifc;
retval = st5481_setup_in(&bcs->b_in);
if (retval)
goto err_b_out;
return 0;
err_b_out:
st5481_release_b_out(bcs);
err:
return retval;
}
/*
* Release buffers and URBs for the B channels
*/
void st5481_release_b(struct st5481_bcs *bcs)
{
DBG(4, "");
st5481_release_in(&bcs->b_in);
st5481_release_b_out(bcs);
}
/*
* st5481_b_l2l1 is the entry point for upper layer routines that want to
* transmit on the B channel. PH_DATA | REQUEST is a normal packet that
* we either start transmitting (if idle) or queue (if busy).
* PH_PULL | REQUEST can be called to request a callback message
* (PH_PULL | CONFIRM)
* once the link is idle. After a "pull" callback, the upper layer
* routines can use PH_PULL | INDICATION to send data.
*/
void st5481_b_l2l1(struct hisax_if *ifc, int pr, void *arg)
{
struct st5481_bcs *bcs = ifc->priv;
struct sk_buff *skb = arg;
long mode;
DBG(4, "");
switch (pr) {
case PH_DATA | REQUEST:
BUG_ON(bcs->b_out.tx_skb);
bcs->b_out.tx_skb = skb;
break;
case PH_ACTIVATE | REQUEST:
mode = (long) arg;
DBG(4, "B%d,PH_ACTIVATE_REQUEST %ld", bcs->channel + 1, mode);
st5481B_mode(bcs, mode);
B_L1L2(bcs, PH_ACTIVATE | INDICATION, NULL);
break;
case PH_DEACTIVATE | REQUEST:
DBG(4, "B%d,PH_DEACTIVATE_REQUEST", bcs->channel + 1);
st5481B_mode(bcs, L1_MODE_NULL);
B_L1L2(bcs, PH_DEACTIVATE | INDICATION, NULL);
break;
default:
WARNING("pr %#x\n", pr);
}
}
|
39303158af94a8f3219d52e224e0c4f9c27b6b2f
|
e814383d36a10839104efaa4df277996ab220fa3
|
/ompi/mca/coll/tuned/coll_tuned_scan_decision.c
|
f35872023f0f5bbedf9a1356e88da37e1a67805e
|
[
"mpich2",
"BSD-3-Clause-Open-MPI"
] |
permissive
|
open-mpi/ompi
|
a1d7483ae1d83dd8fd8ae3ee95e832e0a0ee04e3
|
1edfdb025c4450f694600083ad871cf06c8d45cd
|
refs/heads/main
| 2023-09-01T01:30:02.040705
| 2023-08-29T17:32:18
| 2023-08-29T17:32:18
| 24,107,001
| 2,008
| 973
|
NOASSERTION
| 2023-09-14T20:59:26
| 2014-09-16T16:08:30
|
C
|
UTF-8
|
C
| false
| false
| 4,740
|
c
|
coll_tuned_scan_decision.c
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2018 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2020 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ompi_config.h"
#include "mpi.h"
#include "ompi/constants.h"
#include "ompi/datatype/ompi_datatype.h"
#include "ompi/communicator/communicator.h"
#include "ompi/mca/coll/coll.h"
#include "ompi/mca/coll/base/coll_base_topo.h"
#include "ompi/mca/coll/base/coll_tags.h"
#include "ompi/mca/pml/pml.h"
#include "ompi/op/op.h"
#include "coll_tuned.h"
/* scan algorithm variables */
static int coll_tuned_scan_forced_algorithm = 0;
/* valid values for coll_tuned_scan_forced_algorithm */
static const mca_base_var_enum_value_t scan_algorithms[] = {
{0, "ignore"},
{1, "linear"},
{2, "recursive_doubling"},
{0, NULL}
};
/**
* The following are used by dynamic and forced rules
*
* publish details of each algorithm and if its forced/fixed/locked in
* as you add methods/algorithms you must update this and the query/map routines
*
* this routine is called by the component only
* this makes sure that the mca parameters are set to their initial values and
* perms module does not call this they call the forced_getvalues routine
* instead.
*/
int ompi_coll_tuned_scan_intra_check_forced_init (coll_tuned_force_algorithm_mca_param_indices_t *mca_param_indices)
{
mca_base_var_enum_t*new_enum;
int cnt;
for( cnt = 0; NULL != scan_algorithms[cnt].string; cnt++ );
ompi_coll_tuned_forced_max_algorithms[SCAN] = cnt;
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
"scan_algorithm_count",
"Number of scan algorithms available",
MCA_BASE_VAR_TYPE_INT, NULL, 0,
MCA_BASE_VAR_FLAG_DEFAULT_ONLY,
OPAL_INFO_LVL_5,
MCA_BASE_VAR_SCOPE_CONSTANT,
&ompi_coll_tuned_forced_max_algorithms[SCAN]);
/* MPI_T: This variable should eventually be bound to a communicator */
coll_tuned_scan_forced_algorithm = 0;
(void) mca_base_var_enum_create("coll_tuned_scan_algorithms", scan_algorithms, &new_enum);
mca_param_indices->algorithm_param_index =
mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
"scan_algorithm",
"Which scan algorithm is used. Can be locked down to choice of: 0 ignore, 1 linear, 2 recursive_doubling. "
"Only relevant if coll_tuned_use_dynamic_rules is true.",
MCA_BASE_VAR_TYPE_INT, new_enum, 0, MCA_BASE_VAR_FLAG_SETTABLE,
OPAL_INFO_LVL_5,
MCA_BASE_VAR_SCOPE_ALL,
&coll_tuned_scan_forced_algorithm);
OBJ_RELEASE(new_enum);
if (mca_param_indices->algorithm_param_index < 0) {
return mca_param_indices->algorithm_param_index;
}
return (MPI_SUCCESS);
}
int ompi_coll_tuned_scan_intra_do_this(const void *sbuf, void* rbuf, int count,
struct ompi_datatype_t *dtype,
struct ompi_op_t *op,
struct ompi_communicator_t *comm,
mca_coll_base_module_t *module,
int algorithm)
{
OPAL_OUTPUT((ompi_coll_tuned_stream,"coll:tuned:scan_intra_do_this selected algorithm %d",
algorithm));
switch (algorithm) {
case (0):
case (1): return ompi_coll_base_scan_intra_linear(sbuf, rbuf, count, dtype,
op, comm, module);
case (2): return ompi_coll_base_scan_intra_recursivedoubling(sbuf, rbuf, count, dtype,
op, comm, module);
} /* switch */
OPAL_OUTPUT((ompi_coll_tuned_stream,"coll:tuned:scan_intra_do_this attempt to select algorithm %d when only 0-%d is valid?",
algorithm, ompi_coll_tuned_forced_max_algorithms[SCAN]));
return (MPI_ERR_ARG);
}
|
33015775ee79320e9136780d6d20549ccc7165b9
|
0d7fc78bb265197a9c81fded765f70871e4668e6
|
/src/st.h
|
5efee8bbb7c7af7bb61c42a5b87fbd2b9b5e37b4
|
[
"BSD-3-Clause",
"BSD-2-Clause"
] |
permissive
|
kkos/oniguruma
|
7e10a9d6e8bda7940cf66ee6b30883c3c37804f1
|
1713dfaed25f9ef680ba998e83767487f80cf5ae
|
refs/heads/master
| 2023-09-04T16:44:46.396571
| 2023-08-21T06:22:41
| 2023-08-21T06:22:41
| 38,999,874
| 2,164
| 393
|
NOASSERTION
| 2023-07-11T09:23:42
| 2015-07-13T08:19:17
|
C
|
UTF-8
|
C
| false
| false
| 1,793
|
h
|
st.h
|
/* This is a public domain general purpose hash table package written by Peter Moore @ UCB. */
/* @(#) st.h 5.1 89/12/14 */
#ifndef ST_INCLUDED
#define ST_INCLUDED
#if SIZEOF_VOIDP == SIZEOF_LONG
typedef unsigned long st_data_t;
#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
typedef unsigned long long st_data_t;
#endif
#define ST_DATA_T_DEFINED
typedef struct st_table st_table;
struct st_hash_type {
int (*compare)(st_data_t, st_data_t);
int (*hash)(st_data_t);
};
struct st_table {
struct st_hash_type *type;
int num_bins;
int num_entries;
struct st_table_entry **bins;
};
#define st_is_member(table,key) st_lookup(table,key,(st_data_t *)0)
enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK};
#ifndef _
# define _(args) args
#endif
#ifndef ANYARGS
# ifdef __cplusplus
# define ANYARGS ...
# else
# define ANYARGS
# endif
#endif
st_table *st_init_table _((struct st_hash_type *));
st_table *st_init_table_with_size _((struct st_hash_type *, int));
st_table *st_init_numtable _((void));
st_table *st_init_numtable_with_size _((int));
st_table *st_init_strtable _((void));
st_table *st_init_strtable_with_size _((int));
int st_delete _((st_table *, st_data_t *, st_data_t *));
int st_delete_safe _((st_table *, st_data_t *, st_data_t *, st_data_t));
int st_insert _((st_table *, st_data_t, st_data_t));
int st_lookup _((st_table *, st_data_t, st_data_t *));
int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
void st_add_direct _((st_table *, st_data_t, st_data_t));
void st_free_table _((st_table *));
void st_cleanup_safe _((st_table *, st_data_t));
st_table *st_copy _((st_table *));
#define ST_NUMCMP ((int (*)()) 0)
#define ST_NUMHASH ((int (*)()) -2)
#define st_numcmp ST_NUMCMP
#define st_numhash ST_NUMHASH
#endif /* ST_INCLUDED */
|
45a1eaf66123cf0356e0a99b988b903ab47e79d2
|
d61b532db0d3e08818338cfaac530a1ced1ffe3b
|
/util/ceg/ce_back/as_back/reloc1.c
|
a32fb61e0b21762f9383229d2b1f45268127f066
|
[
"LicenseRef-scancode-other-permissive"
] |
permissive
|
davidgiven/ack
|
61049c7a8e95ff61a77b1edd3c22bb290720e276
|
db5a32c68c4a60ca26a3927a799ea662b5b2b0e5
|
refs/heads/default
| 2023-08-29T07:33:12.771205
| 2023-07-08T20:17:27
| 2023-07-08T20:17:27
| 37,686,316
| 376
| 74
|
NOASSERTION
| 2023-07-08T20:17:28
| 2015-06-18T21:33:42
|
C
|
UTF-8
|
C
| false
| false
| 112
|
c
|
reloc1.c
|
#include "header.h"
reloc1( s, o, r)
char *s;
arith o;
int r;
{
fprint( codefile, RELOC1_FMT, s, (long) o);
}
|
a24ce66b190376213bc0ed57b1517593323ba894
|
de0c523399eaf24544f7c0cbd61fe8d3c69c84f8
|
/frida_mode/src/stats/stats_arm32.c
|
6c72a476051d5ba4bf8cf03a34e5357bf08c224f
|
[
"Apache-2.0"
] |
permissive
|
AFLplusplus/AFLplusplus
|
d45b697b8f2f767d29f4d886a2f9c5bd9ad6c032
|
11a622c63d70c9ca16c9847418b88992139aa892
|
refs/heads/stable
| 2023-09-01T16:24:45.928708
| 2023-08-31T12:51:42
| 2023-08-31T12:51:42
| 189,044,704
| 3,470
| 872
|
Apache-2.0
| 2023-09-13T13:56:14
| 2019-05-28T14:29:06
|
C
|
UTF-8
|
C
| false
| false
| 489
|
c
|
stats_arm32.c
|
#include "frida-gumjs.h"
#include "stats.h"
#include "util.h"
#if defined(__arm__)
void starts_arch_init(void) {
FFATAL("Stats not supported on this architecture");
}
void stats_write_arch(stats_data_t *data) {
UNUSED_PARAMETER(data);
FFATAL("Stats not supported on this architecture");
}
void stats_collect_arch(const cs_insn *instr, gboolean begin) {
UNUSED_PARAMETER(instr);
UNUSED_PARAMETER(begin);
FFATAL("Stats not supported on this architecture");
}
#endif
|
9b46e3eb7088e2ce84035b09d55e4732c01d0215
|
86302885733eb9362ab167ca442bac1b403d191e
|
/overlays/xtensa_nxp_imx_adsp/gdb/gdb/xtensa-config.c
|
d4d9b0c4f4c8f463ffac6173bbf7b98b6f1cefbe
|
[
"Apache-2.0"
] |
permissive
|
zephyrproject-rtos/sdk-ng
|
18dc3499bae5544598eb3fd4c6ab090a2e6dede8
|
7a19887752a621c596ff1931cbd6c9ad3a4a7884
|
refs/heads/main
| 2023-09-03T16:12:27.582902
| 2023-08-31T21:47:08
| 2023-08-31T21:47:20
| 92,793,986
| 140
| 119
|
Apache-2.0
| 2023-09-12T11:14:36
| 2017-05-30T03:13:29
|
C
|
UTF-8
|
C
| false
| false
| 21,775
|
c
|
xtensa-config.c
|
/* Configuration for the Xtensa architecture for GDB, the GNU debugger.
Copyright (c) 2003-2017 Tensilica Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#define XTENSA_CONFIG_VERSION 0x60
#include "defs.h"
#include "xtensa-config.h"
#include "xtensa-tdep.h"
/* Masked registers. */
xtensa_reg_mask_t xtensa_submask0[] = { { 44, 0, 1 } };
const xtensa_mask_t xtensa_mask0 = { 1, xtensa_submask0 };
xtensa_reg_mask_t xtensa_submask1[] = { { 44, 1, 1 } };
const xtensa_mask_t xtensa_mask1 = { 1, xtensa_submask1 };
xtensa_reg_mask_t xtensa_submask2[] = { { 44, 2, 1 } };
const xtensa_mask_t xtensa_mask2 = { 1, xtensa_submask2 };
xtensa_reg_mask_t xtensa_submask3[] = { { 44, 3, 1 } };
const xtensa_mask_t xtensa_mask3 = { 1, xtensa_submask3 };
xtensa_reg_mask_t xtensa_submask4[] = { { 44, 4, 1 } };
const xtensa_mask_t xtensa_mask4 = { 1, xtensa_submask4 };
xtensa_reg_mask_t xtensa_submask5[] = { { 44, 5, 1 } };
const xtensa_mask_t xtensa_mask5 = { 1, xtensa_submask5 };
xtensa_reg_mask_t xtensa_submask6[] = { { 44, 6, 1 } };
const xtensa_mask_t xtensa_mask6 = { 1, xtensa_submask6 };
xtensa_reg_mask_t xtensa_submask7[] = { { 44, 7, 1 } };
const xtensa_mask_t xtensa_mask7 = { 1, xtensa_submask7 };
xtensa_reg_mask_t xtensa_submask8[] = { { 44, 8, 1 } };
const xtensa_mask_t xtensa_mask8 = { 1, xtensa_submask8 };
xtensa_reg_mask_t xtensa_submask9[] = { { 44, 9, 1 } };
const xtensa_mask_t xtensa_mask9 = { 1, xtensa_submask9 };
xtensa_reg_mask_t xtensa_submask10[] = { { 44, 10, 1 } };
const xtensa_mask_t xtensa_mask10 = { 1, xtensa_submask10 };
xtensa_reg_mask_t xtensa_submask11[] = { { 44, 11, 1 } };
const xtensa_mask_t xtensa_mask11 = { 1, xtensa_submask11 };
xtensa_reg_mask_t xtensa_submask12[] = { { 44, 12, 1 } };
const xtensa_mask_t xtensa_mask12 = { 1, xtensa_submask12 };
xtensa_reg_mask_t xtensa_submask13[] = { { 44, 13, 1 } };
const xtensa_mask_t xtensa_mask13 = { 1, xtensa_submask13 };
xtensa_reg_mask_t xtensa_submask14[] = { { 44, 14, 1 } };
const xtensa_mask_t xtensa_mask14 = { 1, xtensa_submask14 };
xtensa_reg_mask_t xtensa_submask15[] = { { 44, 15, 1 } };
const xtensa_mask_t xtensa_mask15 = { 1, xtensa_submask15 };
xtensa_reg_mask_t xtensa_submask16[] = { { 42, 0, 4 } };
const xtensa_mask_t xtensa_mask16 = { 1, xtensa_submask16 };
xtensa_reg_mask_t xtensa_submask17[] = { { 42, 5, 1 } };
const xtensa_mask_t xtensa_mask17 = { 1, xtensa_submask17 };
xtensa_reg_mask_t xtensa_submask18[] = { { 42, 18, 1 } };
const xtensa_mask_t xtensa_mask18 = { 1, xtensa_submask18 };
xtensa_reg_mask_t xtensa_submask19[] = { { 42, 4, 1 } };
const xtensa_mask_t xtensa_mask19 = { 1, xtensa_submask19 };
xtensa_reg_mask_t xtensa_submask20[] = { { 42, 16, 2 } };
const xtensa_mask_t xtensa_mask20 = { 1, xtensa_submask20 };
xtensa_reg_mask_t xtensa_submask21[] = { { 42, 8, 4 } };
const xtensa_mask_t xtensa_mask21 = { 1, xtensa_submask21 };
xtensa_reg_mask_t xtensa_submask22[] = { { 112, 8, 4 } };
const xtensa_mask_t xtensa_mask22 = { 1, xtensa_submask22 };
xtensa_reg_mask_t xtensa_submask23[] = { { 47, 7, 1 } };
const xtensa_mask_t xtensa_mask23 = { 1, xtensa_submask23 };
xtensa_reg_mask_t xtensa_submask24[] = { { 47, 0, 7 }, { 47, 8, 7 } };
const xtensa_mask_t xtensa_mask24 = { 2, xtensa_submask24 };
xtensa_reg_mask_t xtensa_submask25[] = { { 50, 28, 1 } };
const xtensa_mask_t xtensa_mask25 = { 1, xtensa_submask25 };
xtensa_reg_mask_t xtensa_submask26[] = { { 49, 0, 4 } };
const xtensa_mask_t xtensa_mask26 = { 1, xtensa_submask26 };
xtensa_reg_mask_t xtensa_submask27[] = { { 49, 4, 4 } };
const xtensa_mask_t xtensa_mask27 = { 1, xtensa_submask27 };
xtensa_reg_mask_t xtensa_submask28[] = { { 49, 12, 4 } };
const xtensa_mask_t xtensa_mask28 = { 1, xtensa_submask28 };
xtensa_reg_mask_t xtensa_submask29[] = { { 49, 8, 4 } };
const xtensa_mask_t xtensa_mask29 = { 1, xtensa_submask29 };
xtensa_reg_mask_t xtensa_submask30[] = { { 50, 0, 27 } };
const xtensa_mask_t xtensa_mask30 = { 1, xtensa_submask30 };
xtensa_reg_mask_t xtensa_submask31[] = { { 50, 27, 1 } };
const xtensa_mask_t xtensa_mask31 = { 1, xtensa_submask31 };
xtensa_reg_mask_t xtensa_submask32[] = { { 79, 5, 2 } };
const xtensa_mask_t xtensa_mask32 = { 1, xtensa_submask32 };
xtensa_reg_mask_t xtensa_submask33[] = { { 79, 4, 1 } };
const xtensa_mask_t xtensa_mask33 = { 1, xtensa_submask33 };
xtensa_reg_mask_t xtensa_submask34[] = { { 79, 3, 1 } };
const xtensa_mask_t xtensa_mask34 = { 1, xtensa_submask34 };
xtensa_reg_mask_t xtensa_submask35[] = { { 79, 2, 1 } };
const xtensa_mask_t xtensa_mask35 = { 1, xtensa_submask35 };
xtensa_reg_mask_t xtensa_submask36[] = { { 79, 1, 1 } };
const xtensa_mask_t xtensa_mask36 = { 1, xtensa_submask36 };
xtensa_reg_mask_t xtensa_submask37[] = { { 79, 0, 1 } };
const xtensa_mask_t xtensa_mask37 = { 1, xtensa_submask37 };
/* Register map. */
static xtensa_register_t rmap[] =
{
/* idx ofs bi sz al targno flags cp typ group name */
XTREG( 0, 0,32, 4, 4,0x0020,0x0006,-2, 9,0x0100,pc, 0,0,0,0,0,0)
XTREG( 1, 4,32, 4, 4,0x0100,0x0006,-2, 1,0x0002,ar0, 0,0,0,0,0,0)
XTREG( 2, 8,32, 4, 4,0x0101,0x0006,-2, 1,0x0002,ar1, 0,0,0,0,0,0)
XTREG( 3, 12,32, 4, 4,0x0102,0x0006,-2, 1,0x0002,ar2, 0,0,0,0,0,0)
XTREG( 4, 16,32, 4, 4,0x0103,0x0006,-2, 1,0x0002,ar3, 0,0,0,0,0,0)
XTREG( 5, 20,32, 4, 4,0x0104,0x0006,-2, 1,0x0002,ar4, 0,0,0,0,0,0)
XTREG( 6, 24,32, 4, 4,0x0105,0x0006,-2, 1,0x0002,ar5, 0,0,0,0,0,0)
XTREG( 7, 28,32, 4, 4,0x0106,0x0006,-2, 1,0x0002,ar6, 0,0,0,0,0,0)
XTREG( 8, 32,32, 4, 4,0x0107,0x0006,-2, 1,0x0002,ar7, 0,0,0,0,0,0)
XTREG( 9, 36,32, 4, 4,0x0108,0x0006,-2, 1,0x0002,ar8, 0,0,0,0,0,0)
XTREG( 10, 40,32, 4, 4,0x0109,0x0006,-2, 1,0x0002,ar9, 0,0,0,0,0,0)
XTREG( 11, 44,32, 4, 4,0x010a,0x0006,-2, 1,0x0002,ar10, 0,0,0,0,0,0)
XTREG( 12, 48,32, 4, 4,0x010b,0x0006,-2, 1,0x0002,ar11, 0,0,0,0,0,0)
XTREG( 13, 52,32, 4, 4,0x010c,0x0006,-2, 1,0x0002,ar12, 0,0,0,0,0,0)
XTREG( 14, 56,32, 4, 4,0x010d,0x0006,-2, 1,0x0002,ar13, 0,0,0,0,0,0)
XTREG( 15, 60,32, 4, 4,0x010e,0x0006,-2, 1,0x0002,ar14, 0,0,0,0,0,0)
XTREG( 16, 64,32, 4, 4,0x010f,0x0006,-2, 1,0x0002,ar15, 0,0,0,0,0,0)
XTREG( 17, 68,32, 4, 4,0x0110,0x0006,-2, 1,0x0002,ar16, 0,0,0,0,0,0)
XTREG( 18, 72,32, 4, 4,0x0111,0x0006,-2, 1,0x0002,ar17, 0,0,0,0,0,0)
XTREG( 19, 76,32, 4, 4,0x0112,0x0006,-2, 1,0x0002,ar18, 0,0,0,0,0,0)
XTREG( 20, 80,32, 4, 4,0x0113,0x0006,-2, 1,0x0002,ar19, 0,0,0,0,0,0)
XTREG( 21, 84,32, 4, 4,0x0114,0x0006,-2, 1,0x0002,ar20, 0,0,0,0,0,0)
XTREG( 22, 88,32, 4, 4,0x0115,0x0006,-2, 1,0x0002,ar21, 0,0,0,0,0,0)
XTREG( 23, 92,32, 4, 4,0x0116,0x0006,-2, 1,0x0002,ar22, 0,0,0,0,0,0)
XTREG( 24, 96,32, 4, 4,0x0117,0x0006,-2, 1,0x0002,ar23, 0,0,0,0,0,0)
XTREG( 25,100,32, 4, 4,0x0118,0x0006,-2, 1,0x0002,ar24, 0,0,0,0,0,0)
XTREG( 26,104,32, 4, 4,0x0119,0x0006,-2, 1,0x0002,ar25, 0,0,0,0,0,0)
XTREG( 27,108,32, 4, 4,0x011a,0x0006,-2, 1,0x0002,ar26, 0,0,0,0,0,0)
XTREG( 28,112,32, 4, 4,0x011b,0x0006,-2, 1,0x0002,ar27, 0,0,0,0,0,0)
XTREG( 29,116,32, 4, 4,0x011c,0x0006,-2, 1,0x0002,ar28, 0,0,0,0,0,0)
XTREG( 30,120,32, 4, 4,0x011d,0x0006,-2, 1,0x0002,ar29, 0,0,0,0,0,0)
XTREG( 31,124,32, 4, 4,0x011e,0x0006,-2, 1,0x0002,ar30, 0,0,0,0,0,0)
XTREG( 32,128,32, 4, 4,0x011f,0x0006,-2, 1,0x0002,ar31, 0,0,0,0,0,0)
XTREG( 33,132,32, 4, 4,0x0200,0x0006,-2, 2,0x1100,lbeg, 0,0,0,0,0,0)
XTREG( 34,136,32, 4, 4,0x0201,0x0006,-2, 2,0x1100,lend, 0,0,0,0,0,0)
XTREG( 35,140,32, 4, 4,0x0202,0x0006,-2, 2,0x1100,lcount, 0,0,0,0,0,0)
XTREG( 36,144, 6, 4, 4,0x0203,0x0006,-2, 2,0x1100,sar, 0,0,0,0,0,0)
XTREG( 37,148,20, 4, 4,0x0228,0x0006,-2, 2,0x1100,prefctl, 0,0,0,0,0,0)
XTREG( 38,152, 3, 4, 4,0x0248,0x0006,-2, 2,0x1002,windowbase, 0,0,0,0,0,0)
XTREG( 39,156, 8, 4, 4,0x0249,0x0006,-2, 2,0x1002,windowstart, 0,0,0,0,0,0)
XTREG( 40,160,32, 4, 4,0x02b0,0x0002,-2, 2,0x1000,configid0, 0,0,0,0,0,0)
XTREG( 41,164,32, 4, 4,0x02d0,0x0002,-2, 2,0x1000,configid1, 0,0,0,0,0,0)
XTREG( 42,168,19, 4, 4,0x02e6,0x0006,-2, 2,0x1100,ps, 0,0,0,0,0,0)
XTREG( 43,172,32, 4, 4,0x03e7,0x0006,-2, 3,0x0110,threadptr, 0,0,0,0,0,0)
XTREG( 44,176,16, 4, 4,0x0204,0x0006,-1, 2,0x1100,br, 0,0,0,0,0,0)
XTREG( 45,180,32, 4, 4,0x020c,0x0006,-1, 2,0x1100,scompare1, 0,0,0,0,0,0)
XTREG( 46,184,32, 4, 4,0x03e6,0x000e,-1, 3,0x0110,expstate, 0,0,0,0,0,0)
XTREG( 47,188,15, 4, 4,0x03f0,0x0006, 1, 3,0x0100,ae_ovf_sar, 0,0,0,0,0,0)
XTREG( 48,192,32, 4, 4,0x03f1,0x0006, 1, 3,0x0110,ae_bithead, 0,0,0,0,0,0)
XTREG( 49,196,16, 4, 4,0x03f2,0x0006, 1, 3,0x0100,ae_ts_fts_bu_bp,0,0,0,0,0,0)
XTREG( 50,200,29, 4, 4,0x03f3,0x0006, 1, 3,0x0100,ae_cw_sd_no, 0,0,0,0,0,0)
XTREG( 51,204,32, 4, 4,0x03f6,0x0006, 1, 3,0x0110,ae_cbegin0, 0,0,0,0,0,0)
XTREG( 52,208,32, 4, 4,0x03f7,0x0006, 1, 3,0x0110,ae_cend0, 0,0,0,0,0,0)
XTREG( 53,212,32, 4, 4,0x03f8,0x0006, 1, 3,0x0110,ae_cbegin1, 0,0,0,0,0,0)
XTREG( 54,216,32, 4, 4,0x03f9,0x0006, 1, 3,0x0110,ae_cend1, 0,0,0,0,0,0)
XTREG( 55,220,64, 8, 8,0x1000,0x0006, 1, 4,0x0101,aed0,
"03:04:04:01","03:04:04:cf",0,0,0,0)
XTREG( 56,228,64, 8, 8,0x1001,0x0006, 1, 4,0x0101,aed1,
"03:04:14:01","03:04:14:cf",0,0,0,0)
XTREG( 57,236,64, 8, 8,0x1002,0x0006, 1, 4,0x0101,aed2,
"03:04:24:01","03:04:24:cf",0,0,0,0)
XTREG( 58,244,64, 8, 8,0x1003,0x0006, 1, 4,0x0101,aed3,
"03:04:34:01","03:04:34:cf",0,0,0,0)
XTREG( 59,252,64, 8, 8,0x1004,0x0006, 1, 4,0x0101,aed4,
"03:04:44:01","03:04:44:cf",0,0,0,0)
XTREG( 60,260,64, 8, 8,0x1005,0x0006, 1, 4,0x0101,aed5,
"03:04:54:01","03:04:54:cf",0,0,0,0)
XTREG( 61,268,64, 8, 8,0x1006,0x0006, 1, 4,0x0101,aed6,
"03:04:64:01","03:04:64:cf",0,0,0,0)
XTREG( 62,276,64, 8, 8,0x1007,0x0006, 1, 4,0x0101,aed7,
"03:04:74:01","03:04:74:cf",0,0,0,0)
XTREG( 63,284,64, 8, 8,0x1008,0x0006, 1, 4,0x0101,aed8,
"03:04:84:01","03:04:84:cf",0,0,0,0)
XTREG( 64,292,64, 8, 8,0x1009,0x0006, 1, 4,0x0101,aed9,
"03:04:94:01","03:04:94:cf",0,0,0,0)
XTREG( 65,300,64, 8, 8,0x100a,0x0006, 1, 4,0x0101,aed10,
"03:04:a4:01","03:04:a4:cf",0,0,0,0)
XTREG( 66,308,64, 8, 8,0x100b,0x0006, 1, 4,0x0101,aed11,
"03:04:b4:01","03:04:b4:cf",0,0,0,0)
XTREG( 67,316,64, 8, 8,0x100c,0x0006, 1, 4,0x0101,aed12,
"03:04:c4:01","03:04:c4:cf",0,0,0,0)
XTREG( 68,324,64, 8, 8,0x100d,0x0006, 1, 4,0x0101,aed13,
"03:04:d4:01","03:04:d4:cf",0,0,0,0)
XTREG( 69,332,64, 8, 8,0x100e,0x0006, 1, 4,0x0101,aed14,
"03:04:e4:01","03:04:e4:cf",0,0,0,0)
XTREG( 70,340,64, 8, 8,0x100f,0x0006, 1, 4,0x0101,aed15,
"03:04:f4:01","03:04:f4:cf",0,0,0,0)
XTREG( 71,348,64, 8, 8,0x1010,0x0006, 1, 4,0x0101,u0,
"0b:9f:24:70:16:3d:00:6c:a4:c5:77:39","0b:9f:24:70:16:2d:00:6c:a4:c5:77:39",0,0,0,0)
XTREG( 72,356,64, 8, 8,0x1011,0x0006, 1, 4,0x0101,u1,
"0b:9f:64:70:16:3d:00:6c:a4:c5:77:39","0b:9f:64:70:16:2d:00:6c:a4:c5:77:39",0,0,0,0)
XTREG( 73,364,64, 8, 8,0x1012,0x0006, 1, 4,0x0101,u2,
"0b:9f:a4:70:16:3d:00:6c:a4:c5:77:39","0b:9f:a4:70:16:2d:00:6c:a4:c5:77:39",0,0,0,0)
XTREG( 74,372,64, 8, 8,0x1013,0x0006, 1, 4,0x0101,u3,
"0b:9f:e4:70:16:3d:00:6c:a4:c5:77:39","0b:9f:e4:70:16:2d:00:6c:a4:c5:77:39",0,0,0,0)
XTREG( 75,380, 8, 1, 1,0x1014,0x0006, 1, 4,0x0101,aep0,
"03:52:64:01:06:5e:f0:06:01:e6:fc:03:52:44:00:03:52:24:01","03:52:64:01:03:52:04:00:06:5e:f4:06:01:e6:fc:03:52:24:01",0,0,0,0)
XTREG( 76,381, 8, 1, 1,0x1015,0x0006, 1, 4,0x0101,aep1,
"03:52:64:01:06:5e:f1:06:01:e6:fc:03:52:44:00:03:52:24:01","03:52:64:01:03:52:04:00:06:5e:f5:06:01:e6:fc:03:52:24:01",0,0,0,0)
XTREG( 77,382, 8, 1, 1,0x1016,0x0006, 1, 4,0x0101,aep2,
"03:52:64:01:06:5e:f2:06:01:e6:fc:03:52:44:00:03:52:24:01","03:52:64:01:03:52:04:00:06:5e:f6:06:01:e6:fc:03:52:24:01",0,0,0,0)
XTREG( 78,383, 8, 1, 1,0x1017,0x0006, 1, 4,0x0101,aep3,
"03:52:64:01:06:5e:f3:06:01:e6:fc:03:52:44:00:03:52:24:01","03:52:64:01:03:52:04:00:06:5e:f7:06:01:e6:fc:03:52:24:01",0,0,0,0)
XTREG( 79,384, 7, 4, 4,0x1019,0x0006, 1, 3,0x0100,fcr_fsr,
"03:14:04:01:0b:1f:15:70:06:3d:e3:6d:c4:c7:7f:39:03:04:04:01:03:14:04:cf","03:14:04:01:03:04:04:cf:0b:1f:15:70:06:1d:e3:6d:c4:c7:7f:39:03:14:04:cf",0,0,0,0)
XTREG( 80,388,32, 4, 4,0x0259,0x000d,-2, 2,0x1000,mmid, 0,0,0,0,0,0)
XTREG( 81,392, 2, 4, 4,0x0260,0x0007,-2, 2,0x1000,ibreakenable,0,0,0,0,0,0)
XTREG( 82,396, 6, 4, 4,0x0263,0x0007,-2, 2,0x1000,atomctl, 0,0,0,0,0,0)
XTREG( 83,400,32, 4, 4,0x0268,0x0007,-2, 2,0x1000,ddr, 0,0,0,0,0,0)
XTREG( 84,404,32, 4, 4,0x0280,0x0007,-2, 2,0x1000,ibreaka0, 0,0,0,0,0,0)
XTREG( 85,408,32, 4, 4,0x0281,0x0007,-2, 2,0x1000,ibreaka1, 0,0,0,0,0,0)
XTREG( 86,412,32, 4, 4,0x0290,0x0007,-2, 2,0x1000,dbreaka0, 0,0,0,0,0,0)
XTREG( 87,416,32, 4, 4,0x0291,0x0007,-2, 2,0x1000,dbreaka1, 0,0,0,0,0,0)
XTREG( 88,420,32, 4, 4,0x02a0,0x0007,-2, 2,0x1000,dbreakc0, 0,0,0,0,0,0)
XTREG( 89,424,32, 4, 4,0x02a1,0x0007,-2, 2,0x1000,dbreakc1, 0,0,0,0,0,0)
XTREG( 90,428,32, 4, 4,0x02b1,0x0007,-2, 2,0x1000,epc1, 0,0,0,0,0,0)
XTREG( 91,432,32, 4, 4,0x02b2,0x0007,-2, 2,0x1000,epc2, 0,0,0,0,0,0)
XTREG( 92,436,32, 4, 4,0x02b3,0x0007,-2, 2,0x1000,epc3, 0,0,0,0,0,0)
XTREG( 93,440,32, 4, 4,0x02b4,0x0007,-2, 2,0x1000,epc4, 0,0,0,0,0,0)
XTREG( 94,444,32, 4, 4,0x02b5,0x0007,-2, 2,0x1000,epc5, 0,0,0,0,0,0)
XTREG( 95,448,32, 4, 4,0x02c0,0x0007,-2, 2,0x1000,depc, 0,0,0,0,0,0)
XTREG( 96,452,19, 4, 4,0x02c2,0x0007,-2, 2,0x1000,eps2, 0,0,0,0,0,0)
XTREG( 97,456,19, 4, 4,0x02c3,0x0007,-2, 2,0x1000,eps3, 0,0,0,0,0,0)
XTREG( 98,460,19, 4, 4,0x02c4,0x0007,-2, 2,0x1000,eps4, 0,0,0,0,0,0)
XTREG( 99,464,19, 4, 4,0x02c5,0x0007,-2, 2,0x1000,eps5, 0,0,0,0,0,0)
XTREG(100,468,32, 4, 4,0x02d1,0x0007,-2, 2,0x1000,excsave1, 0,0,0,0,0,0)
XTREG(101,472,32, 4, 4,0x02d2,0x0007,-2, 2,0x1000,excsave2, 0,0,0,0,0,0)
XTREG(102,476,32, 4, 4,0x02d3,0x0007,-2, 2,0x1000,excsave3, 0,0,0,0,0,0)
XTREG(103,480,32, 4, 4,0x02d4,0x0007,-2, 2,0x1000,excsave4, 0,0,0,0,0,0)
XTREG(104,484,32, 4, 4,0x02d5,0x0007,-2, 2,0x1000,excsave5, 0,0,0,0,0,0)
XTREG(105,488, 2, 4, 4,0x02e0,0x0007,-2, 2,0x1000,cpenable, 0,0,0,0,0,0)
XTREG(106,492,32, 4, 4,0x02e2,0x000b,-2, 2,0x1000,interrupt, 0,0,0,0,0,0)
XTREG(107,496,32, 4, 4,0x02e2,0x000d,-2, 2,0x1000,intset, 0,0,0,0,0,0)
XTREG(108,500,32, 4, 4,0x02e3,0x000d,-2, 2,0x1000,intclear, 0,0,0,0,0,0)
XTREG(109,504,32, 4, 4,0x02e4,0x0007,-2, 2,0x1000,intenable, 0,0,0,0,0,0)
XTREG(110,508,32, 4, 4,0x02e7,0x0007,-2, 2,0x1000,vecbase, 0,0,0,0,0,0)
XTREG(111,512, 6, 4, 4,0x02e8,0x0007,-2, 2,0x1000,exccause, 0,0,0,0,0,0)
XTREG(112,516,12, 4, 4,0x02e9,0x0003,-2, 2,0x1000,debugcause, 0,0,0,0,0,0)
XTREG(113,520,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
XTREG(114,524,32, 4, 4,0x02eb,0x0003,-2, 2,0x1000,prid, 0,0,0,0,0,0)
XTREG(115,528,32, 4, 4,0x02ec,0x000f,-2, 2,0x1000,icount, 0,0,0,0,0,0)
XTREG(116,532, 4, 4, 4,0x02ed,0x0007,-2, 2,0x1000,icountlevel, 0,0,0,0,0,0)
XTREG(117,536,32, 4, 4,0x02ee,0x0007,-2, 2,0x1000,excvaddr, 0,0,0,0,0,0)
XTREG(118,540,32, 4, 4,0x02f0,0x000f,-2, 2,0x1000,ccompare0, 0,0,0,0,0,0)
XTREG(119,544,32, 4, 4,0x02f1,0x000f,-2, 2,0x1000,ccompare1, 0,0,0,0,0,0)
XTREG(120,548,32, 4, 4,0x02f4,0x0007,-2, 2,0x1000,misc0, 0,0,0,0,0,0)
XTREG(121,552,32, 4, 4,0x02f5,0x0007,-2, 2,0x1000,misc1, 0,0,0,0,0,0)
XTREG(122,556,32, 4, 4,0x0000,0x0006,-2, 8,0x0100,a0, 0,0,0,0,0,0)
XTREG(123,560,32, 4, 4,0x0001,0x0006,-2, 8,0x0100,a1, 0,0,0,0,0,0)
XTREG(124,564,32, 4, 4,0x0002,0x0006,-2, 8,0x0100,a2, 0,0,0,0,0,0)
XTREG(125,568,32, 4, 4,0x0003,0x0006,-2, 8,0x0100,a3, 0,0,0,0,0,0)
XTREG(126,572,32, 4, 4,0x0004,0x0006,-2, 8,0x0100,a4, 0,0,0,0,0,0)
XTREG(127,576,32, 4, 4,0x0005,0x0006,-2, 8,0x0100,a5, 0,0,0,0,0,0)
XTREG(128,580,32, 4, 4,0x0006,0x0006,-2, 8,0x0100,a6, 0,0,0,0,0,0)
XTREG(129,584,32, 4, 4,0x0007,0x0006,-2, 8,0x0100,a7, 0,0,0,0,0,0)
XTREG(130,588,32, 4, 4,0x0008,0x0006,-2, 8,0x0100,a8, 0,0,0,0,0,0)
XTREG(131,592,32, 4, 4,0x0009,0x0006,-2, 8,0x0100,a9, 0,0,0,0,0,0)
XTREG(132,596,32, 4, 4,0x000a,0x0006,-2, 8,0x0100,a10, 0,0,0,0,0,0)
XTREG(133,600,32, 4, 4,0x000b,0x0006,-2, 8,0x0100,a11, 0,0,0,0,0,0)
XTREG(134,604,32, 4, 4,0x000c,0x0006,-2, 8,0x0100,a12, 0,0,0,0,0,0)
XTREG(135,608,32, 4, 4,0x000d,0x0006,-2, 8,0x0100,a13, 0,0,0,0,0,0)
XTREG(136,612,32, 4, 4,0x000e,0x0006,-2, 8,0x0100,a14, 0,0,0,0,0,0)
XTREG(137,616,32, 4, 4,0x000f,0x0006,-2, 8,0x0100,a15, 0,0,0,0,0,0)
XTREG(138,620, 1, 1, 1,0x0010,0x0006,-2, 6,0x1010,b0,
0,0,&xtensa_mask0,0,0,0)
XTREG(139,621, 1, 1, 1,0x0011,0x0006,-2, 6,0x1010,b1,
0,0,&xtensa_mask1,0,0,0)
XTREG(140,622, 1, 1, 1,0x0012,0x0006,-2, 6,0x1010,b2,
0,0,&xtensa_mask2,0,0,0)
XTREG(141,623, 1, 1, 1,0x0013,0x0006,-2, 6,0x1010,b3,
0,0,&xtensa_mask3,0,0,0)
XTREG(142,624, 1, 1, 1,0x0014,0x0006,-2, 6,0x1010,b4,
0,0,&xtensa_mask4,0,0,0)
XTREG(143,625, 1, 1, 1,0x0015,0x0006,-2, 6,0x1010,b5,
0,0,&xtensa_mask5,0,0,0)
XTREG(144,626, 1, 1, 1,0x0016,0x0006,-2, 6,0x1010,b6,
0,0,&xtensa_mask6,0,0,0)
XTREG(145,627, 1, 1, 1,0x0017,0x0006,-2, 6,0x1010,b7,
0,0,&xtensa_mask7,0,0,0)
XTREG(146,628, 1, 1, 1,0x0018,0x0006,-2, 6,0x1010,b8,
0,0,&xtensa_mask8,0,0,0)
XTREG(147,629, 1, 1, 1,0x0019,0x0006,-2, 6,0x1010,b9,
0,0,&xtensa_mask9,0,0,0)
XTREG(148,630, 1, 1, 1,0x001a,0x0006,-2, 6,0x1010,b10,
0,0,&xtensa_mask10,0,0,0)
XTREG(149,631, 1, 1, 1,0x001b,0x0006,-2, 6,0x1010,b11,
0,0,&xtensa_mask11,0,0,0)
XTREG(150,632, 1, 1, 1,0x001c,0x0006,-2, 6,0x1010,b12,
0,0,&xtensa_mask12,0,0,0)
XTREG(151,633, 1, 1, 1,0x001d,0x0006,-2, 6,0x1010,b13,
0,0,&xtensa_mask13,0,0,0)
XTREG(152,634, 1, 1, 1,0x001e,0x0006,-2, 6,0x1010,b14,
0,0,&xtensa_mask14,0,0,0)
XTREG(153,635, 1, 1, 1,0x001f,0x0006,-2, 6,0x1010,b15,
0,0,&xtensa_mask15,0,0,0)
XTREG(154,636, 4, 4, 4,0x2006,0x0006,-2, 6,0x1010,psintlevel,
0,0,&xtensa_mask16,0,0,0)
XTREG(155,640, 1, 4, 4,0x2007,0x0006,-2, 6,0x1010,psum,
0,0,&xtensa_mask17,0,0,0)
XTREG(156,644, 1, 4, 4,0x2008,0x0006,-2, 6,0x1010,pswoe,
0,0,&xtensa_mask18,0,0,0)
XTREG(157,648, 1, 4, 4,0x2009,0x0006,-2, 6,0x1010,psexcm,
0,0,&xtensa_mask19,0,0,0)
XTREG(158,652, 2, 4, 4,0x200a,0x0006,-2, 6,0x1010,pscallinc,
0,0,&xtensa_mask20,0,0,0)
XTREG(159,656, 4, 4, 4,0x200b,0x0006,-2, 6,0x1010,psowb,
0,0,&xtensa_mask21,0,0,0)
XTREG(160,660, 4, 4, 4,0x2010,0x0006,-2, 6,0x1010,dbnum,
0,0,&xtensa_mask22,0,0,0)
XTREG(161,664, 1, 4, 4,0x2013,0x0006, 1, 5,0x1010,ae_overflow,
0,0,&xtensa_mask23,0,0,0)
XTREG(162,668,14, 4, 4,0x2014,0x0006, 1, 5,0x1010,ae_sar,
0,0,&xtensa_mask24,0,0,0)
XTREG(163,672, 1, 4, 4,0x2015,0x0006, 1, 5,0x1010,ae_cwrap,
0,0,&xtensa_mask25,0,0,0)
XTREG(164,676, 4, 4, 4,0x2016,0x0006, 1, 5,0x1010,ae_bitptr,
0,0,&xtensa_mask26,0,0,0)
XTREG(165,680, 4, 4, 4,0x2017,0x0006, 1, 5,0x1010,ae_bitsused,
0,0,&xtensa_mask27,0,0,0)
XTREG(166,684, 4, 4, 4,0x2018,0x0006, 1, 5,0x1010,ae_tablesize,
0,0,&xtensa_mask28,0,0,0)
XTREG(167,688, 4, 4, 4,0x2019,0x0006, 1, 5,0x1010,ae_first_ts,
0,0,&xtensa_mask29,0,0,0)
XTREG(168,692,27, 4, 4,0x201a,0x0006, 1, 5,0x1010,ae_nextoffset,
0,0,&xtensa_mask30,0,0,0)
XTREG(169,696, 1, 4, 4,0x201b,0x0006, 1, 5,0x1010,ae_searchdone,
0,0,&xtensa_mask31,0,0,0)
XTREG(170,700, 2, 4, 4,0x201c,0x0006, 1, 6,0x1010,roundmode,
0,0,&xtensa_mask32,0,0,0)
XTREG(171,704, 1, 4, 4,0x201d,0x0006, 1, 6,0x1010,invalidflag,
0,0,&xtensa_mask33,0,0,0)
XTREG(172,708, 1, 4, 4,0x201e,0x0006, 1, 6,0x1010,divzeroflag,
0,0,&xtensa_mask34,0,0,0)
XTREG(173,712, 1, 4, 4,0x201f,0x0006, 1, 6,0x1010,overflowflag,
0,0,&xtensa_mask35,0,0,0)
XTREG(174,716, 1, 4, 4,0x2020,0x0006, 1, 6,0x1010,underflowflag,
0,0,&xtensa_mask36,0,0,0)
XTREG_END
};
xtensa_gdbarch_tdep xtensa_tdep (rmap);
|
72c0f600298efc9ef141c745fb2f328d18bf7f82
|
8cfa5dbe99dd5b2c8913e35a41395c64b1ea2740
|
/algorithms/data-structures/TowerOfHanoi.c
|
49a8357182b78ab739a92c906c8db9dc914d404d
|
[
"MIT"
] |
permissive
|
AllAlgorithms/c
|
cf925338018a94d4952203181ba6aab0ea921bef
|
4e6e311a95d5ce64b953faf83edca351813d262c
|
refs/heads/master
| 2023-08-30T12:51:56.967619
| 2022-06-17T02:50:03
| 2022-06-17T02:50:03
| 149,231,271
| 1,536
| 630
|
MIT
| 2023-08-27T00:09:50
| 2018-09-18T04:57:57
|
C
|
UTF-8
|
C
| false
| false
| 625
|
c
|
TowerOfHanoi.c
|
#include <stdio.h>
void towers(int, char, char, char);
int main()
{
int num;
printf("Enter the number of disks : ");
scanf("%d", &num);
printf("The sequence of moves involved in the Tower of Hanoi are :\n");
towers(num, 'A', 'C', 'B');
return 0;
}
void towers(int num, char frompeg, char topeg, char auxpeg)
{
if (num == 1)
{
printf("\n Move disk 1 from peg %c to peg %c", frompeg, topeg);
return;
}
towers(num - 1, frompeg, auxpeg, topeg);
printf("\n Move disk %d from peg %c to peg %c", num, frompeg, topeg);
towers(num - 1, auxpeg, topeg, frompeg);
}
|
47cc3e78baeea623adb964cd3752be09b52b5d1a
|
a85c048a4ae820beb2bc265d1845e23842fc8c2a
|
/data_collection/common/dr_utility.h
|
63ac3376a61743adfddf0f1baf4779acc6ca306b
|
[
"MIT"
] |
permissive
|
ithemal/Ithemal
|
e549856538c7b1f2c50d0f40b51b9bb97baf6379
|
b3c39a8942b8b3d92c0fa81815b34fa9b6cbe683
|
refs/heads/master
| 2021-12-10T11:50:00.058462
| 2021-11-30T16:18:30
| 2021-11-30T16:18:30
| 151,625,735
| 124
| 33
|
MIT
| 2020-06-26T15:11:01
| 2018-10-04T19:33:52
|
Python
|
UTF-8
|
C
| false
| false
| 621
|
h
|
dr_utility.h
|
#ifndef COMMON_DRUTILITY
#define COMMON_DRUTILITY
#include "common.h"
#include "dr_api.h"
#include "mmap.h"
#include <stdint.h>
int get_perthread_filename(void * drcontext, char * filename, size_t max_size);
uint32_t filter_based_on_module(const char * module_name);
void create_memory_map_file(mmap_file_t * file_map, size_t size);
void close_memory_map_file(mmap_file_t * file_map, size_t size);
void create_raw_file(void * drcontext, const char * folder, const char * type, mmap_file_t * file);
void write_to_file(mmap_file_t * file, void * values, uint32_t size);
void close_raw_file(mmap_file_t * file);
#endif
|
c1161cdd12b0e8d12c971d508886adf4f4938def
|
55540f3e86f1d5d86ef6b5d295a63518e274efe3
|
/toolchain/riscv/Linux/lib/gcc/riscv64-unknown-elf/10.2.0/plugin/include/tree-into-ssa.h
|
5160c9979907f162f65a67718a8ae0d9f4d5ab6c
|
[
"Apache-2.0"
] |
permissive
|
bouffalolab/bl_iot_sdk
|
bc5eaf036b70f8c65dd389439062b169f8d09daa
|
b90664de0bd4c1897a9f1f5d9e360a9631d38b34
|
refs/heads/master
| 2023-08-31T03:38:03.369853
| 2023-08-16T08:50:33
| 2023-08-18T09:13:27
| 307,347,250
| 244
| 101
|
Apache-2.0
| 2023-08-28T06:29:02
| 2020-10-26T11:16:30
|
C
|
UTF-8
|
C
| false
| false
| 1,967
|
h
|
tree-into-ssa.h
|
/* Header file for normal form into SSA.
Copyright (C) 2013-2020 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
#ifndef GCC_TREE_INTO_SSA_H
#define GCC_TREE_INTO_SSA_H
extern tree get_current_def (tree);
extern void set_current_def (tree, tree);
void delete_update_ssa (void);
tree create_new_def_for (tree, gimple *, def_operand_p);
void mark_virtual_operands_for_renaming (struct function *);
void mark_virtual_operand_for_renaming (tree);
void mark_virtual_phi_result_for_renaming (gphi *);
bool need_ssa_update_p (struct function *);
bool name_registered_for_update_p (tree);
void release_ssa_name_after_update_ssa (tree);
void update_ssa (unsigned);
/* Prototypes for debugging functions. */
extern void debug_decl_set (bitmap set);
extern void dump_defs_stack (FILE *, int);
extern void debug_defs_stack (int);
extern void dump_currdefs (FILE *);
extern void debug_currdefs (void);
extern void dump_tree_ssa (FILE *);
extern void debug_tree_ssa (void);
extern void dump_tree_ssa_stats (FILE *);
extern void debug_tree_ssa_stats (void);
extern void dump_var_infos (FILE *);
extern void debug_var_infos (void);
extern void dump_names_replaced_by (FILE *, tree);
extern void debug_names_replaced_by (tree);
extern void dump_update_ssa (FILE *);
extern void debug_update_ssa (void);
extern bitmap names_to_release;
#endif /* GCC_TREE_INTO_SSA_H */
|
c0d7c195956ffb775365c9ad5a3bc446eaec9742
|
52c8ed39b32ccc7c0673278c1adea3638797c9ff
|
/src/include/crc32.h
|
ce85d995bfb413e8b5e385c86f30c823497a38de
|
[
"MIT"
] |
permissive
|
xboot/xboot
|
0cab7b440b612aa0a4c366025598a53a7ec3adf1
|
6d6b93947b7fcb8c3924fedb0715c23877eedd5e
|
refs/heads/master
| 2023-08-20T05:56:25.149388
| 2023-07-12T07:38:29
| 2023-07-12T07:38:29
| 471,539
| 765
| 296
|
MIT
| 2023-05-25T09:39:01
| 2010-01-14T08:25:12
|
C
|
UTF-8
|
C
| false
| false
| 221
|
h
|
crc32.h
|
#ifndef __CRC32_H__
#define __CRC32_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
uint32_t crc32_sum(uint32_t crc, const uint8_t * buf, int len);
#ifdef __cplusplus
}
#endif
#endif /* __CRC32_H__ */
|
6b939f9397742a5c9330ce2d3642e33bf19f2b3d
|
b732361d6b3405c3e79ac0a7d8361cf5b329b015
|
/ext/phalcon/events/managerinterface.zep.h
|
3a5117c494ec65044139746a7afc312bc9513cfd
|
[
"BSD-3-Clause"
] |
permissive
|
phalcon/cphalcon
|
4a5b26f47b5c2a4107541d7fd73c595c0d90ed73
|
fc183e11e8b96c43daf7d893244846206dc2aa73
|
refs/heads/master
| 2023-03-07T22:09:48.814291
| 2023-02-28T16:45:15
| 2023-02-28T16:45:15
| 2,854,337
| 8,135
| 2,343
|
BSD-3-Clause
| 2023-09-12T12:41:13
| 2011-11-26T05:52:50
|
PHP
|
UTF-8
|
C
| false
| true
| 2,038
|
h
|
managerinterface.zep.h
|
extern zend_class_entry *phalcon_events_managerinterface_ce;
ZEPHIR_INIT_CLASS(Phalcon_Events_ManagerInterface);
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_events_managerinterface_attach, 0, 2, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(0, eventType, IS_STRING, 0)
ZEND_ARG_INFO(0, handler)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_events_managerinterface_detach, 0, 2, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(0, eventType, IS_STRING, 0)
ZEND_ARG_INFO(0, handler)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_events_managerinterface_detachall, 0, 0, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_events_managerinterface_fire, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, eventType, IS_STRING, 0)
ZEND_ARG_INFO(0, source)
ZEND_ARG_INFO(0, data)
ZEND_ARG_TYPE_INFO(0, cancelable, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_events_managerinterface_getlisteners, 0, 1, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_events_managerinterface_haslisteners, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEPHIR_INIT_FUNCS(phalcon_events_managerinterface_method_entry) {
PHP_ABSTRACT_ME(Phalcon_Events_ManagerInterface, attach, arginfo_phalcon_events_managerinterface_attach)
PHP_ABSTRACT_ME(Phalcon_Events_ManagerInterface, detach, arginfo_phalcon_events_managerinterface_detach)
PHP_ABSTRACT_ME(Phalcon_Events_ManagerInterface, detachAll, arginfo_phalcon_events_managerinterface_detachall)
PHP_ABSTRACT_ME(Phalcon_Events_ManagerInterface, fire, arginfo_phalcon_events_managerinterface_fire)
PHP_ABSTRACT_ME(Phalcon_Events_ManagerInterface, getListeners, arginfo_phalcon_events_managerinterface_getlisteners)
PHP_ABSTRACT_ME(Phalcon_Events_ManagerInterface, hasListeners, arginfo_phalcon_events_managerinterface_haslisteners)
PHP_FE_END
};
|
47fb4d8953a3570abc03303ec772467ad1436e3b
|
7c857119fe1505b1d80d6e62969661c06dc1a2f4
|
/ArmPlatformPkg/Drivers/PL061GpioDxe/PL061Gpio.h
|
42d87a16a3dd245309134f1a4c39071310423e53
|
[
"BSD-2-Clause"
] |
permissive
|
CloverHackyColor/CloverBootloader
|
7042ca7dd6b513d22be591a295e49071ae1482ee
|
2711170df4f60b2ae5aa20add3e00f35cf57b7e5
|
refs/heads/master
| 2023-08-30T22:14:34.590134
| 2023-08-27T19:14:02
| 2023-08-27T19:14:02
| 205,810,121
| 4,734
| 770
|
BSD-2-Clause
| 2023-09-03T12:41:33
| 2019-09-02T08:22:14
|
C
|
UTF-8
|
C
| false
| false
| 1,209
|
h
|
PL061Gpio.h
|
/** @file
Copyright (c) 2011-2012, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __PL061_GPIO_H__
#define __PL061_GPIO_H__
#include <Protocol/EmbeddedGpio.h>
// PL061 GPIO Registers
#define PL061_GPIO_DATA_REG_OFFSET ((UINTN) 0x000)
#define PL061_GPIO_DATA_REG 0x000
#define PL061_GPIO_DIR_REG 0x400
#define PL061_GPIO_IS_REG 0x404
#define PL061_GPIO_IBE_REG 0x408
#define PL061_GPIO_IEV_REG 0x40C
#define PL061_GPIO_IE_REG 0x410
#define PL061_GPIO_RIS_REG 0x414
#define PL061_GPIO_MIS_REG 0x410
#define PL061_GPIO_IC_REG 0x41C
#define PL061_GPIO_AFSEL_REG 0x420
#define PL061_GPIO_PERIPH_ID0 0xFE0
#define PL061_GPIO_PERIPH_ID1 0xFE4
#define PL061_GPIO_PERIPH_ID2 0xFE8
#define PL061_GPIO_PERIPH_ID3 0xFEC
#define PL061_GPIO_PCELL_ID0 0xFF0
#define PL061_GPIO_PCELL_ID1 0xFF4
#define PL061_GPIO_PCELL_ID2 0xFF8
#define PL061_GPIO_PCELL_ID3 0xFFC
#define PL061_GPIO_PINS 8
// All bits low except one bit high, native bit length
#define GPIO_PIN_MASK(Pin) (1UL << ((UINTN)(Pin)))
#endif // __PL061_GPIO_H__
|
f8877e8c109599205e8b7c8e570aa1576ca68665
|
1b6222f79e5c3a80c224eaa8c656c87a778d57f5
|
/src/VolumeMap.c
|
ad9b75ede31296b82dd941f18980480fa288012c
|
[
"BSD-3-Clause-LBNL"
] |
permissive
|
NERSC/shifter
|
beebfd66d9f36ea5509cff5031316d654d89f0ba
|
0784ae5b34537c5ca35f464249070f90c6884ca2
|
refs/heads/master
| 2023-05-30T06:07:25.121789
| 2022-10-22T00:07:54
| 2022-10-22T00:07:54
| 52,631,494
| 374
| 89
|
NOASSERTION
| 2023-01-31T00:37:09
| 2016-02-26T20:42:28
|
C
|
UTF-8
|
C
| false
| false
| 28,178
|
c
|
VolumeMap.c
|
/* Shifter, Copyright (c) 2015, The Regents of the University of California,
## through Lawrence Berkeley National Laboratory (subject to receipt of any
## required approvals from the U.S. Dept. of Energy). All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
## 1. Redistributions of source code must retain the above copyright notice,
## this list of conditions and the following disclaimer.
## 2. Redistributions in binary form must reproduce the above copyright notice,
## this list of conditions and the following disclaimer in the documentation
## and/or other materials provided with the distribution.
## 3. Neither the name of the University of California, Lawrence Berkeley
## National Laboratory, U.S. Dept. of Energy nor the names of its
## contributors may be used to endorse or promote products derived from this
## software without specific prior written permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
## ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
## LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
## POSSIBILITY OF SUCH DAMAGE.
##
## You are under no obligation whatsoever to provide any bug fixes, patches, or
## upgrades to the features, functionality or performance of the source code
## ("Enhancements") to anyone; however, if you choose to make your Enhancements
## available either publicly, or directly to Lawrence Berkeley National
## Laboratory, without imposing a separate written license agreement for such
## Enhancements, then you hereby grant the following license: a non-exclusive,
## royalty-free perpetual license to install, use, modify, prepare derivative
## works, incorporate into other computer software, distribute, and sublicense
## such enhancements or derivative works thereof, in binary and source code
## form.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "VolumeMap.h"
#include "utility.h"
#include "shifter_core.h"
#include "shifter_mem.h"
static int _cmpFlags(const void *va, const void *vb);
int parseVolumeMap(const char *input, VolumeMap *volMap) {
return _parseVolumeMap(input, volMap, validateVolumeMap_userRequest, 1);
}
int parseVolumeMapSiteFs(const char *input, VolumeMap *volMap) {
return _parseVolumeMap(input, volMap, validateVolumeMap_siteRequest, 0);
}
int validateVolumeMap_userRequest(
const char *from,
const char *to,
VolumeMapFlag *flags)
{
const char *toExactAllowed[] = {"/var/tmp", NULL};
const char *toStartsWithDisallowed[] = {
"/etc", "/var", "etc", "var", "/opt/udiImage", "opt/udiImage", NULL
};
const char *toExactDisallowed[] = {"/opt", "opt", NULL};
const char *fromStartsWithDisallowed[] = { NULL };
const char *fromExactDisallowed[] = { NULL };
size_t allowedFlags = VOLMAP_FLAG_READONLY | VOLMAP_FLAG_PERNODECACHE;
return _validateVolumeMap(
from, to, flags, toExactAllowed, toStartsWithDisallowed,
toExactDisallowed, fromStartsWithDisallowed, fromExactDisallowed,
allowedFlags
);
}
int validateVolumeMap_siteRequest(
const char *from,
const char *to,
VolumeMapFlag *flags)
{
const char *toExactAllowed[] = { NULL };
const char *toStartsWithDisallowed[] = { NULL };
const char *toExactDisallowed[] = {
"/opt", "opt",
"/etc", "etc",
"/var", "var",
"/etc/passwd", "etc/passwd",
"/etc/group", "etc/group",
"/etc/nsswitch.conf", "etc/nsswitch.conf",
NULL
};
const char *fromStartsWithDisallowed[] = { NULL };
const char *fromExactDisallowed[] = { NULL };
size_t allowedFlags = VOLMAP_FLAG_READONLY
| VOLMAP_FLAG_RECURSIVE
| VOLMAP_FLAG_PERNODECACHE
| VOLMAP_FLAG_SLAVE
| VOLMAP_FLAG_PRIVATE;
return _validateVolumeMap(
from, to, flags, toExactAllowed, toStartsWithDisallowed,
toExactDisallowed, fromStartsWithDisallowed, fromExactDisallowed,
allowedFlags
);
}
const char *_findEndVolumeMapString(const char *basePtr) {
const char *ptr = basePtr;
for ( ; ptr && *ptr; ptr++) {
if (*ptr == ';') {
return ptr;
}
}
return ptr;
}
char **_tokenizeVolumeMapInput(char *input) {
if (input == NULL) return NULL;
char **tokens = _malloc(sizeof(char *) * 4);
char **tk_ptr = NULL;
char **tk_end = tokens + 3;
char *ptr = NULL;
char *sptr = NULL;
char *limit = input + strlen(input);
if (tokens == NULL) {
fprintf(stderr, "FAILED to allocate memory\n");
goto __tokenizeVolumeMapInput_unclean_exit;
}
/* set all tokens to NULL */
memset(tokens, 0, sizeof(char *) * 4);
/* parse the tokens */
tk_ptr = tokens;
for (ptr = input, sptr = input; sptr < limit; ptr++) {
/* delimiter */
if (*ptr == ':' || *ptr == '\0') {
/* extract the token */
*ptr = 0;
*tk_ptr = _strdup(sptr);
/* advance to the next token */
sptr = ptr + 1;
tk_ptr++;
/* allocate and move memory if need be */
if (tk_ptr >= tk_end) {
char **tmp = _realloc(tokens, sizeof(char *) * ((tk_ptr - tokens) + 4));
tk_ptr = tmp + (tk_ptr - tokens);
tokens = tmp;
tk_end = tk_ptr + 3;
memset(tk_ptr, 0, sizeof(char *) * 4);
}
}
}
return tokens;
__tokenizeVolumeMapInput_unclean_exit:
return NULL;
}
ssize_t parseBytes(const char *input) {
const char *scale = "bkmgtpe";
char *ptr = NULL;
const char *sptr = NULL;
double a = 0.0;
char expLetter = 0;
if (input == NULL) {
return -1;
}
a = strtod(input, &ptr);
if (ptr == NULL || *ptr == 0) {
expLetter = 'b';
} else {
expLetter = tolower(*ptr);
}
int found = 0;
for (sptr = scale; *sptr != 0; sptr++) {
if (expLetter == *sptr) {
found = 1;
break;
}
}
if (!found) {
return -1;
}
for ( ; sptr != scale; sptr--) {
a *= 1024;
}
return (ssize_t) a;
}
int _parseFlag(char *flagStr, VolumeMapFlag **flags, size_t *flagCapacity) {
if (flagStr == NULL) return 0;
if (flags == NULL) return 1;
size_t flagIdx = 0;
char *ptr = flagStr;
char *sptr = flagStr;
char *limit = flagStr + strlen(flagStr);
char *flagName = NULL;
VolMapPerNodeCacheConfig *cache = NULL;
char **kvArray = NULL;
size_t kvCount = 0;
VolumeMapFlag flag;
memset(&flag, 0, sizeof(VolumeMapFlag));
if (sptr == limit) return 0;
/* advance flagPtr to end of list */
for (flagIdx = 0; flagIdx < *flagCapacity; flagIdx++) {
if ((*flags)[flagIdx].type == 0) break;
}
ptr = strchr(sptr, '=');
if (ptr == NULL) ptr = limit;
*ptr = 0;
/* now sptr is pointing to the name of the flag;
ptr is either pointing to the end of the string (equal to limit) or
is pointing to the character before the first key in a comma
delimited list of key/value pairs */
flagName = _strdup(sptr);
sptr = ptr + 1;
while (sptr < limit) {
char *vptr = strchr(sptr, '=');
ptr = strchr(sptr, ',');
if (ptr == NULL) ptr = limit;
*ptr = 0;
if (vptr != NULL) {
*vptr++ = 0;
}
kvArray = (char **) _realloc(kvArray, sizeof(char *) * (kvCount + 2));
kvArray[kvCount++] = sptr;
kvArray[kvCount++] = vptr;
sptr = ptr + 1;
}
if (flagName == NULL) {
fprintf(stderr, "Unknown flag: couldn't parse flag name\n");
goto __parseFlags_exit_unclean;
}
/* parse flag */
if (strcasecmp(flagName, "ro") == 0) {
flag.type = VOLMAP_FLAG_READONLY;
if (kvCount > 0) {
fprintf(stderr, "Flag ro takes no arguments, failed to parse.\n");
goto __parseFlags_exit_unclean;
}
} else if (strcasecmp(flagName, "rec") == 0) {
flag.type = VOLMAP_FLAG_RECURSIVE;
if (kvCount > 0) {
fprintf(stderr, "Flag rec takes no arguments, failed to parse.\n");
goto __parseFlags_exit_unclean;
}
} else if (strcasecmp(flagName, "perNodeCache") == 0) {
size_t kvIdx = 0;
flag.type = VOLMAP_FLAG_PERNODECACHE;
cache = _malloc(sizeof(VolMapPerNodeCacheConfig));
memset(cache, 0, sizeof(VolMapPerNodeCacheConfig));
/* TODO move these configs into udiRoot.conf */
cache->cacheSize = 0;
cache->blockSize = 1024 * 1024; /* default 1MB */
cache->fstype = _strdup("xfs");
cache->method = _strdup("loop");
flag.value = cache;
for (kvIdx = 0; kvIdx < kvCount; kvIdx += 2) {
char *key = kvArray[kvIdx];
char *value = kvArray[kvIdx + 1];
if (key == NULL) {
fprintf(stderr, "Failed to parse volmap flag value\n");
goto __parseFlags_exit_unclean;
}
if (strcasecmp(key, "size") == 0) {
cache->cacheSize = parseBytes(value);
if (cache->cacheSize <= 0) {
fprintf(stderr, "Invalid size for perNodeCache: %s\n", value);
goto __parseFlags_exit_unclean;
}
} else if (strcasecmp(key, "fs") == 0) {
if (cache->fstype != NULL) {
free(cache->fstype);
cache->fstype = NULL;
}
if (value != NULL) {
if (strcasecmp(value, "xfs") == 0) {
cache->fstype = _strdup("xfs");
}
}
if (cache->fstype == NULL) {
fprintf(stderr, "Invalid fstype for perNodeCache: %s\n", value);
goto __parseFlags_exit_unclean;
}
} else if (strcasecmp(key, "bs") == 0) {
cache->blockSize = parseBytes(value);
if (cache->blockSize <= 0) {
fprintf(stderr, "Invalid blocksize for perNodeCache: %s\n", value);
goto __parseFlags_exit_unclean;
}
} else if (strcasecmp(key, "method") == 0) {
if (cache->method != NULL) {
free(cache->method);
cache->method = NULL;
}
if (value != NULL) {
if (strcasecmp(value, "loop") == 0) {
cache->method = _strdup("loop");
}
}
if (cache->method == NULL) {
fprintf(stderr, "Invalid method for perNodeCache: %s\n", value);
goto __parseFlags_exit_unclean;
}
}
}
if (validate_VolMapPerNodeCacheConfig(cache) != 0) {
fprintf(stderr, "Invalid configuration for perNodeCache %d\n", validate_VolMapPerNodeCacheConfig(cache));
goto __parseFlags_exit_unclean;
}
cache = NULL;
} else if (strcasecmp(flagName, "slave") == 0) {
flag.type = VOLMAP_FLAG_SLAVE;
if (kvCount > 0) {
fprintf(stderr, "Flag slave takes no arguments, failed to parse.\n");
goto __parseFlags_exit_unclean;
}
} else if (strcasecmp(flagName, "private") == 0) {
flag.type = VOLMAP_FLAG_PRIVATE;
if (kvCount > 0) {
fprintf(stderr, "Flag private takes no arguments, failed to parse.\n");
goto __parseFlags_exit_unclean;
}
} else {
fprintf(stderr, "Unknown flag: %s\n", sptr);
goto __parseFlags_exit_unclean;
}
if (flagIdx >= *flagCapacity) {
*flags = (VolumeMapFlag *) _realloc(*flags, sizeof(VolumeMapFlag) * (*flagCapacity + 2));
*flagCapacity += 1;
}
memcpy(&((*flags)[flagIdx++]), &flag, sizeof(VolumeMapFlag));
memset(&((*flags)[flagIdx]), 0, sizeof(VolumeMapFlag));
if (flagName != NULL) {
free(flagName);
flagName = NULL;
}
if (kvArray != NULL) {
free(kvArray);
kvArray = NULL;
}
return 0;
__parseFlags_exit_unclean:
if (flagName != NULL) {
free(flagName);
flagName = NULL;
}
if (kvArray != NULL) {
free(kvArray);
kvArray = NULL;
}
if (cache != NULL) {
free_VolMapPerNodeCacheConfig(cache);
cache = NULL;
}
return 1;
}
int _parseVolumeMap(
const char *input,
VolumeMap *volMap,
int (*_validate_fp)(const char *, const char *, VolumeMapFlag *),
short requireTo
) {
if (input == NULL || volMap == NULL) return 1;
char **rawPtr = volMap->raw + volMap->n;
char **toPtr = volMap->to + volMap->n;
char **fromPtr = volMap->from + volMap->n;
VolumeMapFlag **flagPtr = volMap->flags + volMap->n;
const char *ptr = input;
const char *eptr = NULL;
char *tmp = NULL;
size_t len = strlen(input);
int ret = 0;
char *to = NULL;
char *from = NULL;
VolumeMapFlag *flags = NULL;
size_t flagsCapacity = 0;
char *raw = NULL;
char **tokens = NULL;
char **tk_ptr = NULL;
size_t tokenIdx = 0;
size_t rawLen = 0;
size_t rawCapacity = 0;
size_t flagIdx = 0;
size_t flagCnt = 0;
while (ptr < input + len) {
size_t ntokens = 0;
eptr = _findEndVolumeMapString(ptr);
if (eptr == ptr && eptr != NULL) {
ptr++;
continue;
}
if (eptr == NULL) {
break;
}
/* make copy for parsing */
tmp = _malloc(sizeof(char) * (eptr - ptr + 1));
strncpy(tmp, ptr, eptr - ptr);
tmp[eptr - ptr] = '\0';
char *volMapStr = tmp;
if (*volMapStr == '"' && *(volMapStr + (eptr - ptr) - 1) == '"') {
*(volMapStr + (eptr - ptr) - 1) = 0;
volMapStr++;
}
/* tokenize the the input string */
tokens = _tokenizeVolumeMapInput(volMapStr);
/* count how many non-NULL tokens there are */
for (ntokens = 0; tokens && tokens[ntokens]; ntokens++) {
}
if (tokens == NULL || ntokens == 0) {
fprintf(stderr, "Failed to parse VolumeMap tokens from \"%s\","
" aborting!\n", tmp);
goto _parseVolumeMap_unclean;
}
from = userInputPathFilter(tokens[0], 1);
to = userInputPathFilter(tokens[1], 1);
for (tokenIdx = 2; tokenIdx < ntokens; tokenIdx++) {
if (_parseFlag(tokens[tokenIdx], &flags, &flagsCapacity) != 0) {
fprintf(stderr, "Invalid mount flags specified: %s\n", tokens[tokenIdx]);
goto _parseVolumeMap_unclean;
}
}
/* if we only got a from and to is not required
assume we are binding a path from outside the container
and to can be set to from */
if (from && ntokens == 1 && !requireTo) {
to = _strdup(from);
}
/* ensure the user is asking for a legal mapping */
if ((ret = _validate_fp(from, to, flags)) != 0) {
fprintf(stderr, "Invalid Volume Map: %.*s, aborting! %d\n",
(int) (eptr - ptr),
ptr, ret
);
goto _parseVolumeMap_unclean;
}
if (to == NULL || from == NULL) {
fprintf(stderr, "INVALID format for volume map %.*s\n",
(int) (eptr - ptr),
ptr
);
goto _parseVolumeMap_unclean;
}
for (flagCnt = 0; flags && flags[flagCnt].type != 0; flagCnt++) { }
if (flagCnt > 0) {
qsort(flags, flagCnt, sizeof(VolumeMapFlag), _cmpFlags);
}
/* generate a new "raw" string from the filtered values */
rawLen = 2 + strlen(from) + strlen(to);
raw = _malloc(sizeof(char) * rawLen);
rawCapacity = sizeof(char) * rawLen;
rawLen = snprintf(raw, rawLen, "%s:%s", from, to);
for (flagIdx = 0; flagIdx < flagCnt; flagIdx++) {
if (flags[flagIdx].type == VOLMAP_FLAG_READONLY) {
raw = alloc_strcatf(raw, &rawLen, &rawCapacity, ":ro");
} else if (flags[flagIdx].type == VOLMAP_FLAG_RECURSIVE) {
raw = alloc_strcatf(raw, &rawLen, &rawCapacity, ":rec");
} else if (flags[flagIdx].type == VOLMAP_FLAG_SLAVE) {
raw = alloc_strcatf(raw, &rawLen, &rawCapacity, ":slave");
} else if (flags[flagIdx].type == VOLMAP_FLAG_PRIVATE) {
raw = alloc_strcatf(raw, &rawLen, &rawCapacity, ":private");
} else if (flags[flagIdx].type == VOLMAP_FLAG_PERNODECACHE) {
VolMapPerNodeCacheConfig *cache = (VolMapPerNodeCacheConfig *) flags[flagIdx].value;
if (cache == NULL) {
fprintf(stderr, "FAILED to read perNodeCache config from memory\n");
goto _parseVolumeMap_unclean;
}
raw = alloc_strcatf(raw, &rawLen, &rawCapacity, ":perNodeCache=size=%lu,bs=%lu,method=%s,fstype=%s", cache->cacheSize, cache->blockSize, cache->method, cache->fstype);
}
}
/* append to raw array */
ret = strncpy_StringArray(raw, rawLen, &rawPtr, &(volMap->raw),
&(volMap->rawCapacity), VOLUME_ALLOC_BLOCK);
if (ret != 0) goto _parseVolumeMap_unclean;
ret = strncpy_StringArray(to, strlen(to), &toPtr, &(volMap->to),
&(volMap->toCapacity), VOLUME_ALLOC_BLOCK);
if (ret != 0) goto _parseVolumeMap_unclean;
ret = strncpy_StringArray(from, strlen(from), &fromPtr, &(volMap->from),
&(volMap->fromCapacity), VOLUME_ALLOC_BLOCK);
if (ret != 0) goto _parseVolumeMap_unclean;
if (volMap->n >= volMap->flagsCapacity) {
volMap->flags = (VolumeMapFlag **) _realloc(volMap->flags, sizeof(VolumeMapFlag *) * (volMap->flagsCapacity + VOLUME_ALLOC_BLOCK + 1));
flagPtr = volMap->flags + volMap->n;
volMap->flagsCapacity += VOLUME_ALLOC_BLOCK;
memset(flagPtr, 0, sizeof(VolumeMapFlag *) * (volMap->flagsCapacity - volMap->n));
}
*flagPtr = flags;
flagPtr++;
*flagPtr = NULL;
flagsCapacity = 0;
if (from != NULL) free(from);
if (to != NULL) free(to);
if (raw != NULL) free(raw);
from = NULL;
to = NULL;
raw = NULL;
flags = NULL;
ptr = eptr + 1;
volMap->n += 1;
free(tmp);
tmp = NULL;
for (tk_ptr = tokens; tk_ptr && *tk_ptr; tk_ptr++) {
free(*tk_ptr);
}
if (tokens != NULL) free(tokens);
tokens = NULL;
}
return 0;
_parseVolumeMap_unclean:
{
char *freeArray[] = {tmp, from, to, raw, NULL};
char **freePtr = NULL;
for (freePtr = freeArray; *freePtr != NULL; freePtr++) {
if (*freePtr != NULL) {
free(*freePtr);
}
}
for (tk_ptr = tokens; tk_ptr && *tk_ptr; tk_ptr++) {
free(*tk_ptr);
}
if (tokens != NULL) free(tokens);
tokens = NULL;
if (flags != NULL) {
free_VolumeMapFlag(flags, 1);
flags = NULL;
}
}
return 1;
}
int _validateVolumeMap(
const char *from,
const char *to,
VolumeMapFlag *flags,
const char **toExactAllowed,
const char **toStartsWithDisallowed,
const char **toExactDisallowed,
const char **fromStartsWithDisallowed,
const char **fromExactDisallowed,
size_t allowedFlags)
{
const char **ptr = NULL;
if (from == NULL || to == NULL) return 1;
/* prevent bind mounts using relative paths */
if (strstr(from, "..") != NULL) {
return 1;
}
if (strstr(to, "..") != NULL) {
return 1;
}
if (from[0] != '/') {
return 1;
}
if (to[0] != '/') {
return 1;
}
/* verify that the specified flags are acceptable */
size_t alreadySeenFlags = 0;
if (flags != NULL) {
size_t idx = 0;
while (flags[idx].type != 0) {
if ((flags[idx].type & allowedFlags) == 0) return 2;
if ((flags[idx].type & alreadySeenFlags) != 0) return 3;
alreadySeenFlags |= flags[idx].type;
idx++;
}
}
/* cannot specify both SLAVE and PRIVATE mount propagation styles */
if ((alreadySeenFlags & VOLMAP_FLAG_SLAVE) &&
(alreadySeenFlags & VOLMAP_FLAG_PRIVATE))
{
return 4;
}
/* checking "from" before "to" since the "to" checks can return early */
for (ptr = fromStartsWithDisallowed; *ptr != NULL; ptr++) {
size_t len = strlen(*ptr);
if (strncmp(from, *ptr, len) == 0) {
return 1;
}
}
for (ptr = fromExactDisallowed; *ptr != NULL; ptr++) {
if (strcmp(from, *ptr) == 0) {
return 1;
}
}
for (ptr = toExactAllowed; *ptr != NULL; ptr++) {
if (strcmp(to, *ptr) == 0) {
return 0;
}
}
for (ptr = toStartsWithDisallowed; *ptr != NULL; ptr++) {
size_t len = strlen(*ptr);
if (strncmp(to, *ptr, len) == 0) {
return 1;
}
}
for (ptr = toExactDisallowed; *ptr != NULL; ptr++) {
if (strcmp(to, *ptr) == 0) {
return 1;
}
}
return 0;
}
/** fprint_volumeMap - write formatted output to specified FILE pointer */
size_t fprint_VolumeMap(FILE *fp, VolumeMap *volMap) {
if (fp == NULL) return 0;
size_t count = 0;
size_t nBytes = 0;
if (volMap != NULL) count = volMap->n;
nBytes += fprintf(fp, "Volume Map: %lu maps\n", count);
if (volMap == NULL) return nBytes;
for (count = 0; count < volMap->n; count++) {
char *from = volMap->from[count];
char *to = volMap->to[count];
VolumeMapFlag *flags = volMap->flags[count];
if (from == NULL || to == NULL) continue;
nBytes += fprintf(fp, "FROM: %s, TO: %s, FLAGS: ", from, to);
if (flags == NULL) nBytes += fprintf(fp, "None");
else {
size_t flagIdx = 0;
while (flags[flagIdx].type != 0) {
if (flags[flagIdx].type == VOLMAP_FLAG_READONLY) {
nBytes += fprintf(fp, "%sread-only", (flagIdx > 0 ? ", " : ""));
} else if (flags[flagIdx].type == VOLMAP_FLAG_RECURSIVE) {
nBytes += fprintf(fp, "%srecursive", (flagIdx > 0 ? ", " : ""));
} else if (flags[flagIdx].type == VOLMAP_FLAG_SLAVE) {
nBytes += fprintf(fp, "%sslave", (flagIdx > 0 ? ", ": ""));
} else if (flags[flagIdx].type == VOLMAP_FLAG_PRIVATE) {
nBytes += fprintf(fp, "%sprivate", (flagIdx > 0 ? ", ": ""));
} else if (flags[flagIdx].type == VOLMAP_FLAG_PERNODECACHE) {
VolMapPerNodeCacheConfig *cache = (VolMapPerNodeCacheConfig *) flags[flagIdx].value;
nBytes += fprintf(fp,
"%sperNodeCache (size=%ld, blocksize=%ld, method=%s, fstype=%s)",
(flagIdx > 0 ? ", " : ""),
cache->cacheSize, cache->blockSize, cache->method, cache->fstype);
}
flagIdx++;
}
}
nBytes += fprintf(fp, "\n");
}
return nBytes;
}
/* _vstrcmp: adaptor function to dereference points, cast and run strcmp
* this is for qsort call below
*/
static int _vstrcmp(const void *a, const void *b) {
return strcmp(*((const char **) a), *((const char **) b));
}
static int _cmpFlags(const void *va, const void *vb) {
VolumeMapFlag *a = (VolumeMapFlag *) va;
VolumeMapFlag *b = (VolumeMapFlag *) vb;
if (a == NULL && b != NULL) return -1;
if (a != NULL && b == NULL) return 1;
if (a == NULL && b == NULL) return 0;
return a->type - b->type;
}
char *getVolMapSignature(VolumeMap *volMap) {
char **ptr = NULL;
size_t len = 0;
char *ret = NULL;
char *wptr = NULL;
char *limit = NULL;
if (volMap == NULL || volMap->raw == NULL || volMap->n == 0) {
return NULL;
}
/* sort the volmaps to ensure different invocations of the same
request are seen as identical */
qsort(volMap->raw, volMap->n, sizeof(char *), _vstrcmp);
/* sum strlens to get full summary string capacity
add volMap->n characters to cover commas and final null byte */
for (ptr = volMap->raw; *ptr != NULL; ptr++) {
len += strlen(*ptr);
}
ret = _malloc(sizeof(char) * (len + volMap->n));
/* construct summary sig string */
wptr = ret;
limit = ret + (len + volMap->n);
for (ptr = volMap->raw; *ptr != NULL; ptr++) {
wptr += snprintf(wptr, (limit - wptr), "%s;", *ptr);
}
wptr--;
*wptr = 0;
return ret;
}
/**
* free_VolumeMap
* Release memory allocated for VolumeMap structure. Optionally
* release the memory for the struct itself (and not just the
* instance members).
*/
void free_VolumeMap(VolumeMap *volMap, int freeStruct) {
if (volMap == NULL) return;
char **arrays[] = {
volMap->raw,
volMap->to,
volMap->from,
NULL
};
char ***ptr = NULL;
for (ptr = arrays; *ptr != NULL; ptr++) {
char **iptr = NULL;
for (iptr = *ptr; *iptr != NULL; iptr++) {
free(*iptr);
}
free(*ptr);
*ptr = NULL;
}
if (volMap->flags != NULL) {
size_t idx = 0;
for (idx = 0; idx < volMap->n; idx++) {
VolumeMapFlag *flagArr = volMap->flags[idx];
if (flagArr != NULL) {
free_VolumeMapFlag(flagArr, 1);
}
}
free(volMap->flags);
volMap->flags = NULL;
}
if (freeStruct == 1) {
free(volMap);
}
}
void free_VolumeMapFlag(VolumeMapFlag *flagArr, int freeStruct) {
size_t idx = 0;
for (idx = 0; ; idx++) {
if (flagArr[idx].type == 0) break;
if (flagArr[idx].type == VOLMAP_FLAG_PERNODECACHE
&& flagArr[idx].value != NULL) {
VolMapPerNodeCacheConfig *cconfig = (VolMapPerNodeCacheConfig *) flagArr[idx].value;
free_VolMapPerNodeCacheConfig(cconfig);
flagArr[idx].value = NULL;
}
}
if (freeStruct) {
free(flagArr);
}
}
void free_VolMapPerNodeCacheConfig(VolMapPerNodeCacheConfig *cacheConfig) {
if (cacheConfig == NULL) return;
if (cacheConfig->method != NULL) free(cacheConfig->method);
if (cacheConfig->fstype != NULL) free(cacheConfig->fstype);
free(cacheConfig);
}
int validate_VolMapPerNodeCacheConfig(VolMapPerNodeCacheConfig *cacheConfig) {
if (cacheConfig == NULL) return 1;
if (cacheConfig->cacheSize <= 0) return 2;
if (cacheConfig->blockSize <= 0) return 3;
if (cacheConfig->method == NULL) return 4;
if (strcmp(cacheConfig->method, "loop") != 0) return 5;
if (cacheConfig->fstype == NULL) return 6;
if (strcmp(cacheConfig->fstype, "xfs") != 0) return 7;
return 0;
}
|
40c5116607f27fffd91f7460e6827cded1b160ec
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/usr.sbin/flashctl/flashctl.c
|
e8e65858076b6a1931038828b669e6b676b2441c
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 6,319
|
c
|
flashctl.c
|
/* $NetBSD: flashctl.c,v 1.9 2023/01/08 16:01:49 rillig Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
* University of Szeged, Hungary
* Copyright (c) 2010 Adam Hoka <ahoka@NetBSD.org>
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by the Department of Software Engineering, University of Szeged, Hungary
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: flashctl.c,v 1.9 2023/01/08 16:01:49 rillig Exp $");
#include <sys/ioctl.h>
#include <sys/flashio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <err.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <inttypes.h>
#include <ctype.h>
#include <errno.h>
static void usage(void);
static int to_intmax(intmax_t *, const char *);
int
main(int argc, char **argv)
{
char *device, *command;
int fd, error = 0;
intmax_t n = -1;
setprogname(argv[0]);
if (argc < 3) {
usage();
exit(1);
}
device = argv[1];
command = argv[2];
argc -= 3;
argv += 3;
fd = open(device, O_RDWR, 0);
if (fd == -1) {
err(EXIT_FAILURE, "can't open flash device");
}
if (strcmp("erase", command) == 0) {
struct flash_info_params ip;
struct flash_erase_params ep;
error = ioctl(fd, FLASH_GET_INFO, &ip);
if (error != 0) {
warn("ioctl: FLASH_GET_INFO");
goto out;
}
if (argc == 2) {
error = to_intmax(&n, argv[0]);
if (error != 0) {
warnx("%s", strerror(error));
goto out;
}
ep.ep_addr = n;
if (strcmp("all", argv[1]) == 0) {
ep.ep_len = ip.ip_flash_size;
} else {
error = to_intmax(&n, argv[1]);
if (error != 0) {
warnx("%s", strerror(error));
goto out;
}
ep.ep_len = n;
}
} else {
warnx("invalid number of arguments");
error = 1;
goto out;
}
printf("Erasing %jx bytes starting from %jx\n",
(uintmax_t)ep.ep_len, (uintmax_t)ep.ep_addr);
error = ioctl(fd, FLASH_ERASE_BLOCK, &ep);
if (error != 0) {
warn("ioctl: FLASH_ERASE_BLOCK");
goto out;
}
} else if (strcmp("identify", command) == 0) {
struct flash_info_params ip;
error = ioctl(fd, FLASH_GET_INFO, &ip);
if (error != 0) {
warn("ioctl: FLASH_GET_INFO");
goto out;
}
printf("Device type: ");
switch (ip.ip_flash_type) {
case FLASH_TYPE_NOR:
printf("NOR flash");
break;
case FLASH_TYPE_NAND:
printf("NAND flash");
break;
default:
printf("unknown (%d)", ip.ip_flash_type);
}
printf("\n");
/* TODO: humanize */
printf("Capacity %jd Mbytes, %jd pages, %ju bytes/page\n",
(intmax_t)ip.ip_flash_size / 1024 / 1024,
(intmax_t)ip.ip_flash_size / ip.ip_page_size,
(intmax_t)ip.ip_page_size);
if (ip.ip_flash_type == FLASH_TYPE_NAND) {
printf("Block size %jd Kbytes, %jd pages/block\n",
(intmax_t)ip.ip_erase_size / 1024,
(intmax_t)ip.ip_erase_size / ip.ip_page_size);
}
} else if (strcmp("badblocks", command) == 0) {
struct flash_info_params ip;
struct flash_badblock_params bbp;
flash_off_t addr;
bool hasbad = false;
error = ioctl(fd, FLASH_GET_INFO, &ip);
if (error != 0) {
warn("ioctl: FLASH_GET_INFO");
goto out;
}
printf("Scanning for bad blocks: ");
addr = 0;
while (addr < ip.ip_flash_size) {
bbp.bbp_addr = addr;
error = ioctl(fd, FLASH_BLOCK_ISBAD, &bbp);
if (error != 0) {
warn("ioctl: FLASH_BLOCK_ISBAD");
goto out;
}
if (bbp.bbp_isbad) {
hasbad = true;
printf("0x%jx ", addr);
}
addr += ip.ip_erase_size;
}
if (hasbad) {
printf("Done.\n");
} else {
printf("No bad blocks found.\n");
}
} else if (strcmp("markbad", command) == 0) {
flash_off_t address;
/* TODO: maybe we should let the user specify
* multiple blocks?
*/
if (argc != 1) {
warnx("invalid number of arguments");
error = 1;
goto out;
}
error = to_intmax(&n, argv[0]);
if (error != 0) {
warnx("%s", strerror(error));
goto out;
}
address = n;
printf("Marking block 0x%jx as bad.\n",
(intmax_t)address);
error = ioctl(fd, FLASH_BLOCK_MARKBAD, &address);
if (error != 0) {
warn("ioctl: FLASH_BLOCK_MARKBAD");
goto out;
}
} else {
warnx("Unknown command");
error = EXIT_FAILURE;
goto out;
}
out:
close(fd);
return error;
}
int
to_intmax(intmax_t *num, const char *str)
{
char *endptr;
errno = 0;
if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) {
if (!isxdigit((unsigned char)str[2]))
return EINVAL;
*num = strtoimax(str, &endptr, 16);
} else {
if (!isdigit((unsigned char)str[0]))
return EINVAL;
*num = strtoimax(str, &endptr, 10);
}
if (errno == ERANGE && (*num == INTMAX_MIN || *num == INTMAX_MAX)) {
return ERANGE;
}
return 0;
}
void
usage(void)
{
fprintf(stderr, "usage: %s <device> identify\n",
getprogname());
fprintf(stderr, " %s <device> erase <start address> <size>|all\n",
getprogname());
fprintf(stderr, " %s <device> badblocks\n",
getprogname());
fprintf(stderr, " %s <device> markbad <address>\n",
getprogname());
}
|
946ce1a539ce11b6e0a7040f65ae8d3513740f59
|
25c64fb97b7cdb30ec1b6ddd2acf9a755fc33adf
|
/test/testheap.c
|
45a60c8289bfde5b3991885c353dc07bc587ce36
|
[
"MIT"
] |
permissive
|
arminbiere/kissat
|
386c1cfadf43562d36fccc47064c95296c9b812f
|
630d64d4d63c2816fc79a1a0340286b39677e97d
|
refs/heads/master
| 2023-09-04T01:39:44.293487
| 2023-06-24T15:51:43
| 2023-06-24T15:51:43
| 267,257,286
| 350
| 63
|
MIT
| 2022-06-23T12:15:24
| 2020-05-27T07:57:59
|
C
|
UTF-8
|
C
| false
| false
| 3,675
|
c
|
testheap.c
|
#include "../src/heap.h"
#include "../src/inlineheap.h"
#include "test.h"
static void test_heap_basic (void) {
assert (DISCONTAINED (DISCONTAIN));
DECLARE_AND_INIT_SOLVER (solver);
heap dummy_heap, *heap = &dummy_heap;
memset (heap, 0, sizeof (struct heap));
assert (kissat_max_score_on_heap (heap) == 0);
kissat_resize_heap (solver, heap, 100);
kissat_push_heap (solver, heap, 0);
kissat_push_heap (solver, heap, 1);
assert (kissat_max_heap (heap) == 0);
kissat_update_heap (solver, heap, 1, 1);
assert (kissat_max_heap (heap) == 1);
kissat_push_heap (solver, heap, 2);
kissat_push_heap (solver, heap, 3);
kissat_push_heap (solver, heap, 4);
kissat_push_heap (solver, heap, 5);
kissat_push_heap (solver, heap, 6);
kissat_push_heap (solver, heap, 7);
assert (kissat_max_heap (heap) == 1);
kissat_update_heap (solver, heap, 2, 2);
assert (kissat_max_heap (heap) == 2);
kissat_update_heap (solver, heap, 3, 3);
assert (kissat_max_heap (heap) == 3);
kissat_update_heap (solver, heap, 6, 6);
assert (kissat_max_heap (heap) == 6);
kissat_update_heap (solver, heap, 4, 4);
assert (kissat_max_heap (heap) == 6);
kissat_update_heap (solver, heap, 5, 5);
assert (kissat_max_heap (heap) == 6);
kissat_update_heap (solver, heap, 7, 7);
assert (kissat_max_heap (heap) == 7);
unsigned count = 7;
while (!kissat_empty_heap (heap)) {
unsigned max = kissat_max_heap (heap);
assert (max == count);
kissat_pop_heap (solver, heap, max);
count--;
}
kissat_release_heap (solver, heap);
#ifdef METRICS
assert (!solver->statistics.allocated_current);
#endif
}
static void test_heap_random (void) {
#define M 10
#define N 100
srand (42);
for (unsigned i = 0; i < M; i++) {
DECLARE_AND_INIT_SOLVER (solver);
heap dummy_heap, *heap = &dummy_heap;
memset (heap, 0, sizeof (struct heap));
for (unsigned round = 1; round <= 4; round++) {
const unsigned n = round * N;
kissat_resize_heap (solver, heap, n);
for (unsigned i = 0; i < 2 * n; i++) {
unsigned idx = rand () % n;
if (rand () % 3) {
if (kissat_heap_contains (heap, idx))
kissat_pop_heap (solver, heap, idx);
else
kissat_push_heap (solver, heap, idx);
} else {
unsigned score = rand () % (2 * n / 3);
kissat_update_heap (solver, heap, idx, score);
}
}
}
kissat_release_heap (solver, heap);
#ifdef METRICS
assert (!solver->statistics.allocated_current);
#endif
}
#undef M
#undef N
}
static void test_heap_rescale (void) {
DECLARE_AND_INIT_SOLVER (solver);
heap dummy_heap, *heap = &dummy_heap;
memset (heap, 0, sizeof (struct heap));
double score = kissat_max_score_on_heap (heap);
assert (!score);
kissat_resize_heap (solver, heap, 1);
kissat_update_heap (solver, heap, 0, 2);
kissat_push_heap (solver, heap, 0);
score = kissat_max_score_on_heap (heap);
assert (score == 2);
kissat_resize_heap (solver, heap, 3);
kissat_update_heap (solver, heap, 2, 0);
score = kissat_max_score_on_heap (heap);
assert (score == 2);
kissat_update_heap (solver, heap, 1, 4);
kissat_push_heap (solver, heap, 2);
score = kissat_max_score_on_heap (heap);
assert (score == 4);
kissat_push_heap (solver, heap, 1);
score = kissat_max_score_on_heap (heap);
assert (score == 4);
kissat_rescale_heap (solver, heap, 0.5);
score = kissat_max_score_on_heap (heap);
assert (score == 2);
kissat_release_heap (solver, heap);
}
void tissat_schedule_heap (void) {
SCHEDULE_FUNCTION (test_heap_basic);
SCHEDULE_FUNCTION (test_heap_random);
SCHEDULE_FUNCTION (test_heap_rescale);
}
|
e9c80305427817aeda0c95593c59d10a78551fdc
|
fc89df5d65edcfada41a5bcc3b5c52d7b00d9d13
|
/components/squeezelite/tas57xx/dac_57xx.c
|
45b073c8719606123660978e1a09ff1b2f639aee
|
[] |
no_license
|
sle118/squeezelite-esp32
|
b83f580b4de4a517be87ca1db8fead2223694068
|
149c9d8142d7a3f8679efc73985609eb6dee73a5
|
refs/heads/master-v4.3
| 2023-08-23T05:06:18.461579
| 2023-08-22T23:30:18
| 2023-08-22T23:30:18
| 187,874,998
| 698
| 84
| null | 2023-09-09T22:58:50
| 2019-05-21T16:25:56
|
C
|
UTF-8
|
C
| false
| false
| 4,868
|
c
|
dac_57xx.c
|
/*
* Squeezelite for esp32
*
* (c) Sebastien 2019
* Philippe G. 2019, philippe_44@outlook.com
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*
*/
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/i2s.h"
#include "driver/i2c.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "adac.h"
#define TAS575x (0x98 >> 1)
#define TAS578x (0x90 >> 1)
static const char TAG[] = "TAS575x/8x";
static bool init(char *config, int i2c_port_num, i2s_config_t *i2s_config, bool *mck);
static void speaker(bool active);
static void headset(bool active);
static bool volume(unsigned left, unsigned right);
static void power(adac_power_e mode);
const struct adac_s dac_tas57xx = { "TAS57xx", init, adac_deinit, power, speaker, headset, volume };
struct tas57xx_cmd_s {
uint8_t reg;
uint8_t value;
};
static const struct tas57xx_cmd_s tas57xx_init_sequence[] = {
{ 0x00, 0x00 }, // select page 0
{ 0x02, 0x10 }, // standby
{ 0x0d, 0x10 }, // use SCK for PLL
{ 0x25, 0x08 }, // ignore SCK halt
{ 0x08, 0x10 }, // Mute control enable (from TAS5780)
{ 0x54, 0x02 }, // Mute output control (from TAS5780)
#if BYTES_PER_FRAME == 8
{ 0x28, 0x03 }, // I2S length 32 bits
#else
{ 0x28, 0x00 }, // I2S length 16 bits
#endif
{ 0x02, 0x00 }, // restart
{ 0xff, 0xff } // end of table
};
// matching orders
typedef enum { TAS57_ACTIVE = 0, TAS57_STANDBY, TAS57_DOWN, TAS57_ANALOGUE_OFF, TAS57_ANALOGUE_ON, TAS57_VOLUME } dac_cmd_e;
static const struct tas57xx_cmd_s tas57xx_cmd[] = {
{ 0x02, 0x00 }, // TAS57_ACTIVE
{ 0x02, 0x10 }, // TAS57_STANDBY
{ 0x02, 0x01 }, // TAS57_DOWN
{ 0x56, 0x10 }, // TAS57_ANALOGUE_OFF
{ 0x56, 0x00 }, // TAS57_ANALOGUE_ON
};
static uint8_t tas57_addr;
static void dac_cmd(dac_cmd_e cmd, ...);
static int tas57_detect(void);
/****************************************************************************************
* init
*/
static bool init(char *config, int i2c_port, i2s_config_t *i2s_config, bool *mck) {
// find which TAS we are using (if any)
tas57_addr = adac_init(config, i2c_port);
if (!tas57_addr) tas57_addr = tas57_detect();
if (!tas57_addr) {
ESP_LOGW(TAG, "No TAS57xx detected");
adac_deinit();
return false;
}
i2c_cmd_handle_t i2c_cmd = i2c_cmd_link_create();
for (int i = 0; tas57xx_init_sequence[i].reg != 0xff; i++) {
i2c_master_start(i2c_cmd);
i2c_master_write_byte(i2c_cmd, (tas57_addr << 1) | I2C_MASTER_WRITE, I2C_MASTER_NACK);
i2c_master_write_byte(i2c_cmd, tas57xx_init_sequence[i].reg, I2C_MASTER_NACK);
i2c_master_write_byte(i2c_cmd, tas57xx_init_sequence[i].value, I2C_MASTER_NACK);
ESP_LOGD(TAG, "i2c write %x at %u", tas57xx_init_sequence[i].reg, tas57xx_init_sequence[i].value);
}
i2c_master_stop(i2c_cmd);
esp_err_t res = i2c_master_cmd_begin(i2c_port, i2c_cmd, 500 / portTICK_RATE_MS);
i2c_cmd_link_delete(i2c_cmd);
if (res != ESP_OK) {
ESP_LOGE(TAG, "could not intialize TAS57xx %d", res);
return false;
}
return true;
}
/****************************************************************************************
* change volume
*/
static bool volume(unsigned left, unsigned right) {
return false;
}
/****************************************************************************************
* power
*/
static void power(adac_power_e mode) {
switch(mode) {
case ADAC_STANDBY:
dac_cmd(TAS57_STANDBY);
break;
case ADAC_ON:
dac_cmd(TAS57_ACTIVE);
break;
case ADAC_OFF:
dac_cmd(TAS57_DOWN);
break;
default:
ESP_LOGW(TAG, "unknown DAC command");
break;
}
}
/****************************************************************************************
* speaker
*/
static void speaker(bool active) {
if (active) dac_cmd(TAS57_ANALOGUE_ON);
else dac_cmd(TAS57_ANALOGUE_OFF);
}
/****************************************************************************************
* headset
*/
static void headset(bool active) { }
/****************************************************************************************
* DAC specific commands
*/
void dac_cmd(dac_cmd_e cmd, ...) {
va_list args;
esp_err_t ret = ESP_OK;
va_start(args, cmd);
switch(cmd) {
case TAS57_VOLUME:
ESP_LOGE(TAG, "DAC volume not handled yet");
break;
default:
ret = adac_write_byte(tas57_addr, tas57xx_cmd[cmd].reg, tas57xx_cmd[cmd].value);
}
if (ret != ESP_OK) {
ESP_LOGE(TAG, "could not use TAS57xx %d", ret);
}
va_end(args);
}
/****************************************************************************************
* TAS57 detection
*/
static int tas57_detect(void) {
uint8_t addr[] = {TAS578x, TAS575x};
for (int i = 0; i < sizeof(addr); i++) {
if (adac_read_byte(addr[i], 0) != 255) {
ESP_LOGI(TAG, "Detected TAS @0x%x", addr[i]);
return addr[i];
}
}
return 0;
}
|
6e3410a0f145f9d5ec4ee222eece88d1aa9afe03
|
d2e0fb3fdad7fc2cb70894591d358f40d8db13d2
|
/libc/include/bits/thread.h
|
3536d8325d57b7381ff65222b585b40574592bed
|
[
"ISC",
"MIT"
] |
permissive
|
dennis95/dennix
|
54c568485862a0799664033eb0717abb028d3924
|
f898bb2d27346f6257df1650a002ee929e66e7fa
|
refs/heads/master
| 2023-08-17T06:54:17.274650
| 2023-07-10T16:06:35
| 2023-07-10T16:06:35
| 55,073,371
| 168
| 15
| null | null | null | null |
UTF-8
|
C
| false
| false
| 1,635
|
h
|
thread.h
|
/* Copyright (c) 2022, 2023 Dennis Wölfing
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* libc/include/bits/thread.h
* Threads.
*/
#ifndef _BITS_THREAD_H
#define _BITS_THREAD_H
#include <dennix/types.h>
typedef struct __threadStruct* __thread_t;
typedef int __thread_attr_t;
struct __cond_waiter {
struct __cond_waiter* __prev;
struct __cond_waiter* __next;
char __blocked;
};
typedef struct {
struct __cond_waiter* __first;
struct __cond_waiter* __last;
__clockid_t __clock;
char __state;
} __cond_t;
typedef int __key_t;
typedef struct {
char __type;
char __state;
__pid_t __owner;
__SIZE_TYPE__ __count;
} __mutex_t;
typedef unsigned char __once_t;
#define _MUTEX_NORMAL 0
#define _MUTEX_RECURSIVE 1
#define _COND_INIT { (struct __cond_waiter*) 0, (struct __cond_waiter*) 0, \
CLOCK_REALTIME, 0 }
#define _MUTEX_INIT(type) { (type), 0, -1, 0 }
#define _ONCE_INIT 0
#endif
|
c23414e11edab7593028824548db43b5fc5934d0
|
5eff7a36d9a9917dce9111f0c3074375fe6f7656
|
/lib/mesa/src/imagination/vulkan/pvr_job_compute.c
|
843b2c18457595ec5be10fb6737361dd4d8b5f97
|
[] |
no_license
|
openbsd/xenocara
|
cb392d02ebba06f6ff7d826fd8a89aa3b8401779
|
a012b5de33ea0b977095d77316a521195b26cc6b
|
refs/heads/master
| 2023-08-25T12:16:58.862008
| 2023-08-12T16:16:25
| 2023-08-12T16:16:25
| 66,967,384
| 177
| 66
| null | 2023-07-22T18:12:37
| 2016-08-30T18:36:01
|
C
|
UTF-8
|
C
| false
| false
| 4,301
|
c
|
pvr_job_compute.c
|
/*
* Copyright © 2022 Imagination Technologies Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <vulkan/vulkan.h>
#include "pvr_csb.h"
#include "pvr_job_common.h"
#include "pvr_job_context.h"
#include "pvr_job_compute.h"
#include "pvr_private.h"
#include "pvr_winsys.h"
#include "util/macros.h"
static void pvr_compute_job_ws_submit_info_init(
struct pvr_compute_ctx *ctx,
struct pvr_sub_cmd_compute *sub_cmd,
struct vk_sync *barrier,
struct vk_sync **waits,
uint32_t wait_count,
uint32_t *stage_flags,
struct pvr_winsys_compute_submit_info *submit_info)
{
const struct pvr_compute_ctx_switch *const ctx_switch = &ctx->ctx_switch;
uint32_t shared_regs = sub_cmd->num_shared_regs;
submit_info->frame_num = ctx->device->global_queue_present_count;
submit_info->job_num = ctx->device->global_queue_job_count;
submit_info->barrier = barrier;
submit_info->waits = waits;
submit_info->wait_count = wait_count;
submit_info->stage_flags = stage_flags;
pvr_csb_pack (&submit_info->regs.cdm_ctx_state_base_addr,
CR_CDM_CONTEXT_STATE_BASE,
state) {
state.addr = ctx_switch->compute_state_bo->vma->dev_addr;
}
/* Other registers are initialized in pvr_sub_cmd_compute_job_init(). */
pvr_csb_pack (&submit_info->regs.cdm_resume_pds1,
CR_CDM_CONTEXT_PDS1,
state) {
/* Convert the data size from dwords to bytes. */
const uint32_t load_program_data_size =
ctx_switch->sr[0].pds.load_program.data_size * 4U;
state.pds_seq_dep = false;
state.usc_seq_dep = false;
state.target = false;
state.unified_size = ctx_switch->sr[0].usc.unified_size;
state.common_shared = true;
state.common_size =
DIV_ROUND_UP(shared_regs << 2,
PVRX(CR_CDM_CONTEXT_PDS1_COMMON_SIZE_UNIT_SIZE));
state.temp_size = 0;
assert(load_program_data_size %
PVRX(CR_CDM_CONTEXT_PDS1_DATA_SIZE_UNIT_SIZE) ==
0);
state.data_size =
load_program_data_size / PVRX(CR_CDM_CONTEXT_PDS1_DATA_SIZE_UNIT_SIZE);
state.fence = false;
}
}
VkResult pvr_compute_job_submit(struct pvr_compute_ctx *ctx,
struct pvr_sub_cmd_compute *sub_cmd,
struct vk_sync *barrier,
struct vk_sync **waits,
uint32_t wait_count,
uint32_t *stage_flags,
struct vk_sync *signal_sync)
{
struct pvr_device *device = ctx->device;
pvr_compute_job_ws_submit_info_init(ctx,
sub_cmd,
barrier,
waits,
wait_count,
stage_flags,
&sub_cmd->submit_info);
return device->ws->ops->compute_submit(ctx->ws_ctx,
&sub_cmd->submit_info,
signal_sync);
}
|
25cf632c9acba5de6cab3c9f51c318f5c862398f
|
7ffcd38a2382f905c3d4494cf61aca930aea9cec
|
/src/in.h
|
62f5aae682cd5fdc1863280e158612d656d1d5e4
|
[
"BSD-3-Clause"
] |
permissive
|
CESNET/libyang
|
6592c84e6e26e024f48ac057ea24f0cdbf70537e
|
8b0b910a2dcb7360cb5b0aaefbd1338271d50946
|
refs/heads/master
| 2023-08-22T19:48:17.544338
| 2023-08-18T10:23:24
| 2023-08-18T10:23:24
| 32,149,716
| 363
| 324
|
BSD-3-Clause
| 2023-09-14T11:25:35
| 2015-03-13T10:25:52
|
C
|
UTF-8
|
C
| false
| false
| 9,885
|
h
|
in.h
|
/**
* @file in.h
* @author Radek Krejci <rkrejci@cesnet.cz>
* @brief libyang input structures and functions
*
* Copyright (c) 2020 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef LY_IN_H_
#define LY_IN_H_
#include <stdio.h>
#include "log.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @page howtoInput Input Processing
*
* libyang provides a mechanism to generalize work with the inputs (and [outputs](@ref howtoOutput)) of
* the different types. The ::ly_in handler can be created providing necessary information connected with the specific
* input type and then used throughout the parser functions processing the input data. Using a generic input handler avoids
* need to have a set of functions for each parser functionality and results in simpler API.
*
* The API allows to alter the source of the data behind the handler by another source. Also resetting a seekable source
* input is possible with ::ly_in_reset() to re-read the input.
*
* @note
* Currently, libyang supports only reading data from standard (disk) file, not from sockets, pipes, etc. The reason is
* that the parsers expects all the data to be present in the file (input data are complete). In future, we would like
* to change the internal mechanism and support sequential processing of the input data. In XML wording - we have DOM
* parser, but in future we would like to move to something like a SAX parser.
*
* @note
* This mechanism was introduced in libyang 2.0. To simplify transition from libyang 1.0 to version 2.0 and also for
* some simple use case where using the input handler would be an overkill, there are some basic parsers functions
* that do not require input handler. But remember, that functionality of these function can be limited in particular cases
* in contrast to the functions using input handlers.
*
* Functions List
* --------------
* - ::ly_in_new_fd()
* - ::ly_in_new_file()
* - ::ly_in_new_filepath()
* - ::ly_in_new_memory()
*
* - ::ly_in_fd()
* - ::ly_in_file()
* - ::ly_in_filepath()
* - ::ly_in_memory()
*
* - ::ly_in_type()
* - ::ly_in_parsed()
*
* - ::ly_in_reset()
* - ::ly_in_free()
*
* libyang Parsers List
* --------------------
* - @subpage howtoSchemaParsers
* - @subpage howtoDataParsers
*/
/**
* @struct ly_in
* @brief Parser input structure specifying where the data are read.
*/
struct ly_in;
/**
* @brief Types of the parser's inputs
*/
typedef enum LY_IN_TYPE {
LY_IN_ERROR = -1, /**< error value to indicate failure of the functions returning LY_IN_TYPE */
LY_IN_FD, /**< file descriptor printer */
LY_IN_FILE, /**< FILE stream parser */
LY_IN_FILEPATH, /**< filepath parser */
LY_IN_MEMORY /**< memory parser */
} LY_IN_TYPE;
/**
* @brief Get input type of the input handler.
*
* @param[in] in Input handler.
* @return Type of the parser's input.
*/
LIBYANG_API_DECL LY_IN_TYPE ly_in_type(const struct ly_in *in);
/**
* @brief Reset the input medium to read from its beginning, so the following parser function will read from the object's beginning.
*
* Note that in case the underlying output is not seekable (stream referring a pipe/FIFO/socket or the callback output type),
* nothing actually happens despite the function succeeds. Also note that the medium is not returned to the state it was when
* the handler was created. For example, file is seeked into the offset zero, not to the offset where it was opened when
* ::ly_in_new_file() was called.
*
* @param[in] in Input handler.
* @return LY_SUCCESS in case of success
* @return LY_ESYS in case of failure
*/
LIBYANG_API_DECL LY_ERR ly_in_reset(struct ly_in *in);
/**
* @brief Create input handler using file descriptor.
*
* @param[in] fd File descriptor to use.
* @param[out] in Created input handler supposed to be passed to different ly*_parse() functions.
* @return LY_SUCCESS in case of success
* @return LY_ERR value in case of failure.
*/
LIBYANG_API_DECL LY_ERR ly_in_new_fd(int fd, struct ly_in **in);
/**
* @brief Get or reset file descriptor input handler.
*
* @param[in] in Input handler.
* @param[in] fd Optional value of a new file descriptor for the handler. If -1, only the current file descriptor value is returned.
* @return Previous value of the file descriptor. Note that caller is responsible for closing the returned file descriptor in case of setting new descriptor @p fd.
* @return -1 in case of error when setting up the new file descriptor.
*/
LIBYANG_API_DECL int ly_in_fd(struct ly_in *in, int fd);
/**
* @brief Create input handler using file stream.
*
* @param[in] f File stream to use.
* @param[out] in Created input handler supposed to be passed to different ly*_parse() functions.
* @return LY_SUCCESS in case of success
* @return LY_ERR value in case of failure.
*/
LIBYANG_API_DECL LY_ERR ly_in_new_file(FILE *f, struct ly_in **in);
/**
* @brief Get or reset file stream input handler.
*
* @param[in] in Input handler.
* @param[in] f Optional new file stream for the handler. If NULL, only the current file stream is returned.
* @return NULL in case of invalid argument or an error when setting up the new input file, original input handler @p in is untouched in this case.
* @return Previous file stream of the handler. Note that caller is responsible for closing the returned stream in case of setting new stream @p f.
*/
LIBYANG_API_DECL FILE *ly_in_file(struct ly_in *in, FILE *f);
/**
* @brief Create input handler using memory to read data.
*
* @param[in] str Pointer where to start reading data. The input data are expected to be NULL-terminated.
* Note that in case the destroy argument of ::ly_in_free() is used, the input string is passed to free(),
* so if it is really a static string, do not use the destroy argument!
* @param[out] in Created input handler supposed to be passed to different ly*_parse() functions.
* @return LY_SUCCESS in case of success
* @return LY_ERR value in case of failure.
*/
LIBYANG_API_DECL LY_ERR ly_in_new_memory(const char *str, struct ly_in **in);
/**
* @brief Get or change memory where the data are read from.
*
* @param[in] in Input handler.
* @param[in] str String containing the data to read. The input data are expected to be NULL-terminated.
* Note that in case the destroy argument of ::ly_in_free() is used, the input string is passed to free(),
* so if it is really a static string, do not use the destroy argument!
* @return Previous starting address to read data from. Note that the caller is responsible to free
* the data in case of changing string pointer @p str.
*/
LIBYANG_API_DECL const char *ly_in_memory(struct ly_in *in, const char *str);
/**
* @brief Create input handler file of the given filename.
*
* @param[in] filepath Path of the file where to read data.
* @param[in] len Optional number of bytes to use from @p filepath. If 0, the @p filepath is considered to be NULL-terminated and
* the whole string is taken into account.
* @param[out] in Created input handler supposed to be passed to different ly*_parse() functions.
* @return LY_SUCCESS in case of success
* @return LY_ERR value in case of failure.
*/
LIBYANG_API_DECL LY_ERR ly_in_new_filepath(const char *filepath, size_t len, struct ly_in **in);
/**
* @brief Get or change the filepath of the file where the parser reads the data.
*
* Note that in case of changing the filepath, the current file is closed and a new one is
* created/opened instead of renaming the previous file. Also note that the previous filepath
* string is returned only in case of not changing it's value.
*
* @param[in] in Input handler.
* @param[in] filepath Optional new filepath for the handler. If and only if NULL, the current filepath string is returned.
* @param[in] len Optional number of bytes to use from @p filepath. If 0, the @p filepath is considered to be NULL-terminated and
* the whole string is taken into account.
* @return Previous filepath string in case the @p filepath argument is NULL.
* @return NULL if changing filepath succeedes and ((void *)-1) otherwise.
*/
LIBYANG_API_DECL const char *ly_in_filepath(struct ly_in *in, const char *filepath, size_t len);
/**
* @brief Get the number of parsed bytes by the last function.
*
* @param[in] in In structure used.
* @return Number of parsed bytes.
*/
LIBYANG_API_DECL size_t ly_in_parsed(const struct ly_in *in);
/**
* @brief Free the input handler.
*
* @param[in] in Input handler to free.
* @param[in] destroy Flag to free the input data buffer (for LY_IN_MEMORY) or to
* close stream/file descriptor (for LY_IN_FD and LY_IN_FILE)
*/
LIBYANG_API_DECL void ly_in_free(struct ly_in *in, ly_bool destroy);
/**
* @brief Read bytes from an input.
*
* Does not count new lines, which is expected from the caller who has better idea about
* the content of the read data and can better optimize counting.
*
* @param[in] in Input structure.
* @param[in] buf Destination buffer.
* @param[in] count Number of bytes to read.
* @return LY_SUCCESS on success,
* @return LY_EDENIED on EOF.
*/
LIBYANG_API_DECL LY_ERR ly_in_read(struct ly_in *in, void *buf, size_t count);
/**
* @brief Just skip bytes in an input.
*
* Does not count new lines, which is expected from the caller who has better idea about
* the content of the skipped data and can better optimize counting.
*
* @param[in] in Input structure.
* @param[in] count Number of bytes to skip.
* @return LY_SUCCESS on success,
* @return LY_EDENIED on EOF.
*/
LIBYANG_API_DECL LY_ERR ly_in_skip(struct ly_in *in, size_t count);
#ifdef __cplusplus
}
#endif
#endif /* LY_IN_H_ */
|
7f3fbd81eaec8f6927d0977ae88e079ad442193e
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sys/arch/rs6000/include/iplcb.h
|
582845910183463d9fe6f16a88512bc18abc34e8
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 19,639
|
h
|
iplcb.h
|
/* $NetBSD: iplcb.h,v 1.2 2015/07/11 10:32:46 kamil Exp $ */
/* Structure for the IPL Control Block on RS/6000 machines */
#ifndef _IPLCB_H_
#define _IPLCB_H_
#define MAX_BUCS 32
struct ipl_directory {
char iplcb_id[8]; /* ascii string id */
uint32_t gpr_save_off; /* offset to gpr_save area */
uint32_t cb_bitmap_size; /* size of bitmap and CB */
uint32_t bitmap_off; /* offset to bitmap */
uint32_t bitmap_size; /* size of bitmap */
uint32_t iplinfo_off;
uint32_t iplinfo_size;
uint32_t iocc_post_off;
uint32_t iocc_post_size;
uint32_t nio_post_off;
uint32_t nio_post_size;
uint32_t sjl_post_off;
uint32_t sjl_post_size;
uint32_t scsi_post_off;
uint32_t scsi_post_size;
uint32_t eth_post_off;
uint32_t eth_post_size;
uint32_t tok_post_off;
uint32_t tok_post_size;
uint32_t ser_post_off;
uint32_t ser_post_size;
uint32_t par_post_off;
uint32_t par_post_size;
uint32_t rsc_post_off;
uint32_t rsc_post_size;
uint32_t lega_post_off;
uint32_t lega_post_size;
uint32_t kbd_post_off;
uint32_t kbd_post_size;
uint32_t ram_post_off;
uint32_t ram_post_size;
uint32_t sga_post_off;
uint32_t sga_post_size;
uint32_t fm2_post_off;
uint32_t fm2_post_size;
uint32_t net_boot_result_off;
uint32_t net_boot_result_size;
uint32_t csc_result_off;
uint32_t csc_result_size;
uint32_t menu_result_off;
uint32_t menu_result_size;
uint32_t cons_result_off;
uint32_t cons_result_size;
uint32_t diag_result_off;
uint32_t diag_result_size;
uint32_t rom_scan_off; /* pres of ROMSCAN adaptor */
uint32_t rom_scan_size;
uint32_t sky_post_off;
uint32_t sky_post_size;
uint32_t global_off;
uint32_t global_size;
uint32_t mouse_off;
uint32_t mouse_size;
uint32_t vrs_off;
uint32_t vrs_size;
uint32_t taur_post_off;
uint32_t taur_post_size;
uint32_t ent_post_off;
uint32_t ent_post_size;
uint32_t vrs40_off;
uint32_t vrs40_size;
uint32_t gpr_save_area1[64];
uint32_t sysinfo_offset;
uint32_t sysinfo_size;
uint32_t bucinfo_off;
uint32_t bucinfo_size;
uint32_t procinfo_off;
uint32_t procinfo_size;
uint32_t fm2_ioinfo_off;
uint32_t fm2_ioinfo_size;
uint32_t proc_post_off;
uint32_t proc_post_size;
uint32_t sysvpd_off;
uint32_t sysvpd_size;
uint32_t memdata_off;
uint32_t memdata_size;
uint32_t l2data_off;
uint32_t l2data_size;
uint32_t fddi_post_off;
uint32_t fddi_post_size;
uint32_t golden_vpd_off;
uint32_t golden_vpd_size;
uint32_t nvram_cache_off;
uint32_t nvram_cache_size;
uint32_t user_struct_off;
uint32_t user_struct_size;
uint32_t residual_off;
uint32_t residual_size;
};
struct ipl_cb {
uint32_t gpr_save[32];
struct ipl_directory dir;
};
struct sys_info {
int nrof_procs;
int coherency_size; /* size of coherence block */
int resv_size; /* size of reservation granule */
u_char *arb_ctrl_addr; /* real addr of arbiter control reg */
u_char *phys_id_addr; /* real addr of phys id reg */
int nrof_bsrr; /* nrof 4 byte bos slot reset regs */
u_char *bssr_addr; /* real addr of bssr */
int tod_type; /* time of day type */
u_char *todr_addr; /* real address of todr regs */
u_char *rsr_addr; /* real address of reset status reg */
u_char *pksr_addr; /* RA of power/keylock status reg */
u_char *prcr_addr; /* RA of power/reset control reg */
u_char *sssr_addr; /* RA of system specific regs */
u_char *sir_addr; /* RA of system intr regs */
u_char *scr_addr; /* RA of standard conf reg */
u_char *dscr_addr; /* RA of dev spec. config reg */
int nvram_size; /* in bytes */
u_char *nvram_addr; /* RA of nvram */
u_char *vpd_rom_addr; /* RA of VPD ROM space */
int ipl_rom_size; /* in bytes */
u_char *ipl_rom_addr; /* RA of IPL ROM space */
u_char *g_mfrr_addr; /* RA of global mffr reg if != 0 */
u_char *g_tb_addr; /* RA of global timebase if != 0 */
int g_tb_type; /* global timebase type */
int g_tb_mult; /* global timebase multiplier */
int sp_errorlog_off;/* offset from BA of NVRAM to
* service processor error log tbl */
u_char *pcccr_addr; /* RA of connectivity config reg */
u_char *spocr_addr; /* RA of software power off ctrl reg */
u_char *pfeivr_addr; /* RA of EPOW ext intr reg */
/* Available Processor Mask interface */
int access_id_waddr;/* type of access to loc_waddr */
u_char *loc_waddr; /* RA of APM space write */
int access_id_raddr;/* type of access to loc_raddr */
u_char *loc_raddr; /* RA of APM space read */
int architecture; /* Architecutre of this box:
* RS6K = 1 = rs/6000 old mca
* RSPC = 2 = PReP */
int implementation;
/* Implementation of this box:
* RS6K_UP_MCA = 1 = POWER1, POWER2, RSC, PPC single proc
* RS6K_SMP_MCA = 2 = PPC SMP
* RSCP_UP_PCI = 3 = PPC/PReP single proc
*/
char pkg_desc[16]; /* NULL term ASCII string: */
/* "rs6k" POWER1, POWER2, RSC, PPC single proc
* "rs6ksmp" PPC SMP
* "rspc" PReP
*/
};
typedef struct buid_data {
int buid_value; /* assigned BUID value.
* values only have meaning if nrof_buids != 0.
* assigned in order until nrof_buids is satisfied, unused
* ones will be -1
*/
u_char *buid_sptr; /* pointer to buid's post structure */
} buid_data_t;
struct buc_info {
uint32_t nrof_structs; /* nrof bucs present */
uint32_t index; /* 0 <= index <= num_of_structs - 1 */
uint32_t struct_size; /* in bytes */
int bsrr_off; /* bus slot reset reg offset */
uint32_t bsrr_mask; /* bssr mask */
int bscr_val; /* config register value to enable */
int cfg_status; /* 0 buc not configured
* 1 buc configd via config regs
* 2 configd via hardware defaults
* -1 config failed */
int dev_type; /* 1 buc is executable memory
* 2 buc is a processor
* 3 buc is an io type */
int nrof_buids; /* nrof buids needed by buc <=4 */
buid_data_t buid_data[4];
int mem_alloc1; /* 1st mem alloc required in MB */
u_char *mem_addr1; /* RA of mem_alloc1 area */
int mem_alloc2; /* 2nd mem alloc required */
u_char *mem_addr2; /* RA of mem_alloc2 area */
int vpd_rom_width; /* width of vpd interface in bytes */
int cfg_addr_incr; /* config addr increment in bytes */
int device_id_reg; /* std. config reg contents */
uint32_t aux_info_off; /* iplcb offset to the device specific
* array for this buc. ie, if this is
* a proc, offset is the
* processor_info struct.
*/
uint32_t feature_rom_code; /* romscan post flag */
uint32_t IOCC_flag; /* 0 not IOCC 1 = IOCC */
char location[4]; /* location of the BUC */
};
struct proc_info {
uint32_t nrof_structs;
uint32_t index;
uint32_t struct_size;
uint32_t per_buc_info_off; /* iplcb offset to buc_info for me */
u_char *proc_int_area;
/* Base Addr of this proc's intr presentation layer regs
* BA+0 (CPPR||XISR without side effects)
* BA+4 (CPPR||XISR with side effects)
* BA+8 (DSIER)
* BA+12 (MFRR)
* BA+xx (Additional Optional MFRR's)
*/
uint32_t proc_int_area_size; /* size/4 == nrof intr pres regs */
int proc_present; /* 0 no, -1 dead, 1 running, 2 loop
* 3 reset state */
uint32_t test_run; /* which tests were run on proc */
uint32_t test_stat; /* test status */
int link; /* 0 = loop until nonzero !=0 branch to
* link addr */
u_char *lind_addr; /* see above */
union {
uint32_t p_id; /* unique proc id */
struct {
uint16_t p_nodeid; /* phys NUMA nodeid */
uint16_t p_cpuid; /* phys cpu id */
} s0;
} u0;
int architecture; /* proc arch */
int implementation; /* proc type */
int version; /* proc version */
int width; /* proc data word size */
int cache_attrib; /* bit 0 = cache not, cache is present
* bit 1 = separate cache/combined */
int coherency_size; /* size of coherence block */
int resv_size; /* size of reservation granule */
int icache_block; /* L1 icache block size */
int dcache_block; /* L1 dcache block size */
int icache_size; /* L1 icache size */
int dcache_size; /* L1 dcache size */
int icache_line; /* L1 icache line size */
int dcache_line; /* L1 dcache line size */
int icache_asc; /* L1 icache associativity */
int dcache_asc; /* L1 dcache associativity */
int L2_cache_size; /* L2 cache size */
int L2_cach_asc; /* L2 cache associativity */
int tlb_attrib; /* tlb buffer attribute bitfield
* 0 present/not present
* 1 separate/combined i/d
* 4 proc supports tlbia */
int itlb_size; /* entries */
int dtlb_size;
int itlb_asc;
int dtlb_asc;
int slb_attrib; /* segment lookaside buffer bitfield
* 0 slb not/present
* 1 separate/combined i/d */
int islb_size; /* entries */
int dslb_size;
int islb_asc;
int dslb_asc;
int priv_lck_cnt; /* spin lock count */
int rtc_type; /* RTC type */
int rtcXint; /* nanosec per timebase tick int mult*/
int rtcXfrac; /* same, but fraction multiplier */
int bus_freq; /* bus clock in Hz */
int tb_freq; /* time base clockfreq */
char proc_desc[16]; /* processor name ASCII string */
};
/* One SIMM is a nibble wide and will have the value of:
* 0x0 == good or 0xf == bad
*/
struct simm_def {
u_char simm_7and8;
u_char simm_3and4;
u_char simm_5and6;
u_char simm_1and2;
};
/*
* The IPL Info structure is mostly good for telling us the cache sizes and
* model codes. The whole thing is unreasonably large and verbose.
*/
struct ipl_info {
/* IPL controller and device interface routine */
u_char *iplcnd_ptr; /* ROM Reserved */
uint32_t iplcnd_size;
/* NVRAM expansion code */
u_char *nvram_exp_ptr; /* ROM Reserved */
uint32_t nvram_exp_size;
/* IPL ROM stack high addr */
u_char *ipl_ros_stack_ptr; /* ROM Reserved */
uint32_t ipl_ros_stack_size;
/* IPL Record */
u_char *ipl_rec_ptr; /* ROM Reserved */
uint32_t ipl_rec_size;
/* Lowest addr needed by IPL ROM */
u_char *ros_workarea_lwm; /* ROM Reserved */
/* IPL ROM entry table. t=0, SR15 */
u_char *ros_entry_tbl_ptr; /* ROM Reserved */
uint32_t ros_entry_tbl_size;
/* Memory bit maps nrof bytes per bit. 16K/bit */
uint32_t bit_map_bytes_per_bit; /* ROM Reserved */
/* Highest addressable real address byte + 1. */
uint32_t ram_size; /* ROM Reserved */
/*
* Model Field:
* 0xWWXXYYZZ
* WW == 0x00. hardware is SGR ss32 or ss64. (ss is speed in MHz)
* icache is 8k.
* XX == reserved
* YY == reserved
* ZZ == model code:
* bits 0,1 (low order) == style
* 00=Tower 01=Desktop 10=Rack 11=Reserved
* bits 2,3 == relative speed
* 00=slow 01=Medium 10=High 11=Fast
* bit 4 == number of combo chips
* 0 = 2 chips. 1 = 1 chip.
* bit 5 == Number of DCU's.
* 0 = 4 DCU's cache is 64k.
* 1 = 2 DCU's cache is 32K.
* bits 6,7 = Reserved
* WW != 0x00:
* WW == 0x01. Hardware is SGR ss32 or ss64 RS1. (POWER)
* WW == 0x02. RSC (RISC Single Chip)
* WW == 0x04. POWER2/RS2
* WW == 0x08. PowerPC
* XX == Package type
* bits 0,1 (low order) == style
* 00=Tower 01=Desktop 10=Rack 11=Entry Server
* bit 2 - AIX Hardware verification test supp (rspc)
* bit 3 - AIX Hardware error log analysis supp (rspc)
* bit 4-7 reserved
* YY == Reserved
* ZZ == Model code. (useless)
* Icache K size is obtained from entry icache.
* Dcache K size is obtained from entry dcache.
*/
uint32_t model;
/* Power status and keylock register decode. IO Addr 0x4000E4.
* 32bit reg:
* Power Status bits 0-9
* Reserved bits 10-27
* Keylock decode bits 28-31: (X == don't care)
* 28 29 30 31
* 1 1 X X Workstation
* 0 1 X X Supermini
* 0 0 X X Expansion
* X X 1 1 Normal mode
* X X 1 0 Service mode
* X X 0 1 Secure mode
*/
uint32_t powkey_reg; /* ROM Reserved */
/* Set to zero during power on, inc'd with each warm IPL */
int32_t soft_reboot_count;
/* Set and used by IPL controller, all are ROM Reserved */
int32_t nvram_section1_valid; /* 0 if CRC bad */
int32_t nvram_exp_valid; /* 0 if CRC bad */
u_char prevboot_dev[36]; /* last normal mode ipl */
char reserved[28];
/* Pointer to the IPLCB in memory */
u_char *iplcb_ptr; /* ROM Reserved */
/* Pointer to compressed BIOS code */
u_char *bios_ptr; /* ROM Reserved */
uint32_t bios_size;
uint32_t cre[16]; /* Storage Configuration Registers. */
uint32_t bscr[16]; /* Bit steering registers */
/* Unimplemented and ROM Reserved */
struct {
uint32_t synd;
uint32_t addr;
uint32_t status;
} single_bit_error[16];
uint32_t reserved_array[5*16];
/* Memory extent test indicators */
u_char extent_test_ind[16]; /* 0 = untested, 1 = tested */
/* Memory bit steering register settig conflict indicator */
u_char bit_steer_conflict[16]; /* 1 = conflict */
/* Set by IPL controller, ROM Reserved */
uint32_t ipl_ledval; /* IPL LED value */
uint32_t ipl_device; /* ??? */
char unused[18];
/* Copied from IPL Rom VPD area */
char vpd_planar_partno[8];
char vpd_planar_ecno[8];
char vpd_proc_serialno[8];
char vpd_ipl_ros_partno[8];
char vpd_ipl_ros_version[14];
char ipl_ros_copyright[49];
char ipl_ros_timestamp[10];
/* Copied from NVRAM */
union {
uint32_t chip_signature;
struct chip_sig {
u_char cop_bus_addr;
u_char obsolete_u_num;
u_char dd_num;
u_char partno;
} chip_sig;
} floating_point, fixed_point, instruction_cache_unit,
storage_control_unit, combo_1, combo_2, data_control_unit_0,
data_control_unit_1, data_control_unit_2, data_control_unit_3;
/* Memory SIMM error information.
* 8 cards (A-H) 8 simms per card (1-8).
* Two cache line sizes. if 128 use memory_card_1n data,
* otherwise use memory_card_9n or memory_card_Tn.
*/
union {
char memcd_errinfo[32];
uint32_t slots_of_simm[8];
struct { /* cache line size 128 */
struct simm_def memory_card_1H;
struct simm_def memory_card_1F;
struct simm_def memory_card_1G;
struct simm_def memory_card_1E;
struct simm_def memory_card_1D;
struct simm_def memory_card_1B;
struct simm_def memory_card_1C;
struct simm_def memory_card_1A;
} simm_stuff_1;
struct { /* cache line size 64 */
struct simm_def memory_card_9H;
struct simm_def memory_card_9D;
struct simm_def memory_card_9F;
struct simm_def memory_card_9B;
struct simm_def memory_card_9G;
struct simm_def memory_card_9C;
struct simm_def memory_card_9E;
struct simm_def memory_card_9A;
} simm_stuff_9;
struct { /* cache line size 64 */
struct simm_def memory_card_TB;
struct simm_def memory_card_TC;
} simm_stuff_T;
} simm_info;
/* MESR error info at IPL ROM memory config time.
* Two cache line sizes, similar to above.
* find one of the following values in the word variable:
* 0x00000000 no MESR error occurred when configuring this extent
* 0xe0400000 timeout. no memcard is in the slot.
* otherwise, an error occurred, so the card exists but will not
* be used.
*/
union {
char extent_errinfo[64];
struct { /* cacheline 128 */
uint32_t ext_0_slot_HandD;
uint32_t ext_1_slot_HandD;
uint32_t ext_2_slot_HandD;
uint32_t ext_3_slot_HandD;
uint32_t ext_4_slot_FandB;
uint32_t ext_5_slot_FandB;
uint32_t ext_6_slot_FandB;
uint32_t ext_7_slot_FandB;
uint32_t ext_8_slot_GandC;
uint32_t ext_9_slot_GandC;
uint32_t ext_10_slot_GandC;
uint32_t ext_11_slot_GandC;
uint32_t ext_12_slot_EandA;
uint32_t ext_13_slot_EandA;
uint32_t ext_14_slot_EandA;
uint32_t ext_15_slot_EandA;
} MESR_err_1;
struct { /* cacheline of 64 */
uint32_t ext_0_slot_H;
uint32_t ext_1_slot_H;
uint32_t ext_2_slot_D;
uint32_t ext_3_slot_D;
uint32_t ext_4_slot_F;
uint32_t ext_5_slot_F;
uint32_t ext_6_slot_B;
uint32_t ext_7_slot_B;
uint32_t ext_8_slot_G;
uint32_t ext_9_slot_G;
uint32_t ext_10_slot_C;
uint32_t ext_11_slot_C;
uint32_t ext_12_slot_E;
uint32_t ext_13_slot_E;
uint32_t ext_14_slot_A;
uint32_t ext_15_slot_A;
} MESR_err_9;
} config_err_info;
char unused_errinfo[64];
/*
* Memory card VPD data area
* cacheline sizes like above.
* 0xffffffff = card is present, no VPD
* 0x22222222 = card present with errors
* 0x11111111 = no card
* otherwise it's good.
*/
union {
char memcd_vpd[128];
struct { /* cacheline 128 */
char ext_0_HandD[20];
char ext_4_FandB[20];
char ext_8_GandC[20];
char ext_12_EandA[20];
} memory_vpd_1;
struct { /* cacheline 64 */
char ext_0_slot_H[10];
char dmy_0[2];
char ext_2_slot_D[10];
char dmy_2[2];
char ext_4_slot_F[10];
char dmy_4[2];
char ext_6_slot_B[10];
char dmy_6[2];
char ext_8_slot_G[10];
char dmy_8[2];
char ext_10_slot_C[10];
char dmy_10[2];
char ext_12_slot_E[10];
char dmy_12[2];
char ext_14_slot_A[10];
char dmy_14[2];
} memory_vpd_9;
} memcd_vpd;
int32_t cache_line_size;
/* Component reset register test results for BUID 20.
* Anything other than 0x00AA55FF is horked.
*/
int32_t CRR_results;
/* IO planar level register
* 0x1YYXXXXX = family 2
* 0x8YYXXXXX = table/desktop YY is engineering level, X reserved
* -1 == not present
* Values in MSB has following meaning:
* 0x80 = table/desktop
* 0x40 = reserved
* 0x20 = reserved
* 0x10 = rack planar
* 0x08 = standard IO
* 0x04 = power connector not connected
* 0x02, 0x01 reserved
*/
int32_t io_planar_level_reg; /* BUID 20 */
int32_t io_planar_level_reg_21;
int32_t io_planar_level_reg_22;
int32_t io_planar_level_reg_23;
/* Component register test results for the other BUID's */
int32_t CRR_results_21;
int32_t CRR_results_22;
int32_t CRR_results_23;
/* CRR results for BUID 20 */
int32_t CRR_results_20_0; /* should contain 0x00000000 */
int32_t CRR_results_20_a; /* should contain 0xaaaaaaaa */
int32_t CRR_results_20_5; /* should contain 0x55555555 */
int32_t CRR_results_20_f; /* should contain 0xffffffff */
int32_t CRR_results_21_0; /* should contain 0x00000000 */
int32_t CRR_results_21_a; /* should contain 0xaaaaaaaa */
int32_t CRR_results_21_5; /* should contain 0x55555555 */
int32_t CRR_results_21_f; /* should contain 0xffffffff */
int32_t CRR_results_22_0; /* should contain 0x00000000 */
int32_t CRR_results_22_a; /* should contain 0xaaaaaaaa */
int32_t CRR_results_22_5; /* should contain 0x55555555 */
int32_t CRR_results_22_f; /* should contain 0xffffffff */
int32_t CRR_results_23_0; /* should contain 0x00000000 */
int32_t CRR_results_23_a; /* should contain 0xaaaaaaaa */
int32_t CRR_results_23_5; /* should contain 0x55555555 */
int32_t CRR_results_23_f; /* should contain 0xffffffff */
/* IO interrupt test results for BUID 21 */
int32_t io_intr_results_21;
/* pointer to IPL rom code in mem */
u_char *rom_ram_addr; /* ROM Reserved */
uint32_t rom_ram_size;
/* Storage control config register, ROM Reserved */
uint32_t sccr_toggle_one_meg;
/* read from OCS NVRAM area */
uint32_t aix_model_code; /* 4 bytes from 0xA0003d0 */
/* The following entries are read from the OCS NVRAM area
* ---------: dcache size = 0x0040 icache size = 0x0008
* ---------: dcache size = 0x0020 icache size = 0x0008
* ---------: dcache size = 0x0008 icache size = 0x0008
* ---------: dcache size = 0x0040 icache size = 0x0020
* ---------: dcache size = 0x0020 icache size = 0x0008
*/
int32_t dcache_size; /* 4 bytes from NVRAM 0xA0003d4 */
int32_t icache_size; /* 4 bytes from NVRAM address 0xA0003d8 */
char vpd_model_id[8];
/* saves the ptr to lowest addr needed by IPL rom */
u_char *low_boundary_save; /* ROM Reserved */
/* Pointer to romscan entry point and data area. ROM Reserved */
u_char *romscan_code_ptr; /* runtime entry point of rom scan */
u_char *rom_boot_data_area; /* runtime user ram ( >= 4K)*/
};
#endif /* _IPLCB_H_ */
|
1b43e0b49166364b1d1d1b33bc83e865e4cced59
|
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
|
/editors/qtcreator/patches/patch-src_libs_3rdparty_sqlite_sqlite3.c
|
39514972bacbc52b458a2f2e9a6f3a4027d5f5e9
|
[] |
no_license
|
NetBSD/pkgsrc
|
a0732c023519650ef821ab89c23ab6ab59e25bdb
|
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
|
refs/heads/trunk
| 2023-09-01T07:40:12.138283
| 2023-09-01T05:25:19
| 2023-09-01T05:25:19
| 88,439,572
| 321
| 138
| null | 2023-07-12T22:34:14
| 2017-04-16T20:04:15
| null |
UTF-8
|
C
| false
| false
| 630
|
c
|
patch-src_libs_3rdparty_sqlite_sqlite3.c
|
$NetBSD: patch-src_libs_3rdparty_sqlite_sqlite3.c,v 1.1 2021/11/20 20:51:14 wiz Exp $
By default, the code tries to use localtime_s and fails.
--- src/libs/3rdparty/sqlite/sqlite3.c.orig 2021-11-03 11:13:14.000000000 +0000
+++ src/libs/3rdparty/sqlite/sqlite3.c
@@ -22478,6 +22478,10 @@ static void clearYMD_HMS_TZ(DateTime *p)
** already, check for an MSVC build environment that provides
** localtime_s().
*/
+#ifdef __NetBSD__
+#undef HAVE_LOCALTIME_R
+#define HAVE_LOCALTIME_R 1
+#endif
#if !HAVE_LOCALTIME_R && !HAVE_LOCALTIME_S \
&& defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE)
#undef HAVE_LOCALTIME_S
|
39b425f133f7c954360e699093a8dc452f71e53b
|
a11e4bdd6157b22067288d860507fa20abea033d
|
/src/modules/conf_display/e_int_config_dpms.c
|
5f617047960ec048aca3422e56800513e9981124
|
[
"BSD-2-Clause"
] |
permissive
|
JeffHoogland/moksha
|
85a0f39dc97daa61d35e64a511013d21552db288
|
c56013644d8cd8e32101bb38a8d1e4ebd9d47f37
|
refs/heads/master
| 2023-08-24T05:39:13.415948
| 2023-08-22T19:49:32
| 2023-08-22T19:49:32
| 34,704,822
| 179
| 51
|
NOASSERTION
| 2023-09-06T14:41:31
| 2015-04-28T02:59:19
|
C
|
UTF-8
|
C
| false
| false
| 6,664
|
c
|
e_int_config_dpms.c
|
#include "e.h"
static void *_create_data(E_Config_Dialog *cfd);
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static int _advanced_check_changed(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static int _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas,
E_Config_Dialog_Data *cfdata);
struct _E_Config_Dialog_Data
{
E_Config_Dialog *cfd;
Evas_Object *backlight_slider;
char *bl_dev;
int enable_idle_dim;
double backlight_normal;
double backlight_dim;
double backlight_timeout;
double backlight_transition;
};
E_Config_Dialog *
e_int_config_dpms(E_Container *con, const char *params __UNUSED__)
{
E_Config_Dialog *cfd;
E_Config_Dialog_View *v;
if (e_config_dialog_find("E", "screen/power_management"))
return NULL;
v = E_NEW(E_Config_Dialog_View, 1);
v->create_cfdata = _create_data;
v->free_cfdata = _free_data;
v->basic.apply_cfdata = _advanced_apply_data;
v->basic.create_widgets = _advanced_create_widgets;
v->basic.check_changed = _advanced_check_changed;
v->override_auto_apply = 1;
cfd = e_config_dialog_new(con, _("Backlight Settings"), "E",
"screen/power_management", "preferences-system-power-management",
0, v, NULL);
return cfd;
}
static void
_fill_data(E_Config_Dialog_Data *cfdata)
{
cfdata->backlight_normal = e_config->backlight.normal * 100.0;
cfdata->backlight_dim = e_config->backlight.dim * 100.0;
cfdata->backlight_transition = e_config->backlight.transition;
cfdata->enable_idle_dim = e_config->backlight.idle_dim;
cfdata->backlight_timeout = e_config->backlight.timer;
}
static void *
_create_data(E_Config_Dialog *cfd)
{
E_Config_Dialog_Data *cfdata;
cfdata = E_NEW(E_Config_Dialog_Data, 1);
cfdata->cfd = cfd;
_fill_data(cfdata);
return cfdata;
}
static void
_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
{
E_FREE(cfdata);
}
static int
_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
{
e_config->backlight.normal = cfdata->backlight_normal / 100.0;
e_config->backlight.dim = cfdata->backlight_dim / 100.0;
e_config->backlight.transition = cfdata->backlight_transition;
e_config->backlight.timer = lround(cfdata->backlight_timeout);
e_config->backlight.idle_dim = cfdata->enable_idle_dim;
e_backlight_mode_set(NULL, E_BACKLIGHT_MODE_NORMAL);
e_backlight_level_set(NULL, e_config->backlight.normal, -1.0);
if ((e_config->backlight.idle_dim) &&
(e_config->backlight.timer > (e_config->screensaver_timeout)))
{
e_config->screensaver_timeout = cfdata->backlight_timeout;
e_config->dpms_standby_timeout = e_config->screensaver_timeout;
e_config->dpms_suspend_timeout = e_config->screensaver_timeout;
e_config->dpms_off_timeout = e_config->screensaver_timeout;
}
e_screensaver_update();
e_dpms_update();
e_backlight_update();
e_config_save_queue();
return 1;
}
/* advanced window */
static int
_advanced_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
{
e_widget_disabled_set(cfdata->backlight_slider, !cfdata->enable_idle_dim); // set state from saved config
return (!EINA_DBL_EQ(e_config->backlight.normal * 100.0, cfdata->backlight_normal)) ||
(!EINA_DBL_EQ(e_config->backlight.dim * 100.0, cfdata->backlight_dim)) ||
(!EINA_DBL_EQ(e_config->backlight.transition, cfdata->backlight_transition)) ||
(!EINA_DBL_EQ(e_config->backlight.timer, cfdata->backlight_timeout)) ||
(e_config->backlight.idle_dim != cfdata->enable_idle_dim);
}
static int
_advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
{
_apply_data(cfd, cfdata);
return 1;
}
static Evas_Object *
_advanced_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata)
{
Evas_Object *o, *ob;
Eina_List *devs, *l;
const char *s, *label;
o = e_widget_list_add(evas, 0, 0);
/*
{
char buf[32];
switch (e_config->backlight.mode)
{
case 0:
snprintf(buf, sizeof(buf), "%s: RANDR", _("Mode"));
break;
case 1:
snprintf(buf, sizeof(buf), "%s: EEZE", _("Mode"));
break;
default:
snprintf(buf, sizeof(buf), "%s: NONE", _("Mode"));
}
ob = e_widget_label_add(evas, buf);
e_widget_list_object_append(o, ob, 0, 1, 0.5);
}
*/
ob = e_widget_label_add(evas, _("Normal Backlight"));
e_widget_list_object_append(o, ob, 1, 1, 0.5);
ob = e_widget_slider_add(evas, 1, 0, _("%3.0f"), 0.0, 100.0, 1.0, 0,
&(cfdata->backlight_normal), NULL, 100);
e_widget_list_object_append(o, ob, 1, 1, 0.5);
ob = e_widget_label_add(evas, _("Dim Backlight"));
e_widget_list_object_append(o, ob, 1, 1, 0.5);
ob = e_widget_slider_add(evas, 1, 0, _("%3.0f"), 0.0, 100.0, 1.0, 0,
&(cfdata->backlight_dim), NULL, 100);
e_widget_list_object_append(o, ob, 1, 1, 0.5);
ob = e_widget_check_add(evas, _("Idle Fade Time"), &(cfdata->enable_idle_dim));
e_widget_list_object_append(o, ob, 1, 1, 0.5);
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f second(s)"), 5.0, 300.0, 1.0, 0,
&(cfdata->backlight_timeout), NULL, 100);
cfdata->backlight_slider = ob;
e_widget_disabled_set(ob, !cfdata->enable_idle_dim); // set state from saved config
e_widget_list_object_append(o, ob, 1, 1, 0.5);
ob = e_widget_label_add(evas, _("Fade Time"));
e_widget_list_object_append(o, ob, 1, 1, 0.5);
ob = e_widget_slider_add(evas, 1, 0, _("%1.1f second(s)"), 0.0, 5.0, 0.1, 0,
&(cfdata->backlight_transition), NULL, 100);
e_widget_list_object_append(o, ob, 1, 1, 0.5);
devs = (Eina_List *)e_backlight_devices_get();
if ((devs) && (eina_list_count(devs) > 1))
{
int sel = -1, i = 0;
ob = e_widget_ilist_add(evas, 16, 16, NULL);
e_widget_size_min_set(ob, 100, 100);
e_widget_list_object_append(o, ob, 1, 1, 0.5);
EINA_LIST_FOREACH(devs, l, s)
{
label = strchr(s, '/');
if (!label) label = s;
else label++;
e_widget_ilist_append(ob, NULL, label, NULL, NULL, s);
if ((e_config->backlight.sysdev) &&
(!strcmp(e_config->backlight.sysdev, s)))
sel = i;
i++;
}
e_widget_ilist_go(ob);
if (sel >= 0) e_widget_ilist_selected_set(ob, sel);
}
return o;
}
|
39cb611bb3b08f8309b4227e9fff6a6841f72908
|
fb0f9abad373cd635c2635bbdf491ea0f32da5ff
|
/src/coreclr/gc/dac_generation_fields.h
|
c67197a7dc380cec00c495aafebbd8834bc899eb
|
[
"MIT"
] |
permissive
|
dotnet/runtime
|
f6fd23936752e202f8e4d6d94f3a4f3b0e77f58f
|
47bb554d298e1e34c4e3895d7731e18ad1c47d02
|
refs/heads/main
| 2023-09-03T15:35:46.493337
| 2023-09-03T08:13:23
| 2023-09-03T08:13:23
| 210,716,005
| 13,765
| 5,179
|
MIT
| 2023-09-14T21:58:52
| 2019-09-24T23:36:39
|
C#
|
UTF-8
|
C
| false
| false
| 234
|
h
|
dac_generation_fields.h
|
DEFINE_FIELD (allocation_context, gc_alloc_context)
DEFINE_DPTR_FIELD (start_segment, dac_heap_segment)
#ifndef USE_REGIONS
DEFINE_FIELD (allocation_start, uint8_t*)
#else
DEFINE_MISSING_FIELD(allocation_start)
#endif
|
0348704b966ad9bd08ceb9dba95f23f84e63bd6b
|
0ff5c3178e87a28a82165bfa908d9319cf7a2323
|
/10. Linked List/c lang/merge_common_LL.c
|
875c3c850ad2a6a0068c89e8719ec2ace0e93036
|
[
"MIT"
] |
permissive
|
SR-Sunny-Raj/Hacktoberfest2021-DSA
|
40bf8385ed976fd81d27340514579b283c339c1f
|
116526c093ed1ac7907483d001859df63c902cb3
|
refs/heads/master
| 2023-01-31T07:46:26.016367
| 2023-01-26T12:45:32
| 2023-01-26T12:45:32
| 262,236,251
| 261
| 963
|
MIT
| 2023-03-25T14:22:10
| 2020-05-08T05:36:07
|
C++
|
UTF-8
|
C
| false
| false
| 3,005
|
c
|
merge_common_LL.c
|
/*Aim: To write a C program to merge the common and non-common elements of linked lists A and B into separate linked lists*/
#include <stdio.h>
#include <stdlib.h>
struct node
{ int data;
struct node* next;
struct node* prev;
};
struct node* head3=NULL;
struct node* head4=NULL;
void insert_l(struct node** head_r,int item)
{ struct node* newNode=(struct node*)malloc(sizeof(struct node));
newNode->data=item;
newNode->next=(*head_r);
newNode->prev=NULL;
if((*head_r)!=NULL)
(*head_r)->prev=newNode;
(*head_r)=newNode;
}
void insert_r(struct node** head_r,int item)
{ struct node* newNode=(struct node*)malloc(sizeof(struct node));
struct node* last=(*head_r);
newNode->data=item;
newNode->next=NULL;
if((*head_r)==NULL)
{
newNode->prev=NULL;
(*head_r)=newNode;
return;
}
while(last->next!=NULL)
last=last->next;
last->next=newNode;
newNode->prev=last;
return;
}
void merge(struct node* head_r1,struct node* head_r2)
{ struct node* t1=head_r1;
struct node* t2;
for(;t1!=NULL;t1=t1->next)
{ int val=t1->data;
int x=0;
for(t2=head_r2;t2!=NULL;t2=t2->next)
{
if(t2->data==val)
{ insert_r(&head3,val);
x=1; break;
}
}
if(x==0)
{ insert_r(&head4,t1->data);
}
}
t1=head_r2;
for(;t1!=NULL;t1=t1->next)
{ int val=t1->data;
int x=0;
for(t2=head3;t2!=NULL;t2=t2->next)
{
if(t2->data==val)
{ x=1; break;
}
}
if(x==0)
{ insert_r(&head4,t1->data);
}
}
}
void printList(struct node* node)
{
while(node!=NULL)
{ printf("%d->",node->data);
node=node->next;
}
}
int main()
{ int ch,item;
struct node* head1=NULL;
struct node* head2=NULL;
do{
printf("\n1.INSERT_A");
printf("\n2.INSERT_B");
printf("\n3.MERGE A AND B");
printf("\n4.EXIT");
printf("\nEnter choice:");
scanf("%d",&ch);
switch(ch)
{ case 1: printf("\nEnter item:");
scanf("%d",&item);
insert_r(&head1,item);
printf("\nList A:\n");
printList(head1);
break;
case 2: printf("\nEnter item:");
scanf("%d",&item);
insert_r(&head2,item);
printf("\nList B:\n");
printList(head2);
break;
case 3: merge(head1,head2);
printf("\nList with common elements:\n");
printList(head3);
printf("\nList with non-common elements:\n");
printList(head4);
break;
case 4: exit(0);
default:printf("\nInvalid choice..");
}
}while(1);
return 0;
}
|
14a8a1e04a3a4ad3578d65388e415ed6ec4aa22e
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/arch/hexagon/mm/uaccess.c
|
34127261c2b7124d4fc43e36ddb7bb84dcf7900b
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 1,838
|
c
|
uaccess.c
|
/*
* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
/*
* Support for user memory access from kernel. This will
* probably be inlined for performance at some point, but
* for ease of debug, and to a lesser degree for code size,
* we implement here as subroutines.
*/
#include <linux/types.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
/*
* For clear_user(), exploit previously defined copy_to_user function
* and the fact that we've got a handy zero page defined in kernel/head.S
*
* dczero here would be even faster.
*/
__kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count)
{
long uncleared;
while (count > PAGE_SIZE) {
uncleared = __copy_to_user_hexagon(dest, &empty_zero_page,
PAGE_SIZE);
if (uncleared)
return count - (PAGE_SIZE - uncleared);
count -= PAGE_SIZE;
dest += PAGE_SIZE;
}
if (count)
count = __copy_to_user_hexagon(dest, &empty_zero_page, count);
return count;
}
unsigned long clear_user_hexagon(void __user *dest, unsigned long count)
{
if (!access_ok(VERIFY_WRITE, dest, count))
return count;
else
return __clear_user_hexagon(dest, count);
}
|
e0197f90edccfbe41b430db99343128fa8dc5521
|
dae15b230f6a39e8451420b2dea61fb719f9ffdf
|
/example/socket/socket_connect_udp.h
|
016e49290489ead37bed74ba918423ee966c6437
|
[
"BSD-3-Clause",
"GPL-1.0-or-later"
] |
permissive
|
OpenFastPath/ofp
|
2b97bbd152fd877cb8b2125128d6826c0f4491dd
|
6b48500af9752c7d51a290390751988759a8256d
|
refs/heads/master
| 2023-05-25T15:21:17.682339
| 2023-05-10T07:14:01
| 2023-05-10T11:01:16
| 37,121,923
| 367
| 146
|
BSD-3-Clause
| 2023-09-13T14:19:24
| 2015-06-09T09:08:43
|
C
|
UTF-8
|
C
| false
| false
| 632
|
h
|
socket_connect_udp.h
|
/* Copyright (c) 2014, ENEA Software AB
* Copyright (c) 2014, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __SOCKET_CONNECT_UDP_H__
#define __SOCKET_CONNECT_UDP_H__
int connect_udp4(int fd);
int connect_bind_udp4(int fd);
int connect_shutdown_udp4(int fd);
int connect_shutdown_bind_udp4(int fd);
#ifdef INET6
int connect_udp6(int fd);
int connect_bind_udp6(int fd);
int connect_shutdown_udp6(int fd);
int connect_shutdown_bind_udp6(int fd);
int connect_shutdown_udp6_any(int fd);
int connect_shutdown_bind_udp6_any(int fd);
#endif /* INET6 */
#endif /* __SOCKET_CONNECT_UDP_H__ */
|
698f5f1287e6062b9ebb1ae3723eb05b02fccc9a
|
d61b532db0d3e08818338cfaac530a1ced1ffe3b
|
/lang/cem/libcc.ansi/headers/stdbool.h
|
9f3b67506451414fa6b48540cdef47835e5b1182
|
[
"LicenseRef-scancode-other-permissive"
] |
permissive
|
davidgiven/ack
|
61049c7a8e95ff61a77b1edd3c22bb290720e276
|
db5a32c68c4a60ca26a3927a799ea662b5b2b0e5
|
refs/heads/default
| 2023-08-29T07:33:12.771205
| 2023-07-08T20:17:27
| 2023-07-08T20:17:27
| 37,686,316
| 376
| 74
|
NOASSERTION
| 2023-07-08T20:17:28
| 2015-06-18T21:33:42
|
C
|
UTF-8
|
C
| false
| false
| 334
|
h
|
stdbool.h
|
/*
* stdarg.h - variable arguments
*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Id$ */
#ifndef _STDBOOL_H
#define _STDBOOL_H
typedef int bool;
#define bool int
#define true 1
#define false 0
#endif
|
877e76d9e9897a29af11d07a7042b38335d5ef1d
|
450916eee7580beb928ed8f387db4f0a8c1aa508
|
/src/amuse/community/gadget2/src/timestep.c
|
d0c3568bc330d918e13e88e99262090551d33902
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
amusecode/amuse
|
42095545893f5a86ea79c2a52ce54d3ce8eb204f
|
b57c1e2fda1457d5025307be105c2aa59b19b574
|
refs/heads/main
| 2023-08-31T04:50:48.880044
| 2023-08-30T12:00:20
| 2023-08-30T12:00:20
| 18,516,331
| 158
| 118
|
Apache-2.0
| 2023-08-30T12:00:22
| 2014-04-07T12:35:07
|
AMPL
|
UTF-8
|
C
| false
| false
| 20,165
|
c
|
timestep.c
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include "allvars.h"
#include "proto.h"
/*! \file timestep.c
* \brief routines for 'kicking' particles in momentum space and assigning new timesteps
*/
static double fac1, fac2, fac3, hubble_a, atime, a3inv;
static double dt_displacement = 0;
/*! This function advances the system in momentum space, i.e. it does apply
* the 'kick' operation after the forces have been computed. Additionally, it
* assigns new timesteps to particles. At start-up, a half-timestep is
* carried out, as well as at the end of the simulation. In between, the
* half-step kick that ends the previous timestep and the half-step kick for
* the new timestep are combined into one operation.
*/
void advance_and_find_timesteps(void)
{
int i, j, no, ti_step, ti_min, tend, tstart;
double dt_entr, dt_entr2, dt_gravkick, dt_hydrokick, dt_gravkick2, dt_hydrokick2, t0, t1;
double minentropy, aphys;
FLOAT dv[3];
#ifdef FLEXSTEPS
int ti_grp;
#endif
#if defined(PSEUDOSYMMETRIC) && !defined(FLEXSTEPS)
double apred, prob;
int ti_step2;
#endif
#ifdef PMGRID
double dt_gravkickA, dt_gravkickB;
#endif
#ifdef MAKEGLASS
double disp, dispmax, globmax, dmean, fac, disp2sum, globdisp2sum;
#endif
#ifdef MORRIS97VISC
double soundspeed, tau, f_fac;
#endif
t0 = second();
if(All.ComovingIntegrationOn)
{
fac1 = 1 / (All.Time * All.Time);
fac2 = 1 / pow(All.Time, 3 * GAMMA - 2);
fac3 = pow(All.Time, 3 * (1 - GAMMA) / 2.0);
hubble_a = All.Omega0 / (All.Time * All.Time * All.Time)
+ (1 - All.Omega0 - All.OmegaLambda) / (All.Time * All.Time) + All.OmegaLambda;
hubble_a = All.Hubble * sqrt(hubble_a);
a3inv = 1 / (All.Time * All.Time * All.Time);
atime = All.Time;
}
else
fac1 = fac2 = fac3 = hubble_a = a3inv = atime = 1;
#ifdef NOPMSTEPADJUSTMENT
dt_displacement = All.MaxSizeTimestep;
#else
if(Flag_FullStep || dt_displacement == 0)
find_dt_displacement_constraint(hubble_a * atime * atime);
#endif
#ifdef PMGRID
if(All.ComovingIntegrationOn)
dt_gravkickB = get_gravkick_factor(All.PM_Ti_begstep, All.Ti_Current) -
get_gravkick_factor(All.PM_Ti_begstep, (All.PM_Ti_begstep + All.PM_Ti_endstep) / 2);
else
dt_gravkickB = (All.Ti_Current - (All.PM_Ti_begstep + All.PM_Ti_endstep) / 2) * All.Timebase_interval;
if(All.PM_Ti_endstep == All.Ti_Current) /* need to do long-range kick */
{
/* make sure that we reconstruct the domain/tree next time because we don't kick the tree nodes in this case */
All.NumForcesSinceLastDomainDecomp = 1 + All.TotNumPart * All.TreeDomainUpdateFrequency;
}
#endif
#ifdef MAKEGLASS
for(i = 0, dispmax = 0, disp2sum = 0; i < NumPart; i++)
{
for(j = 0; j < 3; j++)
{
P[i].GravPM[j] *= -1;
P[i].GravAccel[j] *= -1;
P[i].GravAccel[j] += P[i].GravPM[j];
P[i].GravPM[j] = 0;
}
disp = sqrt(P[i].GravAccel[0] * P[i].GravAccel[0] +
P[i].GravAccel[1] * P[i].GravAccel[1] + P[i].GravAccel[2] * P[i].GravAccel[2]);
disp *= 2.0 / (3 * All.Hubble * All.Hubble);
disp2sum += disp * disp;
if(disp > dispmax)
dispmax = disp;
}
#ifndef NOMPI
MPI_Allreduce(&dispmax, &globmax, 1, MPI_DOUBLE, MPI_MAX, GADGET_WORLD);
MPI_Allreduce(&disp2sum, &globdisp2sum, 1, MPI_DOUBLE, MPI_SUM, GADGET_WORLD);
#else
globmax = dispmax;
globdisp2sum = disp2sum;
#endif
dmean = pow(P[0].Mass / (All.Omega0 * 3 * All.Hubble * All.Hubble / (8 * M_PI * All.G)), 1.0 / 3);
if(globmax > dmean)
fac = dmean / globmax;
else
fac = 1.0;
if(ThisTask == 0)
{
printf("\nglass-making: dmean= %g global disp-maximum= %g rms= %g\n\n",
dmean, globmax, sqrt(globdisp2sum / All.TotNumPart));
fflush(stdout);
}
for(i = 0, dispmax = 0; i < NumPart; i++)
{
for(j = 0; j < 3; j++)
{
P[i].Vel[j] = 0;
P[i].Pos[j] += fac * P[i].GravAccel[j] * 2.0 / (3 * All.Hubble * All.Hubble);
P[i].GravAccel[j] = 0;
}
}
#endif
/* Now assign new timesteps and kick */
#ifdef FLEXSTEPS
if((All.Ti_Current % (4 * All.PresentMinStep)) == 0)
if(All.PresentMinStep < TIMEBASE)
All.PresentMinStep *= 2;
for(i = 0; i < NumPart; i++)
{
if(P[i].Ti_endstep == All.Ti_Current)
{
ti_step = get_timestep(i, &aphys, 0);
/* make it a power 2 subdivision */
ti_min = TIMEBASE;
while(ti_min > ti_step)
ti_min >>= 1;
ti_step = ti_min;
if(ti_step < All.PresentMinStep)
All.PresentMinStep = ti_step;
}
}
ti_step = All.PresentMinStep;
#ifndef NOMPI
MPI_Allreduce(&ti_step, &All.PresentMinStep, 1, MPI_INT, MPI_MIN, GADGET_WORLD);
#else
All.PresentMinStep = ti_step;
#endif
if(dt_displacement < All.MaxSizeTimestep)
ti_step = (int) (dt_displacement / All.Timebase_interval);
else
ti_step = (int) (All.MaxSizeTimestep / All.Timebase_interval);
/* make it a power 2 subdivision */
ti_min = TIMEBASE;
while(ti_min > ti_step)
ti_min >>= 1;
All.PresentMaxStep = ti_min;
if(ThisTask == 0)
printf("Syn Range = %g PresentMinStep = %d PresentMaxStep = %d \n",
(double) All.PresentMaxStep / All.PresentMinStep, All.PresentMinStep, All.PresentMaxStep);
#endif
for(i = 0; i < NumPart; i++)
{
if(P[i].Ti_endstep == All.Ti_Current)
{
ti_step = get_timestep(i, &aphys, 0);
/* make it a power 2 subdivision */
ti_min = TIMEBASE;
while(ti_min > ti_step)
ti_min >>= 1;
ti_step = ti_min;
#ifdef FLEXSTEPS
ti_grp = P[i].FlexStepGrp % All.PresentMaxStep;
ti_grp = (ti_grp / All.PresentMinStep) * All.PresentMinStep;
ti_step = ((P[i].Ti_endstep + ti_grp + ti_step) / ti_step) * ti_step - (P[i].Ti_endstep + ti_grp);
#else
#ifdef PSEUDOSYMMETRIC
if(P[i].Type != 0)
{
if(P[i].Ti_endstep > P[i].Ti_begstep)
{
apred = aphys + ((aphys - P[i].AphysOld) / (P[i].Ti_endstep - P[i].Ti_begstep)) * ti_step;
if(fabs(apred - aphys) < 0.5 * aphys)
{
ti_step2 = get_timestep(i, &apred, -1);
ti_min = TIMEBASE;
while(ti_min > ti_step2)
ti_min >>= 1;
ti_step2 = ti_min;
if(ti_step2 < ti_step)
{
get_timestep(i, &apred, ti_step);
prob =
((apred - aphys) / (aphys - P[i].AphysOld) * (P[i].Ti_endstep -
P[i].Ti_begstep)) / ti_step;
if(prob < get_random_number(P[i].ID))
ti_step /= 2;
}
else if(ti_step2 > ti_step)
{
get_timestep(i, &apred, 2 * ti_step);
prob =
((apred - aphys) / (aphys - P[i].AphysOld) * (P[i].Ti_endstep -
P[i].Ti_begstep)) / ti_step;
if(prob < get_random_number(P[i].ID + 1))
ti_step *= 2;
}
}
}
P[i].AphysOld = aphys;
}
#endif
#ifdef SYNCHRONIZATION
if(ti_step > (P[i].Ti_endstep - P[i].Ti_begstep)) /* timestep wants to increase */
{
if(((TIMEBASE - P[i].Ti_endstep) % ti_step) > 0)
ti_step = P[i].Ti_endstep - P[i].Ti_begstep; /* leave at old step */
}
#endif
#endif /* end of FLEXSTEPS */
if(All.Ti_Current == TIMEBASE) /* we here finish the last timestep. */
ti_step = 0;
if((TIMEBASE - All.Ti_Current) < ti_step) /* check that we don't run beyond the end */
ti_step = TIMEBASE - All.Ti_Current;
tstart = (P[i].Ti_begstep + P[i].Ti_endstep) / 2; /* midpoint of old step */
tend = P[i].Ti_endstep + ti_step / 2; /* midpoint of new step */
if(All.ComovingIntegrationOn)
{
dt_entr = (tend - tstart) * All.Timebase_interval;
dt_entr2 = (tend - P[i].Ti_endstep) * All.Timebase_interval;
dt_gravkick = get_gravkick_factor(tstart, tend);
dt_hydrokick = get_hydrokick_factor(tstart, tend);
dt_gravkick2 = get_gravkick_factor(P[i].Ti_endstep, tend);
dt_hydrokick2 = get_hydrokick_factor(P[i].Ti_endstep, tend);
}
else
{
dt_entr = dt_gravkick = dt_hydrokick = (tend - tstart) * All.Timebase_interval;
dt_gravkick2 = dt_hydrokick2 = dt_entr2 = (tend - P[i].Ti_endstep) * All.Timebase_interval;
}
P[i].Ti_begstep = P[i].Ti_endstep;
P[i].Ti_endstep = P[i].Ti_begstep + ti_step;
/* do the kick */
for(j = 0; j < 3; j++)
{
dv[j] = P[i].GravAccel[j] * dt_gravkick;
P[i].Vel[j] += dv[j];
}
if(P[i].Type == 0) /* SPH stuff */
{
#ifdef MORRIS97VISC
soundspeed = sqrt(GAMMA * SphP[i].Pressure / SphP[i].Density);
f_fac = fabs(SphP[i].DivVel) / (fabs(SphP[i].DivVel) + SphP[i].CurlVel +
0.0001 * soundspeed / SphP[i].Hsml);
tau = 2.5 * SphP[i].Hsml / soundspeed;
SphP[i].DAlphaDt = f_fac*dmax(-SphP[i].DivVel, 0) * (2.0 - SphP[i].Alpha) - (SphP[i].Alpha - .1)/tau;
/* change this to input the maximum the viscosity can get to. */
/* SphP[i].DAlphaDt = f_fac*dmax(-SphP[i].DivVel, 0) * (All.ArtBulkViscConst - SphP[i].Alpha) - (SphP[i].Alpha - .1)/tau;*/
#endif
for(j = 0; j < 3; j++)
{
dv[j] += SphP[i].HydroAccel[j] * dt_hydrokick;
P[i].Vel[j] += SphP[i].HydroAccel[j] * dt_hydrokick;
SphP[i].VelPred[j] =
P[i].Vel[j] - dt_gravkick2 * P[i].GravAccel[j] - dt_hydrokick2 * SphP[i].HydroAccel[j];
#ifdef PMGRID
SphP[i].VelPred[j] += P[i].GravPM[j] * dt_gravkickB;
#endif
}
/* In case of cooling, we prevent that the entropy (and
hence temperature decreases by more than a factor 0.5 */
if(SphP[i].DtEntropy * dt_entr > -0.5 * SphP[i].Entropy)
SphP[i].Entropy += SphP[i].DtEntropy * dt_entr;
else
SphP[i].Entropy *= 0.5;
if(All.MinEgySpec)
{
minentropy = All.MinEgySpec * GAMMA_MINUS1 / pow(SphP[i].Density * a3inv, GAMMA_MINUS1);
if(SphP[i].Entropy < minentropy)
{
SphP[i].Entropy = minentropy;
SphP[i].DtEntropy = 0;
}
}
/* In case the timestep increases in the new step, we
make sure that we do not 'overcool' when deriving
predicted temperatures. The maximum timespan over
which prediction can occur is ti_step/2, i.e. from
the middle to the end of the current step */
dt_entr = ti_step / 2 * All.Timebase_interval;
if(SphP[i].Entropy + SphP[i].DtEntropy * dt_entr < 0.5 * SphP[i].Entropy)
SphP[i].DtEntropy = -0.5 * SphP[i].Entropy / dt_entr;
}
/* if tree is not going to be reconstructed, kick parent nodes dynamically.
*/
if(All.NumForcesSinceLastDomainDecomp < All.TotNumPart * All.TreeDomainUpdateFrequency)
{
no = Father[i];
while(no >= 0)
{
for(j = 0; j < 3; j++)
Extnodes[no].vs[j] += dv[j] * P[i].Mass / Nodes[no].u.d.mass;
no = Nodes[no].u.d.father;
}
}
}
}
#ifdef PMGRID
if(All.PM_Ti_endstep == All.Ti_Current) /* need to do long-range kick */
{
ti_step = TIMEBASE;
while(ti_step > (dt_displacement / All.Timebase_interval))
ti_step >>= 1;
if(ti_step > (All.PM_Ti_endstep - All.PM_Ti_begstep)) /* PM-timestep wants to increase */
{
/* we only increase if an integer number of steps will bring us to the end */
if(((TIMEBASE - All.PM_Ti_endstep) % ti_step) > 0)
ti_step = All.PM_Ti_endstep - All.PM_Ti_begstep; /* leave at old step */
}
if(All.Ti_Current == TIMEBASE) /* we here finish the last timestep. */
ti_step = 0;
tstart = (All.PM_Ti_begstep + All.PM_Ti_endstep) / 2;
tend = All.PM_Ti_endstep + ti_step / 2;
if(All.ComovingIntegrationOn)
dt_gravkick = get_gravkick_factor(tstart, tend);
else
dt_gravkick = (tend - tstart) * All.Timebase_interval;
All.PM_Ti_begstep = All.PM_Ti_endstep;
All.PM_Ti_endstep = All.PM_Ti_begstep + ti_step;
if(All.ComovingIntegrationOn)
dt_gravkickB = -get_gravkick_factor(All.PM_Ti_begstep, (All.PM_Ti_begstep + All.PM_Ti_endstep) / 2);
else
dt_gravkickB =
-((All.PM_Ti_begstep + All.PM_Ti_endstep) / 2 - All.PM_Ti_begstep) * All.Timebase_interval;
for(i = 0; i < NumPart; i++)
{
for(j = 0; j < 3; j++) /* do the kick */
P[i].Vel[j] += P[i].GravPM[j] * dt_gravkick;
if(P[i].Type == 0)
{
if(All.ComovingIntegrationOn)
{
dt_gravkickA = get_gravkick_factor(P[i].Ti_begstep, All.Ti_Current) -
get_gravkick_factor(P[i].Ti_begstep, (P[i].Ti_begstep + P[i].Ti_endstep) / 2);
dt_hydrokick = get_hydrokick_factor(P[i].Ti_begstep, All.Ti_Current) -
get_hydrokick_factor(P[i].Ti_begstep, (P[i].Ti_begstep + P[i].Ti_endstep) / 2);
}
else
dt_gravkickA = dt_hydrokick =
(All.Ti_Current - (P[i].Ti_begstep + P[i].Ti_endstep) / 2) * All.Timebase_interval;
for(j = 0; j < 3; j++)
SphP[i].VelPred[j] = P[i].Vel[j]
+ P[i].GravAccel[j] * dt_gravkickA
+ SphP[i].HydroAccel[j] * dt_hydrokick + P[i].GravPM[j] * dt_gravkickB;
}
}
}
#endif
t1 = second();
All.CPU_TimeLine += timediff(t0, t1);
}
/*! This function normally (for flag==0) returns the maximum allowed timestep
* of a particle, expressed in terms of the integer mapping that is used to
* represent the total simulated timespan. The physical acceleration is
* returned in `aphys'. The latter is used in conjunction with the
* PSEUDOSYMMETRIC integration option, which also makes of the second
* function of get_timestep. When it is called with a finite timestep for
* flag, it returns the physical acceleration that would lead to this
* timestep, assuming timestep criterion 0.
*/
int get_timestep(int p, /*!< particle index */
double *aphys, /*!< acceleration (physical units) */
int flag /*!< either 0 for normal operation, or finite timestep to get corresponding
aphys */ )
{
double ax, ay, az, ac, csnd;
double dt = 0, dt_courant = 0, dt_accel;
int ti_step;
#ifdef CONDUCTION
double dt_cond;
#endif
if(flag == 0)
{
ax = fac1 * P[p].GravAccel[0];
ay = fac1 * P[p].GravAccel[1];
az = fac1 * P[p].GravAccel[2];
#ifdef PMGRID
ax += fac1 * P[p].GravPM[0];
ay += fac1 * P[p].GravPM[1];
az += fac1 * P[p].GravPM[2];
#endif
if(P[p].Type == 0)
{
ax += fac2 * SphP[p].HydroAccel[0];
ay += fac2 * SphP[p].HydroAccel[1];
az += fac2 * SphP[p].HydroAccel[2];
}
ac = sqrt(ax * ax + ay * ay + az * az); /* this is now the physical acceleration */
*aphys = ac;
}
else
ac = *aphys;
if(ac == 0)
ac = 1.0e-30;
switch (All.TypeOfTimestepCriterion)
{
case 0:
if(flag > 0)
{
dt = flag * All.Timebase_interval;
dt /= hubble_a; /* convert dloga to physical timestep */
ac = 2 * All.ErrTolIntAccuracy * atime * All.SofteningTable[P[p].Type] / (dt * dt);
*aphys = ac;
return flag;
}
dt = dt_accel = sqrt(2 * All.ErrTolIntAccuracy * atime * All.SofteningTable[P[p].Type] / ac);
#ifdef ADAPTIVE_GRAVSOFT_FORGAS
if(P[p].Type == 0)
dt = dt_accel = sqrt(2 * All.ErrTolIntAccuracy * atime * SphP[p].Hsml / 2.8 / ac);
#endif
break;
default:
endrun(888);
break;
}
if(P[p].Type == 0)
{
csnd = sqrt(GAMMA * SphP[p].Pressure / SphP[p].Density);
if(All.ComovingIntegrationOn)
dt_courant = 2 * All.CourantFac * All.Time * SphP[p].Hsml / (fac3 * SphP[p].MaxSignalVel);
else
dt_courant = 2 * All.CourantFac * SphP[p].Hsml / SphP[p].MaxSignalVel;
if(dt_courant < dt)
dt = dt_courant;
}
/* convert the physical timestep to dloga if needed. Note: If comoving integration has not been selected,
hubble_a=1.
*/
dt *= hubble_a;
if(dt >= All.MaxSizeTimestep)
dt = All.MaxSizeTimestep;
if(dt >= dt_displacement)
dt = dt_displacement;
if(dt < All.MinSizeTimestep)
{
#ifndef NOSTOP_WHEN_BELOW_MINTIMESTEP
printf("warning: Timestep wants to be below the limit `MinSizeTimestep'\n");
if(P[p].Type == 0)
{
printf
("Part-ID=%d dt=%g dtc=%g ac=%g xyz=(%g|%g|%g) hsml=%g maxsignalvel=%g dt0=%g eps=%g\n",
(int) P[p].ID, dt, dt_courant * hubble_a, ac, P[p].Pos[0], P[p].Pos[1], P[p].Pos[2],
SphP[p].Hsml, SphP[p].MaxSignalVel,
sqrt(2 * All.ErrTolIntAccuracy * atime * All.SofteningTable[P[p].Type] / ac) * hubble_a,
All.SofteningTable[P[p].Type]);
}
else
{
printf("Part-ID=%d dt=%g ac=%g xyz=(%g|%g|%g)\n", (int) P[p].ID, dt, ac, P[p].Pos[0], P[p].Pos[1],
P[p].Pos[2]);
}
fflush(stdout);
endrun(888);
#endif
dt = All.MinSizeTimestep;
}
ti_step = dt / All.Timebase_interval;
if(!(ti_step > 0 && ti_step < TIMEBASE) && !ZeroTimestepEncountered)
{
printf("\nError: A timestep of size zero was assigned on the integer timeline!\n"
"We better stop.\n"
"Task=%d Part-ID=%d dt=%g tibase=%g ti_step=%d ac=%g xyz=(%g|%g|%g) tree=(%g|%g%g)\n\n",
ThisTask, (int) P[p].ID, dt, All.Timebase_interval, ti_step, ac,
P[p].Pos[0], P[p].Pos[1], P[p].Pos[2], P[p].GravAccel[0], P[p].GravAccel[1], P[p].GravAccel[2]);
#ifdef PMGRID
printf("pm_force=(%g|%g|%g)\n", P[p].GravPM[0], P[p].GravPM[1], P[p].GravPM[2]);
#endif
if(P[p].Type == 0)
printf("hydro-frc=(%g|%g|%g)\n", SphP[p].HydroAccel[0], SphP[p].HydroAccel[1], SphP[p].HydroAccel[2]);
fflush(stdout);
//endrun(818);
ZeroTimestepEncountered = 1; // Do not terminate the run, but let AMUSE handle it
}
return ti_step;
}
/*! This function computes an upper limit ('dt_displacement') to the global
* timestep of the system based on the rms velocities of particles. For
* cosmological simulations, the criterion used is that the rms displacement
* should be at most a fraction MaxRMSDisplacementFac of the mean particle
* separation. Note that the latter is estimated using the assigned particle
* masses, separately for each particle type. If comoving integration is not
* used, the function imposes no constraint on the timestep.
*/
void find_dt_displacement_constraint(double hfac /*!< should be a^2*H(a) */ )
{
int i, j, type, *temp;
int count[6];
long long count_sum[6];
double v[6], v_sum[6], mim[6], min_mass[6];
double dt, dmean, asmth = 0;
dt_displacement = All.MaxSizeTimestep;
if(All.ComovingIntegrationOn)
{
for(type = 0; type < 6; type++)
{
count[type] = 0;
v[type] = 0;
mim[type] = 1.0e30;
}
for(i = 0; i < NumPart; i++)
{
v[P[i].Type] += P[i].Vel[0] * P[i].Vel[0] + P[i].Vel[1] * P[i].Vel[1] + P[i].Vel[2] * P[i].Vel[2];
if(mim[P[i].Type] > P[i].Mass)
mim[P[i].Type] = P[i].Mass;
count[P[i].Type]++;
}
#ifndef NOMPI
MPI_Allreduce(v, v_sum, 6, MPI_DOUBLE, MPI_SUM, GADGET_WORLD);
MPI_Allreduce(mim, min_mass, 6, MPI_DOUBLE, MPI_MIN, GADGET_WORLD);
#else
for(i = 0; i < 6; i++){
v_sum[i] = v[i];
min_mass[i] = mim[i];
}
#endif
temp = malloc(NTask * 6 * sizeof(int));
#ifndef NOMPI
MPI_Allgather(count, 6, MPI_INT, temp, 6, MPI_INT, GADGET_WORLD);
#else
for(i = 0; i < 6; i++){
temp[i] = count[i];
}
#endif
for(i = 0; i < 6; i++)
{
count_sum[i] = 0;
for(j = 0; j < NTask; j++)
count_sum[i] += temp[j * 6 + i];
}
free(temp);
for(type = 0; type < 6; type++)
{
if(count_sum[type] > 0)
{
if(type == 0)
dmean =
pow(min_mass[type] / (All.OmegaBaryon * 3 * All.Hubble * All.Hubble / (8 * M_PI * All.G)),
1.0 / 3);
else
dmean =
pow(min_mass[type] /
((All.Omega0 - All.OmegaBaryon) * 3 * All.Hubble * All.Hubble / (8 * M_PI * All.G)),
1.0 / 3);
dt = All.MaxRMSDisplacementFac * hfac * dmean / sqrt(v_sum[type] / count_sum[type]);
#ifdef PMGRID
asmth = All.Asmth[0];
#ifdef PLACEHIGHRESREGION
if(((1 << type) & (PLACEHIGHRESREGION)))
asmth = All.Asmth[1];
#endif
if(asmth < dmean)
dt = All.MaxRMSDisplacementFac * hfac * asmth / sqrt(v_sum[type] / count_sum[type]);
#endif
if(ThisTask == 0)
printf("type=%d dmean=%g asmth=%g minmass=%g a=%g sqrt(<p^2>)=%g dlogmax=%g\n",
type, dmean, asmth, min_mass[type], All.Time, sqrt(v_sum[type] / count_sum[type]), dt);
if(dt < dt_displacement)
dt_displacement = dt;
}
}
if(ThisTask == 0)
printf("displacement time constraint: %g (%g)\n", dt_displacement, All.MaxSizeTimestep);
}
}
|
86dd87ccd213e1a121fecd81b72debb4874c74a8
|
89ac799bd004042f913c9205abd22feaf847f5be
|
/src/libdg/shade.c
|
88783f736f7d001302e4e57b635a0019f6770a5b
|
[] |
no_license
|
FoxdieTeam/mgs_reversing
|
de0b501e9a6318bf817e0d0f03af34c836a2f0b6
|
d057e3eb8bebeb645ca23db6ce690577268f59d5
|
refs/heads/master
| 2023-07-21T02:31:57.827478
| 2023-07-17T10:50:39
| 2023-07-17T10:50:39
| 223,033,157
| 270
| 35
| null | 2023-09-14T21:49:31
| 2019-11-20T21:44:13
|
C
|
UTF-8
|
C
| false
| false
| 7,735
|
c
|
shade.c
|
#include "libdg.h"
/**gp*******************************************/
extern unsigned long DG_PacketCode_800AB394[2];
/***********************************************/
/**data*******************************/
extern SVECTOR DG_Ambient_800AB38C;
/*************************************/
//there are a few of these that are close to gte_MulMatrix0 but with the first part changed
#define gte_Unknown(r1, r2) \
{ \
gte_ldclmv(r1); \
gte_rtir(); \
gte_stclmv(r2); \
gte_ldclmv((char *)r1 + 2); \
gte_rtir(); \
gte_stclmv((char *)r2 + 2); \
gte_ldclmv((char *)r1 + 4); \
gte_rtir(); \
gte_stclmv((char *)r2 + 4); \
}
void DG_ShadeStart_8001CF80()
{
}
//just an index using an int shifted to get each byte of the face normal idx, but didnt match that way
static inline void set_face_normal_pack(unsigned int *face_normals, POLY_GT4 *packs, void* dst)
{
unsigned int fa, fb, fc, fd;
fa = *face_normals;
fb = *face_normals;
fc = *face_normals;
fd = *face_normals;
fa <<= 2;
fb >>= 6;
fc >>= 22;
fd >>= 14;
fa &= 0x3FC;
fb &= 0x3FC;
fc &= 0x3FC;
fd &= 0x3FC;
fa = (int)(dst + fa);
fb = (int)(dst + fb);
fc = (int)(dst + fc);
fd = (int)(dst + fd);
LCOPY2( (void*)fa, &packs->r0, (void*)fb, &packs->r1 );
LCOPY2( (void*)fc, &packs->r2, (void*)fd, &packs->r3 );
}
POLY_GT4 *DG_Shade_Chanl_helper_helper_8001CF88( unsigned int *face_normals, POLY_GT4 *packs, int n_packs )
{
for ( --n_packs; n_packs >= 0 ; --n_packs )
{
void *scrpad_pack = (void*)0x1F800020;
if ( packs->tag & 0xFFFF )
{
set_face_normal_pack(face_normals, packs, scrpad_pack);
}
packs++;
face_normals++;
}
return packs;
}
POLY_GT4 *DG_Shade_Chanl_helper_helper2_8001D034( unsigned int *face_normals, POLY_GT4 *packs, int n_packs, unsigned int* face )
{
unsigned int t2, t6;
unsigned int fa,fb,fc,fd;
void* scrpad_pack;
for ( --n_packs; n_packs >= 0 ; packs++, face_normals++, face++, --n_packs )
{
t6 = 0x80808080;
scrpad_pack = (void*)0x1F800020;
fa = *face_normals;
if ( !( packs->tag & 0xFFFF ) && !( *face_normals & t6 ) ) continue;
t2 = *face;
fd = *face_normals;
fa = *face_normals << 2;
fb = *face_normals >> 6;
fc = *face_normals >> 22;
fd = *face_normals >> 14;
fa &= 0x1FC;
fb &= 0x1FC;
fc &= 0x1FC;
fd &= 0x1FC;
fa += (unsigned int)scrpad_pack;
fb += (unsigned int)scrpad_pack;
fc += (unsigned int)scrpad_pack;
fd += (unsigned int)scrpad_pack;
if ( t2 & t6 )
{
int val;
if ( t2 & 0x80 )
{
val = **(int**)&packs->r0;
}
else
{
val = *(int*)fa;
}
t2 >>= 8;
*(int*)&packs->r0 = val;
if ( t2 & 0x80 )
{
val = **(int**)&packs->r1;
}
else
{
val = *(int*)fb;
}
t2 >>= 8;
*(int*)&packs->r1 = val;
if ( t2 & 0x80 )
{
val = **(int**)&packs->r3;
}
else
{
val = *(int*)fd;
}
t2 >>= 8;
*(int*)&packs->r3 = val;
if ( t2 & 0x80 )
{
val = **(int**)&packs->r2;
}
else
{
val = *(int*)fc;
}
t2 >>= 8;
*(int*)&packs->r2 = val;
}
else
{
LCOPY2( (void*)fa, &packs->r0, (void*)fb, &packs->r1 );
LCOPY2( (void*)fc, &packs->r2, (void*)fd, &packs->r3 );
}
}
return packs;
}
void DG_Shade_Chanl_helper_8001D19C( DG_OBJ* obj, int idx )
{
int n_normals;
DG_VECTOR* nidx;
DG_VECTOR* scrpd_nidx;
DG_VECTOR* scrpd_nidx2;
unsigned long *code;
POLY_GT4* pack;
DG_MDL* mdl;
pack = obj->packs[ idx ];
while ( obj )
{
mdl = obj->model; //t1;
code = DG_PacketCode_800AB394;
if ( mdl->flags_0 & 2 )
{
code = &DG_PacketCode_800AB394[1];
}
gte_ldrgb( code );
scrpd_nidx = (DG_VECTOR*)0x1F800020;
nidx = (DG_VECTOR*)mdl->normalIndexOffset_44; //a2
n_normals = mdl->numNormals_40;
scrpd_nidx[0] = nidx[0]; //maybe copyvector macro
scrpd_nidx[1] = nidx[1];
scrpd_nidx2 = (DG_VECTOR*)0x1F800020;
while ( n_normals > 0 )
{
gte_ldv3c( scrpd_nidx2 );
n_normals -= 3;
nidx += 2;
gte_nct_b();
scrpd_nidx2++;
scrpd_nidx2[0] = nidx[0];
scrpd_nidx2[1] = nidx[1];
gte_strgb3( &scrpd_nidx2[-1].vx, &scrpd_nidx2[-1].vy, &scrpd_nidx2[-1].vz );
}
if ( !( mdl->flags_0 & 0x10000 ) )
{
pack = DG_Shade_Chanl_helper_helper_8001CF88( (unsigned int*)mdl->normalFaceOffset_48, pack, obj->n_packs );
}
else
{
pack = DG_Shade_Chanl_helper_helper2_8001D034( (unsigned int*)mdl->normalFaceOffset_48, pack, obj->n_packs, (unsigned int*)mdl->faceIndexOffset_3C );
}
obj = obj->extend;
}
}
void DG_Shade_Chanl_8001D324( DG_CHNL *chnl, int idx )
{
unsigned int flag;
int i, j;
DG_OBJ *obj;
DG_OBJS *objs;
DG_OBJS **objs_queue;
i = chnl->mTotalObjectCount;
objs_queue = chnl->mQueue;
for ( ; i > 0 ; --i )
{
objs = *objs_queue;
objs_queue++;
if ( !objs->bound_mode ) continue;
flag = objs->flag;
if ( !( flag & 8 ) ) continue;
gte_SetRotMatrix( objs->light );
gte_SetColorMatrix( &objs->light[1] );
if ( flag & 0x100 )
{
gte_SetBackColor( objs->light->t[0], objs->light->t[1], objs->light->t[2] );
}
j = objs->n_models;
obj = objs->objs;
for ( ; j > 0 ; --j )
{
if ( obj->bound_mode )
{
gte_Unknown( &obj->world, 0x1F800000 );
gte_SetLightMatrix( 0x1F800000 );
DG_Shade_Chanl_helper_8001D19C( obj, idx );
}
obj++;
}
if ( objs->flag & DG_FLAG_AMBIENT )
{
gte_SetBackColor( DG_Ambient_800AB38C.vx, DG_Ambient_800AB38C.vy, DG_Ambient_800AB38C.vz );
}
}
}
void DG_ShadeEnd_8001D5C0(void)
{
return;
}
|
719dbef336433a531be3ff95316481711ed5155c
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sys/arch/vax/boot/boot/if_qe.c
|
660f592d61b38663064b484a2c9cfc500f79786f
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
ISO-8859-13
|
C
| false
| false
| 7,790
|
c
|
if_qe.c
|
/* $NetBSD: if_qe.c,v 1.10 2018/03/20 13:30:40 ragge Exp $ */
/*
* Copyright (c) 1998 Roar Thronęs. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Roar Thronęs.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Standalone routine for the DEQNA.
*/
#include <sys/param.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <lib/libsa/netif.h>
#include <lib/libsa/stand.h>
#include "lib/libkern/libkern.h"
#include <dev/qbus/if_qereg.h>
#include "../include/rpb.h"
#include "vaxstand.h"
static int qe_get(struct iodesc *desc, void *pkt, size_t, saseconds_t timeout);
static int qe_put(struct iodesc *desc, void *pkt, size_t);
static void qe_init(u_char *eaddr);
struct netif_driver qe_driver = {
0, 0, 0, 0, qe_get, qe_put,
};
#define NRCV 1 /* Receive descriptors */
#define NXMT 1 /* Transmit descriptors */
#define QE_INTS (QE_RCV_INT | QE_XMIT_INT)
#define MAXPACKETSIZE 0x800 /* Because of (buggy) DEQNA */
static struct qe_softc {
struct qe_ring rring[NRCV+2]; /* Receive ring descriptors */
struct qe_ring tring[NXMT+2]; /* Xmit ring descriptors */
u_char setup_pkt[16][8]; /* Setup packet */
char qein[2048], qeout[2048];/* Packet buffers */
} qe_softc;
static struct qe_softc *sc = &qe_softc, *psc;
static int addr, ubaddr;
#define QE_WCSR(csr, val) \
(*((volatile u_short *)(addr + (csr))) = (val))
#define QE_RCSR(csr) \
*((volatile u_short *)(addr + (csr)))
#define DELAY(x) {volatile int i = x;while (--i);}
#define LOWORD(x) ((int)(x) & 0xffff)
#define HIWORD(x) (((int)(x) >> 16) & 0x3f)
#define qereg(x) ((x) & 017777)
int
qeopen(struct open_file *f, int adapt, int ctlr, int unit, int part) {
u_char eaddr[6];
if (askname == 0)
addr = bootrpb.csrphy; /* Autoboot; use RPB instead */
else {
addr = 0x20000000;
if (unit == 0)
addr += qereg(0774440); /* XQA0 */
else if (unit == 1)
addr += qereg(0174460); /* XQB0 */
else
return ECTLR;
}
qe_init(eaddr);
net_devinit(f, &qe_driver, eaddr);
return 0;
}
void
qe_init(u_char *eaddr)
{
int i,j;
QE_WCSR(QE_CSR_CSR, QE_RESET);
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) & ~QE_RESET);
ubaddr = ubmap(0, (int)sc, sizeof(struct qe_softc));
psc = (struct qe_softc *)ubaddr;
for (i = 0; i < 6; i++) {
sc->setup_pkt[i][1] = QE_RCSR(i * 2);
sc->setup_pkt[i+8][1] = QE_RCSR(i * 2);
sc->setup_pkt[i][2] = 0xff;
sc->setup_pkt[i+8][2] = QE_RCSR(i * 2);
for (j=3; j < 8; j++) {
sc->setup_pkt[i][j] = QE_RCSR(i * 2);
sc->setup_pkt[i+8][j] = QE_RCSR(i * 2);
}
eaddr[i] = QE_RCSR(i * 2);
}
memset((void *)sc->rring, 0, sizeof(struct qe_ring));
sc->rring->qe_buf_len = -64;
sc->rring->qe_addr_lo = LOWORD(psc->setup_pkt);
sc->rring->qe_addr_hi = HIWORD(psc->setup_pkt);
memset((void *)sc->tring, 0, sizeof(struct qe_ring));
sc->tring->qe_buf_len = -64;
sc->tring->qe_addr_lo = LOWORD(psc->setup_pkt);
sc->tring->qe_addr_hi = HIWORD(psc->setup_pkt);
sc->rring[0].qe_flag = sc->rring[0].qe_status1 = QE_NOTYET;
sc->rring->qe_addr_hi |= QE_VALID;
sc->tring[0].qe_flag = sc->tring[0].qe_status1 = QE_NOTYET;
sc->tring->qe_addr_hi |= QE_VALID | QE_SETUP | QE_EOMSG;
QE_WCSR(QE_CSR_CSR, QE_XMIT_INT | QE_RCV_INT);
QE_WCSR(QE_CSR_RCLL, LOWORD(psc->rring));
QE_WCSR(QE_CSR_RCLH, HIWORD(psc->rring));
QE_WCSR(QE_CSR_XMTL, LOWORD(psc->tring));
QE_WCSR(QE_CSR_XMTH, HIWORD(psc->tring));
while ((QE_RCSR(QE_CSR_CSR) & QE_INTS) != QE_INTS)
;
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) | QE_INTS);
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) & ~(QE_INT_ENABLE|QE_ELOOP));
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) | QE_ILOOP);
sc->rring[0].qe_addr_lo = LOWORD(psc->qein);
sc->rring[0].qe_addr_hi = HIWORD(psc->qein);
sc->rring[0].qe_buf_len = -MAXPACKETSIZE/2;
sc->rring[0].qe_addr_hi |= QE_VALID;
sc->rring[0].qe_flag = sc->rring[0].qe_status1 = QE_NOTYET;
sc->rring[0].qe_status2 = 1;
sc->rring[1].qe_addr_lo = 0;
sc->rring[1].qe_addr_hi = 0;
sc->rring[1].qe_flag=sc->rring[1].qe_status1=QE_NOTYET;
sc->rring[1].qe_status2=1;
sc->tring[0].qe_addr_lo = LOWORD(psc->qeout);
sc->tring[0].qe_addr_hi = HIWORD(psc->qeout);
sc->tring[0].qe_buf_len = 0;
sc->tring[0].qe_flag = sc->tring[0].qe_status1 = QE_NOTYET;
sc->tring[0].qe_addr_hi |= QE_EOMSG|QE_VALID;
sc->tring[1].qe_flag = sc->tring[1].qe_status1 = QE_NOTYET;
sc->tring[1].qe_addr_lo = 0;
sc->tring[1].qe_addr_hi = 0;
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) | QE_RCV_ENABLE);
QE_WCSR(QE_CSR_RCLL, LOWORD(psc->rring));
QE_WCSR(QE_CSR_RCLH, HIWORD(psc->rring));
}
int
qe_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timeout) {
int len, j;
retry:
for(j = 0x10000;j && (QE_RCSR(QE_CSR_CSR) & QE_RCV_INT) == 0; j--)
;
if ((QE_RCSR(QE_CSR_CSR) & QE_RCV_INT) == 0)
goto fail;
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) & ~(QE_RCV_ENABLE|QE_XMIT_INT));
len= ((sc->rring[0].qe_status1 & QE_RBL_HI) |
(sc->rring[0].qe_status2 & QE_RBL_LO)) + 60;
if (sc->rring[0].qe_status1 & 0xc000)
goto fail;
if (len == 0)
goto retry;
memcpy(pkt, (void*)sc->qein,len);
end:
sc->rring[0].qe_status2 = sc->rring[1].qe_status2 = 1;
sc->rring[0].qe_flag = sc->rring[0].qe_status1 = QE_NOTYET;
sc->rring[1].qe_flag = sc->rring[1].qe_status1 = QE_NOTYET;
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) | QE_RCV_ENABLE);
QE_WCSR(QE_CSR_RCLL, LOWORD(psc->rring));
QE_WCSR(QE_CSR_RCLH, HIWORD(psc->rring));
return len;
fail: len = -1;
goto end;
}
int
qe_put(struct iodesc *desc, void *pkt, size_t len) {
int j;
memcpy((char *)sc->qeout, pkt, len);
sc->tring[0].qe_buf_len = -len/2;
sc->tring[0].qe_flag = sc->tring[0].qe_status1 = QE_NOTYET;
sc->tring[1].qe_flag = sc->tring[1].qe_status1 = QE_NOTYET;
QE_WCSR(QE_CSR_XMTL, LOWORD(psc->tring));
QE_WCSR(QE_CSR_XMTH, HIWORD(psc->tring));
for(j = 0; (j < 0x10000) && ((QE_RCSR(QE_CSR_CSR) & QE_XMIT_INT) == 0); j++)
;
if ((QE_RCSR(QE_CSR_CSR) & QE_XMIT_INT) == 0) {
u_char eaddr[6];
qe_init(eaddr);
return -1;
}
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) & ~QE_RCV_INT);
if (sc->tring[0].qe_status1 & 0xc000) {
u_char eaddr[6];
qe_init(eaddr);
return -1;
}
return len;
}
int
qeclose(struct open_file *nif)
{
QE_WCSR(QE_CSR_CSR, QE_RESET);
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) & ~QE_RESET);
return 0;
}
|
298224f66a51e0088fe737b84919262da71d5cf5
|
3bbf88dc48d70e4c362e15589967c271f5ce844f
|
/core/src/xmake/string/split.c
|
43e949ace5d6ac6c110c026156a8843e149b08ca
|
[
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"Unlicense",
"MIT"
] |
permissive
|
xmake-io/xmake
|
ed420a84d9dddd36946893e60799bd912ffd917d
|
025c5e8415b456bf5f24e37322731615bd5ddea1
|
refs/heads/master
| 2023-08-31T13:40:45.719615
| 2023-08-31T14:33:50
| 2023-08-31T14:33:50
| 34,431,834
| 6,914
| 618
|
Apache-2.0
| 2023-09-14T09:23:40
| 2015-04-23T03:37:31
|
Lua
|
UTF-8
|
C
| false
| false
| 3,999
|
c
|
split.c
|
/*!A cross-platform build utility based on Lua
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Copyright (C) 2015-present, TBOOX Open Source Group.
*
* @author ruki
* @file split.c
*
*/
/* //////////////////////////////////////////////////////////////////////////////////////
* trace
*/
#define TB_TRACE_MODULE_NAME "string_split"
#define TB_TRACE_MODULE_DEBUG (0)
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
#include "prefix.h"
/* //////////////////////////////////////////////////////////////////////////////////////
* private implementation
*/
static tb_void_t xm_string_split_str(lua_State* lua, tb_char_t const* cstr, tb_size_t nstr, tb_char_t const* cdls, tb_size_t ndls, tb_bool_t strict, tb_int_t limit)
{
tb_int_t num = 0;
tb_char_t const* end = cstr + nstr;
tb_char_t const* pos = tb_strstr(cstr, cdls); // faster than tb_strnstr()
while (pos && pos < end)
{
if (pos > cstr || strict)
{
if (limit > 0 && num + 1 >= limit)
break;
lua_pushlstring(lua, cstr, pos - cstr);
lua_rawseti(lua, -2, ++num);
}
cstr = pos + ndls;
pos = tb_strstr(cstr, cdls);
}
if (cstr < end)
{
lua_pushlstring(lua, cstr, end - cstr);
lua_rawseti(lua, -2, ++num);
}
else if (strict && (limit < 0 || num < limit) && cstr == end)
{
lua_pushliteral(lua, "");
lua_rawseti(lua, -2, ++num);
}
}
static tb_void_t xm_string_split_chr(lua_State* lua, tb_char_t const* cstr, tb_size_t nstr, tb_char_t ch, tb_bool_t strict, tb_int_t limit)
{
tb_int_t num = 0;
tb_char_t const* end = cstr + nstr;
tb_char_t const* pos = tb_strchr(cstr, ch); // faster than tb_strnchr()
while (pos && pos < end)
{
if (pos > cstr || strict)
{
if (limit > 0 && num + 1 >= limit)
break;
lua_pushlstring(lua, cstr, pos - cstr);
lua_rawseti(lua, -2, ++num);
}
cstr = pos + 1;
pos = tb_strchr(cstr, ch);
}
if (cstr < end)
{
lua_pushlstring(lua, cstr, end - cstr);
lua_rawseti(lua, -2, ++num);
}
else if (strict && (limit < 0 || num < limit) && cstr == end)
{
lua_pushliteral(lua, "");
lua_rawseti(lua, -2, ++num);
}
}
/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
*/
/* split string (only support plain text)
*
* @param str the string
* @param delimiter the delimiter
* @param strict is strict?
* @param limit the limit count
*/
tb_int_t xm_string_split(lua_State* lua)
{
// check
tb_assert_and_check_return_val(lua, 0);
// get string
size_t nstr = 0;
tb_char_t const* cstr = luaL_checklstring(lua, 1, &nstr);
// get delimiter
size_t ndls = 0;
tb_char_t const* cdls = luaL_checklstring(lua, 2, &ndls);
// is strict?
tb_bool_t const strict = (tb_bool_t)lua_toboolean(lua, 3);
// get limit count
tb_int_t const limit = (tb_int_t)luaL_optinteger(lua, 4, -1);
// split it
lua_newtable(lua);
if (ndls == 1) xm_string_split_chr(lua, cstr, (tb_size_t)nstr, cdls[0], strict, limit);
else xm_string_split_str(lua, cstr, (tb_size_t)nstr, cdls, ndls, strict, limit);
return 1;
}
|
cc7b03caf140ad8fbf32ed242cc661bbae1b6071
|
9773303ee72ddf6cfdc2a9060bcc452b432df07f
|
/tests_auto/source-autogen/million.c
|
f1211e6410b581f6597055dd42d5f9412c29121a
|
[
"MIT"
] |
permissive
|
geohot/qira
|
489e50d7e05108615f82ee33d4771a0643a970dc
|
5f34406410aa492bc491fe0e579dbe103390a432
|
refs/heads/master
| 2023-09-05T09:59:07.296559
| 2022-07-02T21:00:14
| 2022-07-02T21:00:14
| 23,707,362
| 2,436
| 452
|
MIT
| 2022-07-02T21:00:15
| 2014-09-05T15:09:40
|
C
|
UTF-8
|
C
| false
| false
| 78
|
c
|
million.c
|
int main() {
volatile int i;
for (i = 0; i < 1000000; i++);
return i;
}
|
d8453c75cf52217a99d62c3ba5541871cd492050
|
bd2cfcb8d0d4acfc3819bc2b859b03f0faaf3e83
|
/tracing01-xdp-simple/trace_prog_kern.c
|
5d9daaab31bc8d59cf6d36f56146a857389b4a0f
|
[] |
no_license
|
xdp-project/xdp-tutorial
|
e2a58cbf52ff05d78bd00b0b9876e4ee1f81743a
|
774189980a8a67f8d4947a595b9afe6059935274
|
refs/heads/master
| 2023-08-11T14:06:15.480456
| 2023-07-07T13:34:37
| 2023-07-07T13:34:37
| 172,523,426
| 1,977
| 519
| null | 2023-09-11T18:17:59
| 2019-02-25T14:40:51
|
C
|
UTF-8
|
C
| false
| false
| 1,127
|
c
|
trace_prog_kern.c
|
/* SPDX-License-Identifier: GPL-2.0 */
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_HASH);
__type(key, __s32);
__type(value, __u64);
__uint(max_entries, 10);
} xdp_stats_map SEC(".maps");
struct xdp_exception_ctx {
__u64 __pad; // First 8 bytes are not accessible by bpf code
__s32 prog_id; // offset:8; size:4; signed:1;
__u32 act; // offset:12; size:4; signed:0;
__s32 ifindex; // offset:16; size:4; signed:1;
};
SEC("tracepoint/xdp/xdp_exception")
int trace_xdp_exception(struct xdp_exception_ctx *ctx)
{
__s32 key = ctx->ifindex;
__u32 *valp;
/* Collecting stats only for XDP_ABORTED action. */
if (ctx->act != XDP_ABORTED)
return 0;
/* Lookup in kernel BPF-side returns pointer to actual data. */
valp = bpf_map_lookup_elem(&xdp_stats_map, &key);
/* If there's no record for interface, we need to create one,
* with number of packets == 1
*/
if (!valp) {
__u64 one = 1;
return bpf_map_update_elem(&xdp_stats_map, &key, &one, 0) ? 1 : 0;
}
(*valp)++;
return 0;
}
char _license[] SEC("license") = "GPL";
|
caa07abde92e0375027b0bbcb650c9dc97c39671
|
0ab34cafb4fce823bdb64588375a5e0320c4d5da
|
/src/io/dirops.h
|
a906f26e8f49cefe0a27914931e7d7333b1b40ff
|
[
"Artistic-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] |
permissive
|
MoarVM/MoarVM
|
00eb8de04ef3eb43d8dd108a016a5fbd644f7cb7
|
2f8234c222dea886da28a9e369e34f3cff18ad8a
|
refs/heads/main
| 2023-08-24T03:30:58.906341
| 2023-08-23T03:28:20
| 2023-08-23T03:28:20
| 10,411,154
| 616
| 228
|
NOASSERTION
| 2023-08-23T03:28:33
| 2013-05-31T19:02:30
|
C
|
UTF-8
|
C
| false
| false
| 511
|
h
|
dirops.h
|
void MVM_dir_mkdir(MVMThreadContext *tc, MVMString *path, MVMint64 mode);
void MVM_dir_rmdir(MVMThreadContext *tc, MVMString *path);
MVMObject * MVM_dir_open(MVMThreadContext *tc, MVMString *dirname);
MVMString * MVM_dir_read(MVMThreadContext *tc, MVMObject *oshandle);
void MVM_dir_close(MVMThreadContext *tc, MVMObject *oshandle);
MVMString * MVM_dir_cwd(MVMThreadContext *tc);
int MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring);
void MVM_dir_chdir(MVMThreadContext *tc, MVMString *dir);
|
1c9d66ce43cdb61cdb3bc691dc4a3309c6ffa7de
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/arch/sh/mm/pmb.c
|
7160c9fd6fe3ab3e4283d440032396bbf65c453c
|
[
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 18,990
|
c
|
pmb.c
|
/*
* arch/sh/mm/pmb.c
*
* Privileged Space Mapping Buffer (PMB) Support.
*
* Copyright (C) 2005 - 2011 Paul Mundt
* Copyright (C) 2010 Matt Fleming
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/syscore_ops.h>
#include <linux/cpu.h>
#include <linux/module.h>
#include <linux/bitops.h>
#include <linux/debugfs.h>
#include <linux/fs.h>
#include <linux/seq_file.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/spinlock.h>
#include <linux/vmalloc.h>
#include <asm/cacheflush.h>
#include <asm/sizes.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/page.h>
#include <asm/mmu.h>
#include <asm/mmu_context.h>
struct pmb_entry;
struct pmb_entry {
unsigned long vpn;
unsigned long ppn;
unsigned long flags;
unsigned long size;
raw_spinlock_t lock;
/*
* 0 .. NR_PMB_ENTRIES for specific entry selection, or
* PMB_NO_ENTRY to search for a free one
*/
int entry;
/* Adjacent entry link for contiguous multi-entry mappings */
struct pmb_entry *link;
};
static struct {
unsigned long size;
int flag;
} pmb_sizes[] = {
{ .size = SZ_512M, .flag = PMB_SZ_512M, },
{ .size = SZ_128M, .flag = PMB_SZ_128M, },
{ .size = SZ_64M, .flag = PMB_SZ_64M, },
{ .size = SZ_16M, .flag = PMB_SZ_16M, },
};
static void pmb_unmap_entry(struct pmb_entry *, int depth);
static DEFINE_RWLOCK(pmb_rwlock);
static struct pmb_entry pmb_entry_list[NR_PMB_ENTRIES];
static DECLARE_BITMAP(pmb_map, NR_PMB_ENTRIES);
static unsigned int pmb_iomapping_enabled;
static __always_inline unsigned long mk_pmb_entry(unsigned int entry)
{
return (entry & PMB_E_MASK) << PMB_E_SHIFT;
}
static __always_inline unsigned long mk_pmb_addr(unsigned int entry)
{
return mk_pmb_entry(entry) | PMB_ADDR;
}
static __always_inline unsigned long mk_pmb_data(unsigned int entry)
{
return mk_pmb_entry(entry) | PMB_DATA;
}
static __always_inline unsigned int pmb_ppn_in_range(unsigned long ppn)
{
return ppn >= __pa(memory_start) && ppn < __pa(memory_end);
}
/*
* Ensure that the PMB entries match our cache configuration.
*
* When we are in 32-bit address extended mode, CCR.CB becomes
* invalid, so care must be taken to manually adjust cacheable
* translations.
*/
static __always_inline unsigned long pmb_cache_flags(void)
{
unsigned long flags = 0;
#if defined(CONFIG_CACHE_OFF)
flags |= PMB_WT | PMB_UB;
#elif defined(CONFIG_CACHE_WRITETHROUGH)
flags |= PMB_C | PMB_WT | PMB_UB;
#elif defined(CONFIG_CACHE_WRITEBACK)
flags |= PMB_C;
#endif
return flags;
}
/*
* Convert typical pgprot value to the PMB equivalent
*/
static inline unsigned long pgprot_to_pmb_flags(pgprot_t prot)
{
unsigned long pmb_flags = 0;
u64 flags = pgprot_val(prot);
if (flags & _PAGE_CACHABLE)
pmb_flags |= PMB_C;
if (flags & _PAGE_WT)
pmb_flags |= PMB_WT | PMB_UB;
return pmb_flags;
}
static inline bool pmb_can_merge(struct pmb_entry *a, struct pmb_entry *b)
{
return (b->vpn == (a->vpn + a->size)) &&
(b->ppn == (a->ppn + a->size)) &&
(b->flags == a->flags);
}
static bool pmb_mapping_exists(unsigned long vaddr, phys_addr_t phys,
unsigned long size)
{
int i;
read_lock(&pmb_rwlock);
for (i = 0; i < ARRAY_SIZE(pmb_entry_list); i++) {
struct pmb_entry *pmbe, *iter;
unsigned long span;
if (!test_bit(i, pmb_map))
continue;
pmbe = &pmb_entry_list[i];
/*
* See if VPN and PPN are bounded by an existing mapping.
*/
if ((vaddr < pmbe->vpn) || (vaddr >= (pmbe->vpn + pmbe->size)))
continue;
if ((phys < pmbe->ppn) || (phys >= (pmbe->ppn + pmbe->size)))
continue;
/*
* Now see if we're in range of a simple mapping.
*/
if (size <= pmbe->size) {
read_unlock(&pmb_rwlock);
return true;
}
span = pmbe->size;
/*
* Finally for sizes that involve compound mappings, walk
* the chain.
*/
for (iter = pmbe->link; iter; iter = iter->link)
span += iter->size;
/*
* Nothing else to do if the range requirements are met.
*/
if (size <= span) {
read_unlock(&pmb_rwlock);
return true;
}
}
read_unlock(&pmb_rwlock);
return false;
}
static bool pmb_size_valid(unsigned long size)
{
int i;
for (i = 0; i < ARRAY_SIZE(pmb_sizes); i++)
if (pmb_sizes[i].size == size)
return true;
return false;
}
static inline bool pmb_addr_valid(unsigned long addr, unsigned long size)
{
return (addr >= P1SEG && (addr + size - 1) < P3SEG);
}
static inline bool pmb_prot_valid(pgprot_t prot)
{
return (pgprot_val(prot) & _PAGE_USER) == 0;
}
static int pmb_size_to_flags(unsigned long size)
{
int i;
for (i = 0; i < ARRAY_SIZE(pmb_sizes); i++)
if (pmb_sizes[i].size == size)
return pmb_sizes[i].flag;
return 0;
}
static int pmb_alloc_entry(void)
{
int pos;
pos = find_first_zero_bit(pmb_map, NR_PMB_ENTRIES);
if (pos >= 0 && pos < NR_PMB_ENTRIES)
__set_bit(pos, pmb_map);
else
pos = -ENOSPC;
return pos;
}
static struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn,
unsigned long flags, int entry)
{
struct pmb_entry *pmbe;
unsigned long irqflags;
void *ret = NULL;
int pos;
write_lock_irqsave(&pmb_rwlock, irqflags);
if (entry == PMB_NO_ENTRY) {
pos = pmb_alloc_entry();
if (unlikely(pos < 0)) {
ret = ERR_PTR(pos);
goto out;
}
} else {
if (__test_and_set_bit(entry, pmb_map)) {
ret = ERR_PTR(-ENOSPC);
goto out;
}
pos = entry;
}
write_unlock_irqrestore(&pmb_rwlock, irqflags);
pmbe = &pmb_entry_list[pos];
memset(pmbe, 0, sizeof(struct pmb_entry));
raw_spin_lock_init(&pmbe->lock);
pmbe->vpn = vpn;
pmbe->ppn = ppn;
pmbe->flags = flags;
pmbe->entry = pos;
return pmbe;
out:
write_unlock_irqrestore(&pmb_rwlock, irqflags);
return ret;
}
static void pmb_free(struct pmb_entry *pmbe)
{
__clear_bit(pmbe->entry, pmb_map);
pmbe->entry = PMB_NO_ENTRY;
pmbe->link = NULL;
}
/*
* Must be run uncached.
*/
static void __set_pmb_entry(struct pmb_entry *pmbe)
{
unsigned long addr, data;
addr = mk_pmb_addr(pmbe->entry);
data = mk_pmb_data(pmbe->entry);
jump_to_uncached();
/* Set V-bit */
__raw_writel(pmbe->vpn | PMB_V, addr);
__raw_writel(pmbe->ppn | pmbe->flags | PMB_V, data);
back_to_cached();
}
static void __clear_pmb_entry(struct pmb_entry *pmbe)
{
unsigned long addr, data;
unsigned long addr_val, data_val;
addr = mk_pmb_addr(pmbe->entry);
data = mk_pmb_data(pmbe->entry);
addr_val = __raw_readl(addr);
data_val = __raw_readl(data);
/* Clear V-bit */
writel_uncached(addr_val & ~PMB_V, addr);
writel_uncached(data_val & ~PMB_V, data);
}
#ifdef CONFIG_PM
static void set_pmb_entry(struct pmb_entry *pmbe)
{
unsigned long flags;
raw_spin_lock_irqsave(&pmbe->lock, flags);
__set_pmb_entry(pmbe);
raw_spin_unlock_irqrestore(&pmbe->lock, flags);
}
#endif /* CONFIG_PM */
int pmb_bolt_mapping(unsigned long vaddr, phys_addr_t phys,
unsigned long size, pgprot_t prot)
{
struct pmb_entry *pmbp, *pmbe;
unsigned long orig_addr, orig_size;
unsigned long flags, pmb_flags;
int i, mapped;
if (size < SZ_16M)
return -EINVAL;
if (!pmb_addr_valid(vaddr, size))
return -EFAULT;
if (pmb_mapping_exists(vaddr, phys, size))
return 0;
orig_addr = vaddr;
orig_size = size;
flush_tlb_kernel_range(vaddr, vaddr + size);
pmb_flags = pgprot_to_pmb_flags(prot);
pmbp = NULL;
do {
for (i = mapped = 0; i < ARRAY_SIZE(pmb_sizes); i++) {
if (size < pmb_sizes[i].size)
continue;
pmbe = pmb_alloc(vaddr, phys, pmb_flags |
pmb_sizes[i].flag, PMB_NO_ENTRY);
if (IS_ERR(pmbe)) {
pmb_unmap_entry(pmbp, mapped);
return PTR_ERR(pmbe);
}
raw_spin_lock_irqsave(&pmbe->lock, flags);
pmbe->size = pmb_sizes[i].size;
__set_pmb_entry(pmbe);
phys += pmbe->size;
vaddr += pmbe->size;
size -= pmbe->size;
/*
* Link adjacent entries that span multiple PMB
* entries for easier tear-down.
*/
if (likely(pmbp)) {
raw_spin_lock_nested(&pmbp->lock,
SINGLE_DEPTH_NESTING);
pmbp->link = pmbe;
raw_spin_unlock(&pmbp->lock);
}
pmbp = pmbe;
/*
* Instead of trying smaller sizes on every
* iteration (even if we succeed in allocating
* space), try using pmb_sizes[i].size again.
*/
i--;
mapped++;
raw_spin_unlock_irqrestore(&pmbe->lock, flags);
}
} while (size >= SZ_16M);
flush_cache_vmap(orig_addr, orig_addr + orig_size);
return 0;
}
void __iomem *pmb_remap_caller(phys_addr_t phys, unsigned long size,
pgprot_t prot, void *caller)
{
unsigned long vaddr;
phys_addr_t offset, last_addr;
phys_addr_t align_mask;
unsigned long aligned;
struct vm_struct *area;
int i, ret;
if (!pmb_iomapping_enabled)
return NULL;
/*
* Small mappings need to go through the TLB.
*/
if (size < SZ_16M)
return ERR_PTR(-EINVAL);
if (!pmb_prot_valid(prot))
return ERR_PTR(-EINVAL);
for (i = 0; i < ARRAY_SIZE(pmb_sizes); i++)
if (size >= pmb_sizes[i].size)
break;
last_addr = phys + size;
align_mask = ~(pmb_sizes[i].size - 1);
offset = phys & ~align_mask;
phys &= align_mask;
aligned = ALIGN(last_addr, pmb_sizes[i].size) - phys;
/*
* XXX: This should really start from uncached_end, but this
* causes the MMU to reset, so for now we restrict it to the
* 0xb000...0xc000 range.
*/
area = __get_vm_area_caller(aligned, VM_IOREMAP, 0xb0000000,
P3SEG, caller);
if (!area)
return NULL;
area->phys_addr = phys;
vaddr = (unsigned long)area->addr;
ret = pmb_bolt_mapping(vaddr, phys, size, prot);
if (unlikely(ret != 0))
return ERR_PTR(ret);
return (void __iomem *)(offset + (char *)vaddr);
}
int pmb_unmap(void __iomem *addr)
{
struct pmb_entry *pmbe = NULL;
unsigned long vaddr = (unsigned long __force)addr;
int i, found = 0;
read_lock(&pmb_rwlock);
for (i = 0; i < ARRAY_SIZE(pmb_entry_list); i++) {
if (test_bit(i, pmb_map)) {
pmbe = &pmb_entry_list[i];
if (pmbe->vpn == vaddr) {
found = 1;
break;
}
}
}
read_unlock(&pmb_rwlock);
if (found) {
pmb_unmap_entry(pmbe, NR_PMB_ENTRIES);
return 0;
}
return -EINVAL;
}
static void __pmb_unmap_entry(struct pmb_entry *pmbe, int depth)
{
do {
struct pmb_entry *pmblink = pmbe;
/*
* We may be called before this pmb_entry has been
* entered into the PMB table via set_pmb_entry(), but
* that's OK because we've allocated a unique slot for
* this entry in pmb_alloc() (even if we haven't filled
* it yet).
*
* Therefore, calling __clear_pmb_entry() is safe as no
* other mapping can be using that slot.
*/
__clear_pmb_entry(pmbe);
flush_cache_vunmap(pmbe->vpn, pmbe->vpn + pmbe->size);
pmbe = pmblink->link;
pmb_free(pmblink);
} while (pmbe && --depth);
}
static void pmb_unmap_entry(struct pmb_entry *pmbe, int depth)
{
unsigned long flags;
if (unlikely(!pmbe))
return;
write_lock_irqsave(&pmb_rwlock, flags);
__pmb_unmap_entry(pmbe, depth);
write_unlock_irqrestore(&pmb_rwlock, flags);
}
static void __init pmb_notify(void)
{
int i;
pr_info("PMB: boot mappings:\n");
read_lock(&pmb_rwlock);
for (i = 0; i < ARRAY_SIZE(pmb_entry_list); i++) {
struct pmb_entry *pmbe;
if (!test_bit(i, pmb_map))
continue;
pmbe = &pmb_entry_list[i];
pr_info(" 0x%08lx -> 0x%08lx [ %4ldMB %2scached ]\n",
pmbe->vpn >> PAGE_SHIFT, pmbe->ppn >> PAGE_SHIFT,
pmbe->size >> 20, (pmbe->flags & PMB_C) ? "" : "un");
}
read_unlock(&pmb_rwlock);
}
/*
* Sync our software copy of the PMB mappings with those in hardware. The
* mappings in the hardware PMB were either set up by the bootloader or
* very early on by the kernel.
*/
static void __init pmb_synchronize(void)
{
struct pmb_entry *pmbp = NULL;
int i, j;
/*
* Run through the initial boot mappings, log the established
* ones, and blow away anything that falls outside of the valid
* PPN range. Specifically, we only care about existing mappings
* that impact the cached/uncached sections.
*
* Note that touching these can be a bit of a minefield; the boot
* loader can establish multi-page mappings with the same caching
* attributes, so we need to ensure that we aren't modifying a
* mapping that we're presently executing from, or may execute
* from in the case of straddling page boundaries.
*
* In the future we will have to tidy up after the boot loader by
* jumping between the cached and uncached mappings and tearing
* down alternating mappings while executing from the other.
*/
for (i = 0; i < NR_PMB_ENTRIES; i++) {
unsigned long addr, data;
unsigned long addr_val, data_val;
unsigned long ppn, vpn, flags;
unsigned long irqflags;
unsigned int size;
struct pmb_entry *pmbe;
addr = mk_pmb_addr(i);
data = mk_pmb_data(i);
addr_val = __raw_readl(addr);
data_val = __raw_readl(data);
/*
* Skip over any bogus entries
*/
if (!(data_val & PMB_V) || !(addr_val & PMB_V))
continue;
ppn = data_val & PMB_PFN_MASK;
vpn = addr_val & PMB_PFN_MASK;
/*
* Only preserve in-range mappings.
*/
if (!pmb_ppn_in_range(ppn)) {
/*
* Invalidate anything out of bounds.
*/
writel_uncached(addr_val & ~PMB_V, addr);
writel_uncached(data_val & ~PMB_V, data);
continue;
}
/*
* Update the caching attributes if necessary
*/
if (data_val & PMB_C) {
data_val &= ~PMB_CACHE_MASK;
data_val |= pmb_cache_flags();
writel_uncached(data_val, data);
}
size = data_val & PMB_SZ_MASK;
flags = size | (data_val & PMB_CACHE_MASK);
pmbe = pmb_alloc(vpn, ppn, flags, i);
if (IS_ERR(pmbe)) {
WARN_ON_ONCE(1);
continue;
}
raw_spin_lock_irqsave(&pmbe->lock, irqflags);
for (j = 0; j < ARRAY_SIZE(pmb_sizes); j++)
if (pmb_sizes[j].flag == size)
pmbe->size = pmb_sizes[j].size;
if (pmbp) {
raw_spin_lock_nested(&pmbp->lock, SINGLE_DEPTH_NESTING);
/*
* Compare the previous entry against the current one to
* see if the entries span a contiguous mapping. If so,
* setup the entry links accordingly. Compound mappings
* are later coalesced.
*/
if (pmb_can_merge(pmbp, pmbe))
pmbp->link = pmbe;
raw_spin_unlock(&pmbp->lock);
}
pmbp = pmbe;
raw_spin_unlock_irqrestore(&pmbe->lock, irqflags);
}
}
static void __init pmb_merge(struct pmb_entry *head)
{
unsigned long span, newsize;
struct pmb_entry *tail;
int i = 1, depth = 0;
span = newsize = head->size;
tail = head->link;
while (tail) {
span += tail->size;
if (pmb_size_valid(span)) {
newsize = span;
depth = i;
}
/* This is the end of the line.. */
if (!tail->link)
break;
tail = tail->link;
i++;
}
/*
* The merged page size must be valid.
*/
if (!depth || !pmb_size_valid(newsize))
return;
head->flags &= ~PMB_SZ_MASK;
head->flags |= pmb_size_to_flags(newsize);
head->size = newsize;
__pmb_unmap_entry(head->link, depth);
__set_pmb_entry(head);
}
static void __init pmb_coalesce(void)
{
unsigned long flags;
int i;
write_lock_irqsave(&pmb_rwlock, flags);
for (i = 0; i < ARRAY_SIZE(pmb_entry_list); i++) {
struct pmb_entry *pmbe;
if (!test_bit(i, pmb_map))
continue;
pmbe = &pmb_entry_list[i];
/*
* We're only interested in compound mappings
*/
if (!pmbe->link)
continue;
/*
* Nothing to do if it already uses the largest possible
* page size.
*/
if (pmbe->size == SZ_512M)
continue;
pmb_merge(pmbe);
}
write_unlock_irqrestore(&pmb_rwlock, flags);
}
#ifdef CONFIG_UNCACHED_MAPPING
static void __init pmb_resize(void)
{
int i;
/*
* If the uncached mapping was constructed by the kernel, it will
* already be a reasonable size.
*/
if (uncached_size == SZ_16M)
return;
read_lock(&pmb_rwlock);
for (i = 0; i < ARRAY_SIZE(pmb_entry_list); i++) {
struct pmb_entry *pmbe;
unsigned long flags;
if (!test_bit(i, pmb_map))
continue;
pmbe = &pmb_entry_list[i];
if (pmbe->vpn != uncached_start)
continue;
/*
* Found it, now resize it.
*/
raw_spin_lock_irqsave(&pmbe->lock, flags);
pmbe->size = SZ_16M;
pmbe->flags &= ~PMB_SZ_MASK;
pmbe->flags |= pmb_size_to_flags(pmbe->size);
uncached_resize(pmbe->size);
__set_pmb_entry(pmbe);
raw_spin_unlock_irqrestore(&pmbe->lock, flags);
}
read_unlock(&pmb_rwlock);
}
#endif
static int __init early_pmb(char *p)
{
if (!p)
return 0;
if (strstr(p, "iomap"))
pmb_iomapping_enabled = 1;
return 0;
}
early_param("pmb", early_pmb);
void __init pmb_init(void)
{
/* Synchronize software state */
pmb_synchronize();
/* Attempt to combine compound mappings */
pmb_coalesce();
#ifdef CONFIG_UNCACHED_MAPPING
/* Resize initial mappings, if necessary */
pmb_resize();
#endif
/* Log them */
pmb_notify();
writel_uncached(0, PMB_IRMCR);
/* Flush out the TLB */
local_flush_tlb_all();
ctrl_barrier();
}
bool __in_29bit_mode(void)
{
return (__raw_readl(PMB_PASCR) & PASCR_SE) == 0;
}
static int pmb_seq_show(struct seq_file *file, void *iter)
{
int i;
seq_printf(file, "V: Valid, C: Cacheable, WT: Write-Through\n"
"CB: Copy-Back, B: Buffered, UB: Unbuffered\n");
seq_printf(file, "ety vpn ppn size flags\n");
for (i = 0; i < NR_PMB_ENTRIES; i++) {
unsigned long addr, data;
unsigned int size;
char *sz_str = NULL;
addr = __raw_readl(mk_pmb_addr(i));
data = __raw_readl(mk_pmb_data(i));
size = data & PMB_SZ_MASK;
sz_str = (size == PMB_SZ_16M) ? " 16MB":
(size == PMB_SZ_64M) ? " 64MB":
(size == PMB_SZ_128M) ? "128MB":
"512MB";
/* 02: V 0x88 0x08 128MB C CB B */
seq_printf(file, "%02d: %c 0x%02lx 0x%02lx %s %c %s %s\n",
i, ((addr & PMB_V) && (data & PMB_V)) ? 'V' : ' ',
(addr >> 24) & 0xff, (data >> 24) & 0xff,
sz_str, (data & PMB_C) ? 'C' : ' ',
(data & PMB_WT) ? "WT" : "CB",
(data & PMB_UB) ? "UB" : " B");
}
return 0;
}
static int pmb_debugfs_open(struct inode *inode, struct file *file)
{
return single_open(file, pmb_seq_show, NULL);
}
static const struct file_operations pmb_debugfs_fops = {
.owner = THIS_MODULE,
.open = pmb_debugfs_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
};
static int __init pmb_debugfs_init(void)
{
struct dentry *dentry;
dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO,
arch_debugfs_dir, NULL, &pmb_debugfs_fops);
if (!dentry)
return -ENOMEM;
return 0;
}
subsys_initcall(pmb_debugfs_init);
#ifdef CONFIG_PM
static void pmb_syscore_resume(void)
{
struct pmb_entry *pmbe;
int i;
read_lock(&pmb_rwlock);
for (i = 0; i < ARRAY_SIZE(pmb_entry_list); i++) {
if (test_bit(i, pmb_map)) {
pmbe = &pmb_entry_list[i];
set_pmb_entry(pmbe);
}
}
read_unlock(&pmb_rwlock);
}
static struct syscore_ops pmb_syscore_ops = {
.resume = pmb_syscore_resume,
};
static int __init pmb_sysdev_init(void)
{
register_syscore_ops(&pmb_syscore_ops);
return 0;
}
subsys_initcall(pmb_sysdev_init);
#endif
|
750d748fa2f3d2cae97b142b2441d323aa8f4421
|
50e95229b9a1161ac294137120aaba94c9eb06bc
|
/sources/ippcp/pcpsha256stuff.h
|
2335b9c3e79af80d4660197d7d7d6623da8ae897
|
[
"Apache-2.0",
"Intel"
] |
permissive
|
intel/ipp-crypto
|
f0f05b87203705e82603db67bed5f8def13a5ee8
|
36e76e2388f3dd10cc440e213dfcf6ef59a0dfb8
|
refs/heads/develop
| 2023-09-04T08:15:06.851373
| 2023-07-27T12:47:12
| 2023-07-27T12:47:12
| 140,034,345
| 304
| 81
|
Apache-2.0
| 2023-08-30T17:18:36
| 2018-07-06T22:16:28
|
C
|
UTF-8
|
C
| false
| false
| 5,848
|
h
|
pcpsha256stuff.h
|
/*******************************************************************************
* Copyright (C) 2002 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions
* and limitations under the License.
*
*******************************************************************************/
/*
//
// Purpose:
// Cryptography Primitive.
// Digesting message according to SHA256
//
// Contents:
// ippsSHA256GetSize()
// ippsSHA256Init()
// ippsSHA256Pack()
// ippsSHA256Unpack()
// ippsSHA256Duplicate()
// ippsSHA256Update()
// ippsSHA256GetTag()
// ippsSHA256Final()
// ippsSHA256MessageDigest()
//
//
*/
#include "owndefs.h"
#include "owncp.h"
#include "pcphash.h"
#include "pcphash_rmf.h"
#if !defined(_PCP_SHA256_STUFF_H)
#define _PCP_SHA256_STUFF_H
/* SHA-256, SHA-224 constants */
static const Ipp32u sha256_iv[] = {
0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A,
0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19};
static const Ipp32u sha224_iv[] = {
0xC1059ED8, 0x367CD507, 0x3070DD17, 0xF70E5939,
0xFFC00B31, 0x68581511, 0x64F98FA7, 0xBEFA4FA4};
static __ALIGN16 const Ipp32u sha256_cnt[] = {
0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,
0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,
0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,
0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,
0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,
0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,
0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,
0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,
0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2
};
/* setup init hash value */
__INLINE void hashInit(Ipp32u* pHash, const Ipp32u* iv)
{
pHash[0] = iv[0];
pHash[1] = iv[1];
pHash[2] = iv[2];
pHash[3] = iv[3];
pHash[4] = iv[4];
pHash[5] = iv[5];
pHash[6] = iv[6];
pHash[7] = iv[7];
}
IPP_OWN_DEFN (static void, sha256_hashInit, (void* pHash))
{
hashInit((Ipp32u*)pHash, sha256_iv);
}
IPP_OWN_DEFN (static void, sha224_hashInit, (void* pHash))
{
hashInit((Ipp32u*)pHash, sha224_iv);
}
IPP_OWN_DEFN (static void, sha256_hashUpdate, (void* pHash, const Ipp8u* pMsg, int msgLen))
{
UpdateSHA256(pHash, pMsg, msgLen, sha256_cnt);
}
#if (_SHA_NI_ENABLING_==_FEATURE_TICKTOCK_ || _SHA_NI_ENABLING_==_FEATURE_ON_)
IPP_OWN_DEFN (static void, sha256_ni_hashUpdate, (void* pHash, const Ipp8u* pMsg, int msgLen))
{
UpdateSHA256ni(pHash, pMsg, msgLen, sha256_cnt);
}
#endif
/* convert hash into big endian */
IPP_OWN_DEFN (static void, sha256_hashOctString, (Ipp8u* pMD, void* pHashVal))
{
/* convert hash into big endian */
((Ipp32u*)pMD)[0] = ENDIANNESS32(((Ipp32u*)pHashVal)[0]);
((Ipp32u*)pMD)[1] = ENDIANNESS32(((Ipp32u*)pHashVal)[1]);
((Ipp32u*)pMD)[2] = ENDIANNESS32(((Ipp32u*)pHashVal)[2]);
((Ipp32u*)pMD)[3] = ENDIANNESS32(((Ipp32u*)pHashVal)[3]);
((Ipp32u*)pMD)[4] = ENDIANNESS32(((Ipp32u*)pHashVal)[4]);
((Ipp32u*)pMD)[5] = ENDIANNESS32(((Ipp32u*)pHashVal)[5]);
((Ipp32u*)pMD)[6] = ENDIANNESS32(((Ipp32u*)pHashVal)[6]);
((Ipp32u*)pMD)[7] = ENDIANNESS32(((Ipp32u*)pHashVal)[7]);
}
IPP_OWN_DEFN (static void, sha224_hashOctString, (Ipp8u* pMD, void* pHashVal))
{
/* convert hash into big endian */
((Ipp32u*)pMD)[0] = ENDIANNESS32(((Ipp32u*)pHashVal)[0]);
((Ipp32u*)pMD)[1] = ENDIANNESS32(((Ipp32u*)pHashVal)[1]);
((Ipp32u*)pMD)[2] = ENDIANNESS32(((Ipp32u*)pHashVal)[2]);
((Ipp32u*)pMD)[3] = ENDIANNESS32(((Ipp32u*)pHashVal)[3]);
((Ipp32u*)pMD)[4] = ENDIANNESS32(((Ipp32u*)pHashVal)[4]);
((Ipp32u*)pMD)[5] = ENDIANNESS32(((Ipp32u*)pHashVal)[5]);
((Ipp32u*)pMD)[6] = ENDIANNESS32(((Ipp32u*)pHashVal)[6]);
}
IPP_OWN_DEFN (static void, sha256_msgRep, (Ipp8u* pDst, Ipp64u lenLo, Ipp64u lenHi))
{
IPP_UNREFERENCED_PARAMETER(lenHi);
lenLo = ENDIANNESS64(lenLo<<3);
((Ipp64u*)(pDst))[0] = lenLo;
}
/*
// SHA256 init context
*/
IPP_OWN_DEFN (static IppStatus, GetSizeSHA256, (int* pSize))
{
IPP_BAD_PTR1_RET(pSize);
*pSize = sizeof(IppsSHA256State);
return ippStsNoErr;
}
IPP_OWN_DEFN (static IppStatus, InitSHA256, (IppsSHA256State* pState, const DigestSHA256 IV))
{
/* test state pointer */
IPP_BAD_PTR1_RET(pState);
HASH_SET_ID(pState, idCtxSHA256);
HASH_LENLO(pState) = 0;
HASH_BUFFIDX(pState) = 0;
/* setup initial digest */
HASH_VALUE(pState)[0] = IV[0];
HASH_VALUE(pState)[1] = IV[1];
HASH_VALUE(pState)[2] = IV[2];
HASH_VALUE(pState)[3] = IV[3];
HASH_VALUE(pState)[4] = IV[4];
HASH_VALUE(pState)[5] = IV[5];
HASH_VALUE(pState)[6] = IV[6];
HASH_VALUE(pState)[7] = IV[7];
return ippStsNoErr;
}
#define cpSHA256MessageDigest OWNAPI(cpSHA256MessageDigest)
IPP_OWN_DECL (IppStatus, cpSHA256MessageDigest, (DigestSHA256 hash, const Ipp8u* pMsg, int msgLen, const DigestSHA256 IV))
#define cpFinalizeSHA256 OWNAPI(cpFinalizeSHA256)
IPP_OWN_DECL (void, cpFinalizeSHA256, (DigestSHA256 pHash, const Ipp8u* inpBuffer, int inpLen, Ipp64u processedMsgLen))
#endif /* #if !defined(_PCP_SHA256_STUFF_H) */
|
1162ef1ec5b819939545398b5c517ccd95050bd3
|
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
|
/misc/ibutton-pdkit/patches/patch-swtloop.c
|
4bbfb5af89083c442cd12098f422a40f7e5e0587
|
[] |
no_license
|
NetBSD/pkgsrc
|
a0732c023519650ef821ab89c23ab6ab59e25bdb
|
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
|
refs/heads/trunk
| 2023-09-01T07:40:12.138283
| 2023-09-01T05:25:19
| 2023-09-01T05:25:19
| 88,439,572
| 321
| 138
| null | 2023-07-12T22:34:14
| 2017-04-16T20:04:15
| null |
UTF-8
|
C
| false
| false
| 537
|
c
|
patch-swtloop.c
|
$NetBSD: patch-swtloop.c,v 1.1 2013/01/11 13:30:32 joerg Exp $
--- swtloop.c.orig 2013-01-11 01:31:21.000000000 +0000
+++ swtloop.c
@@ -53,7 +53,7 @@ extern int getkeystroke(void);
//--------------------------------------------------------------------------
// This is the begining of the program that tests the different Channels
-int main(short argc, char **argv)
+int main(int argc, char **argv)
{
char return_msg[128]; //returned message from 1-wire operations
int i,j,k,n; //loop counters
|
95e07913d7104d3430ed0f269c15a7afeb604d42
|
bb773aadd819255fe61fd6d8ab002088cdb25593
|
/platform/samd11/uart.c
|
dfe22ad617eba42c0adabb913ef549f30a00dc88
|
[] |
permissive
|
ataradov/free-dap
|
3e86258e7e2504ed1e37ec4be92cd2fb05fc8628
|
e7752beb5e8a69119af67b70b9179cb3c90f3ac5
|
refs/heads/master
| 2023-08-09T01:35:34.204432
| 2022-08-07T20:55:33
| 2022-08-07T20:55:33
| 63,569,985
| 172
| 50
|
BSD-3-Clause
| 2023-07-23T18:30:07
| 2016-07-18T04:23:30
|
C
|
UTF-8
|
C
| false
| false
| 5,896
|
c
|
uart.c
|
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2017-2022, Alex Taradov <alex@taradov.com>. All rights reserved.
/*- Includes ----------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "samd11.h"
#include "hal_config.h"
#include "uart.h"
#include "usb_cdc.h"
#ifdef HAL_CONFIG_ENABLE_VCP
/*- Definitions -------------------------------------------------------------*/
#define UART_BUF_SIZE 256
/*- Types ------------------------------------------------------------------*/
typedef struct
{
int wr;
int rd;
uint16_t data[UART_BUF_SIZE];
} fifo_buffer_t;
/*- Variables --------------------------------------------------------------*/
static volatile fifo_buffer_t uart_rx_fifo;
static volatile fifo_buffer_t uart_tx_fifo;
static volatile bool uart_fifo_overflow = false;
/*- Implementations ---------------------------------------------------------*/
//-----------------------------------------------------------------------------
void uart_init(usb_cdc_line_coding_t *line_coding)
{
int chsize, form, pmode, sbmode, baud, fp;
HAL_GPIO_UART_TX_out();
HAL_GPIO_UART_TX_clr();
HAL_GPIO_UART_TX_pmuxen(UART_SERCOM_PMUX);
HAL_GPIO_UART_RX_pullup();
HAL_GPIO_UART_RX_pmuxen(UART_SERCOM_PMUX);
PM->APBCMASK.reg |= UART_SERCOM_APBCMASK;
GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(UART_SERCOM_GCLK_ID) |
GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN(0);
UART_SERCOM->USART.CTRLA.reg = SERCOM_USART_CTRLA_SWRST;
while (UART_SERCOM->USART.CTRLA.bit.SWRST);
uart_tx_fifo.wr = 0;
uart_tx_fifo.rd = 0;
uart_rx_fifo.wr = 0;
uart_rx_fifo.rd = 0;
uart_fifo_overflow = false;
if (USB_CDC_5_DATA_BITS == line_coding->bDataBits)
chsize = 5;
else if (USB_CDC_6_DATA_BITS == line_coding->bDataBits)
chsize = 6;
else if (USB_CDC_7_DATA_BITS == line_coding->bDataBits)
chsize = 7;
else if (USB_CDC_8_DATA_BITS == line_coding->bDataBits)
chsize = 0;
else
chsize = 0;
if (USB_CDC_NO_PARITY == line_coding->bParityType)
form = 0;
else
form = 1;
if (USB_CDC_EVEN_PARITY == line_coding->bParityType)
pmode = 0;
else
pmode = SERCOM_USART_CTRLB_PMODE;
if (USB_CDC_1_STOP_BIT == line_coding->bCharFormat)
sbmode = 0;
else
sbmode = SERCOM_USART_CTRLB_SBMODE;
baud = F_CPU / (16 * line_coding->dwDTERate);
fp = (F_CPU / line_coding->dwDTERate - 16 * baud) / 2;
UART_SERCOM->USART.CTRLA.reg =
SERCOM_USART_CTRLA_DORD | SERCOM_USART_CTRLA_MODE_USART_INT_CLK |
SERCOM_USART_CTRLA_FORM(form) | SERCOM_USART_CTRLA_SAMPR(1) |
SERCOM_USART_CTRLA_RXPO(UART_SERCOM_RXPO) |
SERCOM_USART_CTRLA_TXPO(UART_SERCOM_TXPO);
UART_SERCOM->USART.CTRLB.reg = SERCOM_USART_CTRLB_RXEN | SERCOM_USART_CTRLB_TXEN |
SERCOM_USART_CTRLB_CHSIZE(chsize) | pmode | sbmode;
UART_SERCOM->USART.BAUD.reg =
SERCOM_USART_BAUD_FRACFP_BAUD(baud) | SERCOM_USART_BAUD_FRACFP_FP(fp);
UART_SERCOM->USART.CTRLA.reg |= SERCOM_USART_CTRLA_ENABLE;
UART_SERCOM->USART.INTENSET.reg = SERCOM_USART_INTENSET_RXC;
NVIC_EnableIRQ(UART_SERCOM_IRQ_INDEX);
}
//-----------------------------------------------------------------------------
void uart_close(void)
{
UART_SERCOM->USART.CTRLA.reg = SERCOM_USART_CTRLA_SWRST;
while (UART_SERCOM->USART.CTRLA.bit.SWRST);
}
//-----------------------------------------------------------------------------
bool uart_write_byte(int byte)
{
int wr = (uart_tx_fifo.wr + 1) % UART_BUF_SIZE;
bool res = false;
NVIC_DisableIRQ(UART_SERCOM_IRQ_INDEX);
if (wr != uart_tx_fifo.rd)
{
uart_tx_fifo.data[uart_tx_fifo.wr] = byte;
uart_tx_fifo.wr = wr;
res = true;
UART_SERCOM->USART.INTENSET.reg = SERCOM_USART_INTENSET_DRE;
}
NVIC_EnableIRQ(UART_SERCOM_IRQ_INDEX);
return res;
}
//-----------------------------------------------------------------------------
bool uart_read_byte(int *byte)
{
bool res = false;
NVIC_DisableIRQ(UART_SERCOM_IRQ_INDEX);
if (uart_fifo_overflow)
{
*byte = (USB_CDC_SERIAL_STATE_OVERRUN << 8);
uart_fifo_overflow = false;
res = true;
}
else if (uart_rx_fifo.rd != uart_rx_fifo.wr)
{
*byte = uart_rx_fifo.data[uart_rx_fifo.rd];
uart_rx_fifo.rd = (uart_rx_fifo.rd + 1) % UART_BUF_SIZE;
res = true;
}
NVIC_EnableIRQ(UART_SERCOM_IRQ_INDEX);
return res;
}
//-----------------------------------------------------------------------------
void uart_set_break(bool brk)
{
if (brk)
HAL_GPIO_UART_TX_pmuxdis();
else
HAL_GPIO_UART_TX_pmuxen(UART_SERCOM_PMUX);
}
//-----------------------------------------------------------------------------
void UART_SERCOM_IRQ_HANDLER(void)
{
int flags = UART_SERCOM->USART.INTFLAG.reg;
if (flags & SERCOM_USART_INTFLAG_RXC)
{
int status = UART_SERCOM->USART.STATUS.reg;
int byte = UART_SERCOM->USART.DATA.reg;
int wr = (uart_rx_fifo.wr + 1) % UART_BUF_SIZE;
int state = 0;
UART_SERCOM->USART.STATUS.reg = status;
if (status & SERCOM_USART_STATUS_BUFOVF)
state |= USB_CDC_SERIAL_STATE_OVERRUN;
if (status & SERCOM_USART_STATUS_FERR)
state |= USB_CDC_SERIAL_STATE_FRAMING;
if (status & SERCOM_USART_STATUS_PERR)
state |= USB_CDC_SERIAL_STATE_PARITY;
byte |= (state << 8);
if (wr == uart_rx_fifo.rd)
{
uart_fifo_overflow = true;
}
else
{
uart_rx_fifo.data[uart_rx_fifo.wr] = byte;
uart_rx_fifo.wr = wr;
}
}
if (flags & SERCOM_USART_INTFLAG_DRE)
{
if (uart_tx_fifo.rd == uart_tx_fifo.wr)
{
UART_SERCOM->USART.INTENCLR.reg = SERCOM_USART_INTENCLR_DRE;
}
else
{
UART_SERCOM->USART.DATA.reg = uart_tx_fifo.data[uart_tx_fifo.rd];
uart_tx_fifo.rd = (uart_tx_fifo.rd + 1) % UART_BUF_SIZE;
}
}
}
#endif // HAL_CONFIG_ENABLE_VCP
|
570b741d80339d4209cfefdc6ff97e7e82187a29
|
61da6274995cf914291af51bd02e60f408fdfedd
|
/src/iter/tgv.h
|
058e2dd4189ee2528a190ed8a168f1d4b787268b
|
[
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] |
permissive
|
mrirecon/bart
|
360d518b4c79836d506803aa4a77e8e252ab820b
|
a3c9dc313f79c4c52f1ba3e617d5831ef088ddf7
|
refs/heads/master
| 2023-08-31T11:01:08.932824
| 2023-08-30T12:15:35
| 2023-08-30T13:51:18
| 23,212,230
| 264
| 185
|
BSD-3-Clause
| 2023-08-03T18:43:36
| 2014-08-22T03:57:09
|
C
|
UTF-8
|
C
| false
| false
| 379
|
h
|
tgv.h
|
struct reg2 {
const struct linop_s* linop[2];
const struct operator_p_s* prox[2];
};
extern struct reg2 tgv_reg(unsigned long flags, unsigned long jflags, float lambda, int N, const long in_dims[N], int* ext_shift);
extern struct reg2 ictv_reg(unsigned long flags1, unsigned long flags2, unsigned long jflags, float lambda, int N, const long in_dims[N], int* ext_shift);
|
04b66a146223385ae20e621439b720a4b410634b
|
83b8b30ebb633eecd29ca0a7a20cc43a293c9333
|
/ports/silabs/common-hal/_bleio/Descriptor.c
|
6a40f1f859a91c7103fb6587ee852cc42b2a4b33
|
[
"MIT",
"GPL-1.0-or-later"
] |
permissive
|
adafruit/circuitpython
|
430ec895149d1eb814b505db39b4977a35ee88a7
|
506dca71b0cbb7af749bb51f86b01021db5483b3
|
refs/heads/main
| 2023-08-21T16:30:46.781068
| 2023-08-20T00:39:44
| 2023-08-20T00:39:44
| 66,166,069
| 3,806
| 1,560
|
MIT
| 2023-09-14T19:23:51
| 2016-08-20T20:10:40
|
C
|
UTF-8
|
C
| false
| false
| 4,240
|
c
|
Descriptor.c
|
/*
* This file is part of Adafruit for EFR32 project
*
* The MIT License (MIT)
*
* Copyright 2023 Silicon Laboratories Inc. www.silabs.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "py/runtime.h"
#include "shared-bindings/_bleio/__init__.h"
#include "shared-bindings/_bleio/Descriptor.h"
#include "shared-bindings/_bleio/Service.h"
#include "shared-bindings/_bleio/UUID.h"
void common_hal_bleio_descriptor_construct(
bleio_descriptor_obj_t *self,
bleio_characteristic_obj_t *characteristic,
bleio_uuid_obj_t *uuid,
bleio_attribute_security_mode_t read_perm,
bleio_attribute_security_mode_t write_perm,
mp_int_t max_length, bool fixed_length,
mp_buffer_info_t *initial_value_bufinfo) {
const mp_int_t max_length_max = BLE_ATT_ATTR_MAX_LEN;
self->uuid = uuid;
self->handle = BLEIO_HANDLE_INVALID;
self->read_perm = read_perm;
self->write_perm = write_perm;
self->initial_value = mp_obj_new_bytes(initial_value_bufinfo->buf,
initial_value_bufinfo->len);
if (max_length < 0 || max_length > max_length_max) {
mp_raise_ValueError_varg(
translate("max_length must be 0-%d when fixed_length is %s"),
max_length_max, fixed_length ? "True" : "False");
}
self->max_length = max_length;
self->fixed_length = fixed_length;
}
// Get descriptor uuid
bleio_uuid_obj_t *common_hal_bleio_descriptor_get_uuid(
bleio_descriptor_obj_t *self) {
return self->uuid;
}
bleio_characteristic_obj_t *common_hal_bleio_descriptor_get_characteristic(
bleio_descriptor_obj_t *self) {
return self->characteristic;
}
size_t common_hal_bleio_descriptor_get_value(bleio_descriptor_obj_t *self,
uint8_t *buf, size_t len) {
uint16_t conn_handle;
if (self->handle != BLE_GATT_HANDLE_INVALID) {
conn_handle = bleio_connection_get_conn_handle(
self->characteristic->service->connection);
if (common_hal_bleio_service_get_is_remote(
self->characteristic->service)) {
sl_bt_gatt_read_descriptor_value(conn_handle, self->handle);
}
}
return 0;
}
// Set value to descriptor
void common_hal_bleio_descriptor_set_value(bleio_descriptor_obj_t *self,
mp_buffer_info_t *bufinfo) {
uint16_t conn_handle;
if (self->handle != BLE_GATT_HANDLE_INVALID) {
conn_handle = bleio_connection_get_conn_handle(
self->characteristic->service->connection);
if (common_hal_bleio_service_get_is_remote(
self->characteristic->service)) {
// false means WRITE_REQ, not write-no-response
sl_bt_gatt_write_descriptor_value(conn_handle,
self->handle,
bufinfo->len,
bufinfo->buf);
} else {
// Validate data length for local descriptors only.
if (self->fixed_length && bufinfo->len != self->max_length) {
mp_raise_ValueError(
translate("Value length != required fixed length"));
}
if (bufinfo->len > self->max_length) {
mp_raise_ValueError(translate("Value length > max_length"));
}
}
}
}
|
9115fb84e3cfce44d31c8360c58cb3f5f5ce73ea
|
b6acd6eed2b8946c1c1e19fa30081cbab0a2954f
|
/starry_fmu/Framework/include/statistic.h
|
51df0ab1f2ecc1331bef243d7fb74da9934c9f77
|
[
"BSD-3-Clause"
] |
permissive
|
JcZou/StarryPilot
|
7ce1ed454f133ccd30d71916811e2bf23196d2eb
|
97af0338a54e1eeece877c72222aeaf4b7e80ad7
|
refs/heads/master
| 2023-03-12T19:10:17.225314
| 2021-11-27T19:44:26
| 2021-11-27T19:44:26
| 137,048,745
| 304
| 172
|
BSD-3-Clause
| 2020-08-26T07:34:49
| 2018-06-12T09:27:59
|
C
|
UTF-8
|
C
| false
| false
| 278
|
h
|
statistic.h
|
/*
* File : statistic.h
*
*
* Change Logs:
* Date Author Notes
* 2017-09-028 zoujiachi the first version
*/
#ifndef __STATISTIC_H__
#define __STATISTIC_H__
#include "global.h"
void statistic_init(void);
float get_cpu_usage(void);
#endif
|
481ccc956889e0680180cfd9c2356a6f3fac5dbf
|
634f578ec3016e8aad06a57c948377f63fc36b16
|
/c/ch9/solns/cartoon.c
|
67f09535519b6e91c0d69c72df7d98317e1cb71c
|
[
"MIT"
] |
permissive
|
bueler/p4pdes
|
ecad37430c3a0bf350d786d7d0e284abdb446317
|
098e000a0eea4f96e074fa437752086a1ab15207
|
refs/heads/master
| 2023-07-31T17:30:43.546800
| 2023-07-18T21:45:11
| 2023-07-18T21:45:11
| 24,288,784
| 179
| 66
| null | null | null | null |
UTF-8
|
C
| false
| false
| 2,463
|
c
|
cartoon.c
|
static char help[] = "Solve a 2-variable polynomial optimization problem.\n"
"Implements an objective function and its gradient (the residual). The \n"
"Jacobian (Hessian) is not implemented. Usage is either objective-only\n"
" ./cartoon -snes_[fd|mf] -snes_fd_function\n"
"or with gradient\n"
" ./cartoon -snes_[fd|mf]\n\n";
#include <petsc.h>
PetscErrorCode FormObjective(SNES snes, Vec x, PetscReal *Phi, void *ctx) {
const PetscReal *ax;
PetscCall(VecGetArrayRead(x,&ax));
*Phi = 0.25 * (pow(ax[0],4.0) + pow(ax[1],4.0)) - 2.0 * ax[0] + 2.0 * ax[1];
PetscCall(VecRestoreArrayRead(x,&ax));
return 0;
}
// residual F = grad Phi
PetscErrorCode FormFunction(SNES snes, Vec x, Vec F, void *ctx) {
const PetscReal *ax;
PetscReal *aF;
PetscCall(VecGetArrayRead(x,&ax));
PetscCall(VecGetArray(F,&aF));
aF[0] = ax[0]*ax[0]*ax[0] - 2.0;
aF[1] = ax[1]*ax[1]*ax[1] + 2.0;
PetscCall(VecRestoreArrayRead(x,&ax));
PetscCall(VecRestoreArray(F,&aF));
return 0;
}
int main(int argc,char **argv) {
SNES snes;
Vec x, r, xexact;
const PetscInt ix[2] = {0,1};
PetscReal iv[2], err;
PetscCall(PetscInitialize(&argc,&argv,NULL,help));
PetscCall(VecCreate(PETSC_COMM_WORLD,&x));
PetscCall(VecSetSizes(x,PETSC_DECIDE,2));
PetscCall(VecSetFromOptions(x));
iv[0] = 0.5; iv[1] = 0.5; // initial iterate corresponds to nonsingular Hessian
PetscCall(VecSetValues(x,2,ix,iv,INSERT_VALUES));
PetscCall(VecAssemblyBegin(x));
PetscCall(VecAssemblyEnd(x));
PetscCall(SNESCreate(PETSC_COMM_WORLD,&snes));
PetscCall(SNESSetObjective(snes,FormObjective,NULL));
PetscCall(VecDuplicate(x,&r));
PetscCall(SNESSetFunction(snes,r,FormFunction,NULL));
PetscCall(SNESSetFromOptions(snes));
PetscCall(SNESSolve(snes,NULL,x));
iv[0] = pow(2.0,1.0/3.0); iv[1] = - iv[0]; // exact soln
PetscCall(VecDuplicate(x,&xexact));
PetscCall(VecSetValues(xexact,2,ix,iv,ADD_VALUES)); // note ADD_VALUES
PetscCall(VecAssemblyBegin(xexact));
PetscCall(VecAssemblyEnd(xexact));
PetscCall(VecAXPY(x,-1.0,xexact)); // x <-- x + (-1.0) xexact
PetscCall(VecNorm(x,NORM_INFINITY,&err));
PetscCall(PetscPrintf(PETSC_COMM_WORLD,"numerical error |x-x_exact|_inf = %g\n",err));
VecDestroy(&x); VecDestroy(&r); VecDestroy(&xexact);
SNESDestroy(&snes);
PetscCall(PetscFinalize());
return 0;
}
|
0599a910dc2eff0602afc10ac7cdc420221a0bb3
|
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
|
/govern/data-security/krb-1.2.1/src/lib/rpc/svc_auth_gss.c
|
2734fde4288a88b487049e33e4e30827c394e894
|
[
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-4-Clause",
"LicenseRef-scancode-generic-export-compliance",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-mit-old-style",
"BSD-4-Clause-UC",
"LicenseRef-scancode-rsa-1990",
"MIT-CMU",
"LicenseRef-scancode-mit-no-advert-export-control",
"CC-BY-SA-3.0",
"LicenseRef-scancode-mit-modification-obligations",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-or-later",
"LicenseRef-scancode-michigan-disclaimer",
"ISC",
"LicenseRef-scancode-nrl-permission",
"FreeBSD-DOC",
"LicenseRef-scancode-rsa-md4",
"RSA-MD",
"OLDAP-2.8",
"FSFULLRWD",
"BSD-2-Clause",
"LicenseRef-scancode-brian-gladman"
] |
permissive
|
alldatacenter/alldata
|
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
|
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
|
refs/heads/master
| 2023-08-05T07:32:25.442740
| 2023-08-03T13:17:24
| 2023-08-03T13:17:24
| 213,321,771
| 774
| 250
|
Apache-2.0
| 2023-09-06T17:35:32
| 2019-10-07T07:36:18
| null |
UTF-8
|
C
| false
| false
| 18,819
|
c
|
svc_auth_gss.c
|
/* lib/rpc/svc_auth_gss.c */
/*
Copyright (c) 2000 The Regents of the University of Michigan.
All rights reserved.
Copyright (c) 2000 Dug Song <dugsong@UMICH.EDU>.
All rights reserved, all wrongs reversed.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Id: svc_auth_gss.c,v 1.28 2002/10/15 21:29:36 kwc Exp
*/
#include "k5-platform.h"
#include <gssrpc/rpc.h>
#include <gssrpc/auth_gssapi.h>
#ifdef HAVE_HEIMDAL
#include <gssapi.h>
#define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
#else
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_generic.h>
#endif
#ifdef DEBUG_GSSAPI
int svc_debug_gss = DEBUG_GSSAPI;
#endif
#ifdef SPKM
#ifndef OID_EQ
#define g_OID_equal(o1,o2) \
(((o1)->length == (o2)->length) && \
((o1)->elements != 0) && ((o2)->elements != 0) && \
(memcmp((o1)->elements,(o2)->elements,(int) (o1)->length) == 0))
#define OID_EQ 1
#endif /* OID_EQ */
extern const gss_OID_desc * const gss_mech_spkm3;
#endif /* SPKM */
extern SVCAUTH svc_auth_none;
static auth_gssapi_log_badauth_func log_badauth = NULL;
static caddr_t log_badauth_data = NULL;
static auth_gssapi_log_badauth2_func log_badauth2 = NULL;
static caddr_t log_badauth2_data = NULL;
static auth_gssapi_log_badverf_func log_badverf = NULL;
static caddr_t log_badverf_data = NULL;
static auth_gssapi_log_miscerr_func log_miscerr = NULL;
static caddr_t log_miscerr_data = NULL;
#define LOG_MISCERR(arg) if (log_miscerr) \
(*log_miscerr)(rqst, msg, arg, log_miscerr_data)
static bool_t svcauth_gss_destroy(SVCAUTH *);
static bool_t svcauth_gss_wrap(SVCAUTH *, XDR *, xdrproc_t, caddr_t);
static bool_t svcauth_gss_unwrap(SVCAUTH *, XDR *, xdrproc_t, caddr_t);
static bool_t svcauth_gss_nextverf(struct svc_req *, u_int);
struct svc_auth_ops svc_auth_gss_ops = {
svcauth_gss_wrap,
svcauth_gss_unwrap,
svcauth_gss_destroy
};
struct svc_rpc_gss_data {
bool_t established; /* context established */
gss_cred_id_t cred; /* credential */
gss_ctx_id_t ctx; /* context id */
struct rpc_gss_sec sec; /* security triple */
gss_buffer_desc cname; /* GSS client name */
u_int seq; /* sequence number */
u_int win; /* sequence window */
u_int seqlast; /* last sequence number */
uint32_t seqmask; /* bitmask of seqnums */
gss_name_t client_name; /* unparsed name string */
gss_buffer_desc checksum; /* so we can free it */
};
#define SVCAUTH_PRIVATE(auth) \
(*(struct svc_rpc_gss_data **)&(auth)->svc_ah_private)
/* Global server credentials. */
static gss_name_t svcauth_gss_name = NULL;
bool_t
svcauth_gss_set_svc_name(gss_name_t name)
{
OM_uint32 maj_stat, min_stat;
log_debug("in svcauth_gss_set_svc_name()");
if (svcauth_gss_name != NULL) {
maj_stat = gss_release_name(&min_stat, &svcauth_gss_name);
if (maj_stat != GSS_S_COMPLETE) {
log_status("gss_release_name", maj_stat, min_stat);
return (FALSE);
}
svcauth_gss_name = NULL;
}
if (svcauth_gss_name == GSS_C_NO_NAME)
return (TRUE);
maj_stat = gss_duplicate_name(&min_stat, name, &svcauth_gss_name);
if (maj_stat != GSS_S_COMPLETE) {
log_status("gss_duplicate_name", maj_stat, min_stat);
return (FALSE);
}
return (TRUE);
}
static bool_t
svcauth_gss_acquire_cred(struct svc_rpc_gss_data *gd)
{
OM_uint32 maj_stat, min_stat;
log_debug("in svcauth_gss_acquire_cred()");
/* We don't need to acquire a credential if using the default name. */
if (svcauth_gss_name == GSS_C_NO_NAME)
return (TRUE);
/* Only acquire a credential once per authentication. */
if (gd->cred != GSS_C_NO_CREDENTIAL)
return (TRUE);
maj_stat = gss_acquire_cred(&min_stat, svcauth_gss_name, 0,
GSS_C_NULL_OID_SET, GSS_C_ACCEPT,
&gd->cred, NULL, NULL);
if (maj_stat != GSS_S_COMPLETE) {
log_status("gss_acquire_cred", maj_stat, min_stat);
return (FALSE);
}
return (TRUE);
}
/* Invoke log_badauth callbacks for an authentication failure. */
static void
badauth(OM_uint32 maj, OM_uint32 minor, SVCXPRT *xprt)
{
if (log_badauth != NULL)
(*log_badauth)(maj, minor, &xprt->xp_raddr, log_badauth_data);
if (log_badauth2 != NULL)
(*log_badauth2)(maj, minor, xprt, log_badauth2_data);
}
static bool_t
svcauth_gss_accept_sec_context(struct svc_req *rqst,
struct rpc_gss_init_res *gr)
{
struct svc_rpc_gss_data *gd;
struct rpc_gss_cred *gc;
gss_buffer_desc recv_tok, seqbuf;
gss_OID mech;
OM_uint32 maj_stat = 0, min_stat = 0, ret_flags, seq;
log_debug("in svcauth_gss_accept_context()");
gd = SVCAUTH_PRIVATE(rqst->rq_xprt->xp_auth);
gc = (struct rpc_gss_cred *)rqst->rq_clntcred;
memset(gr, 0, sizeof(*gr));
/* Deserialize arguments. */
memset(&recv_tok, 0, sizeof(recv_tok));
if (!svc_getargs(rqst->rq_xprt, xdr_rpc_gss_init_args,
(caddr_t)&recv_tok))
return (FALSE);
gr->gr_major = gss_accept_sec_context(&gr->gr_minor,
&gd->ctx,
gd->cred,
&recv_tok,
GSS_C_NO_CHANNEL_BINDINGS,
&gd->client_name,
&mech,
&gr->gr_token,
&ret_flags,
NULL,
NULL);
svc_freeargs(rqst->rq_xprt, xdr_rpc_gss_init_args, (caddr_t)&recv_tok);
log_status("accept_sec_context", gr->gr_major, gr->gr_minor);
if (gr->gr_major != GSS_S_COMPLETE &&
gr->gr_major != GSS_S_CONTINUE_NEEDED) {
badauth(gr->gr_major, gr->gr_minor, rqst->rq_xprt);
gd->ctx = GSS_C_NO_CONTEXT;
goto errout;
}
gr->gr_ctx.value = "xxxx";
gr->gr_ctx.length = 4;
/* gr->gr_win = 0x00000005; ANDROS: for debugging linux kernel version... */
gr->gr_win = sizeof(gd->seqmask) * 8;
/* Save client info. */
gd->sec.mech = mech;
gd->sec.qop = GSS_C_QOP_DEFAULT;
gd->sec.svc = gc->gc_svc;
gd->seq = gc->gc_seq;
gd->win = gr->gr_win;
if (gr->gr_major == GSS_S_COMPLETE) {
#ifdef SPKM
/* spkm3: no src_name (anonymous) */
if(!g_OID_equal(gss_mech_spkm3, mech)) {
#endif
maj_stat = gss_display_name(&min_stat, gd->client_name,
&gd->cname, &gd->sec.mech);
#ifdef SPKM
}
#endif
if (maj_stat != GSS_S_COMPLETE) {
log_status("display_name", maj_stat, min_stat);
goto errout;
}
#ifdef DEBUG
#ifdef HAVE_HEIMDAL
log_debug("accepted context for %.*s with "
"<mech {}, qop %d, svc %d>",
gd->cname.length, (char *)gd->cname.value,
gd->sec.qop, gd->sec.svc);
#else
{
gss_buffer_desc mechname;
gss_oid_to_str(&min_stat, mech, &mechname);
log_debug("accepted context for %.*s with "
"<mech %.*s, qop %d, svc %d>",
gd->cname.length, (char *)gd->cname.value,
mechname.length, (char *)mechname.value,
gd->sec.qop, gd->sec.svc);
gss_release_buffer(&min_stat, &mechname);
}
#endif
#endif /* DEBUG */
seq = htonl(gr->gr_win);
seqbuf.value = &seq;
seqbuf.length = sizeof(seq);
gss_release_buffer(&min_stat, &gd->checksum);
maj_stat = gss_sign(&min_stat, gd->ctx, GSS_C_QOP_DEFAULT,
&seqbuf, &gd->checksum);
if (maj_stat != GSS_S_COMPLETE) {
goto errout;
}
rqst->rq_xprt->xp_verf.oa_flavor = RPCSEC_GSS;
rqst->rq_xprt->xp_verf.oa_base = gd->checksum.value;
rqst->rq_xprt->xp_verf.oa_length = gd->checksum.length;
}
return (TRUE);
errout:
gss_release_buffer(&min_stat, &gr->gr_token);
return (FALSE);
}
static bool_t
svcauth_gss_validate(struct svc_req *rqst, struct svc_rpc_gss_data *gd, struct rpc_msg *msg)
{
struct opaque_auth *oa;
gss_buffer_desc rpcbuf, checksum;
OM_uint32 maj_stat, min_stat, qop_state;
u_char rpchdr[128];
int32_t *buf;
log_debug("in svcauth_gss_validate()");
memset(rpchdr, 0, sizeof(rpchdr));
/* XXX - Reconstruct RPC header for signing (from xdr_callmsg). */
oa = &msg->rm_call.cb_cred;
if (oa->oa_length > MAX_AUTH_BYTES)
return (FALSE);
/* 8 XDR units from the IXDR macro calls. */
if (sizeof(rpchdr) < (8 * BYTES_PER_XDR_UNIT +
RNDUP(oa->oa_length)))
return (FALSE);
buf = (int32_t *)(void *)rpchdr;
IXDR_PUT_LONG(buf, msg->rm_xid);
IXDR_PUT_ENUM(buf, msg->rm_direction);
IXDR_PUT_LONG(buf, msg->rm_call.cb_rpcvers);
IXDR_PUT_LONG(buf, msg->rm_call.cb_prog);
IXDR_PUT_LONG(buf, msg->rm_call.cb_vers);
IXDR_PUT_LONG(buf, msg->rm_call.cb_proc);
IXDR_PUT_ENUM(buf, oa->oa_flavor);
IXDR_PUT_LONG(buf, oa->oa_length);
if (oa->oa_length) {
memcpy((caddr_t)buf, oa->oa_base, oa->oa_length);
buf += RNDUP(oa->oa_length) / sizeof(int32_t);
}
rpcbuf.value = rpchdr;
rpcbuf.length = (u_char *)buf - rpchdr;
checksum.value = msg->rm_call.cb_verf.oa_base;
checksum.length = msg->rm_call.cb_verf.oa_length;
maj_stat = gss_verify_mic(&min_stat, gd->ctx, &rpcbuf, &checksum,
&qop_state);
if (maj_stat != GSS_S_COMPLETE) {
log_status("gss_verify_mic", maj_stat, min_stat);
if (log_badverf != NULL)
(*log_badverf)(gd->client_name,
svcauth_gss_name,
rqst, msg, log_badverf_data);
return (FALSE);
}
return (TRUE);
}
static bool_t
svcauth_gss_nextverf(struct svc_req *rqst, u_int num)
{
struct svc_rpc_gss_data *gd;
gss_buffer_desc signbuf;
OM_uint32 maj_stat, min_stat;
log_debug("in svcauth_gss_nextverf()");
if (rqst->rq_xprt->xp_auth == NULL)
return (FALSE);
gd = SVCAUTH_PRIVATE(rqst->rq_xprt->xp_auth);
gss_release_buffer(&min_stat, &gd->checksum);
signbuf.value = #
signbuf.length = sizeof(num);
maj_stat = gss_get_mic(&min_stat, gd->ctx, gd->sec.qop,
&signbuf, &gd->checksum);
if (maj_stat != GSS_S_COMPLETE) {
log_status("gss_get_mic", maj_stat, min_stat);
return (FALSE);
}
rqst->rq_xprt->xp_verf.oa_flavor = RPCSEC_GSS;
rqst->rq_xprt->xp_verf.oa_base = (caddr_t)gd->checksum.value;
rqst->rq_xprt->xp_verf.oa_length = (u_int)gd->checksum.length;
return (TRUE);
}
enum auth_stat
gssrpc__svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg,
bool_t *no_dispatch)
{
enum auth_stat retstat;
XDR xdrs;
SVCAUTH *auth;
struct svc_rpc_gss_data *gd;
struct rpc_gss_cred *gc;
struct rpc_gss_init_res gr;
int call_stat, offset;
OM_uint32 min_stat;
log_debug("in svcauth_gss()");
/* Initialize reply. */
rqst->rq_xprt->xp_verf = gssrpc__null_auth;
/* Allocate and set up server auth handle. */
if (rqst->rq_xprt->xp_auth == NULL ||
rqst->rq_xprt->xp_auth == &svc_auth_none) {
if ((auth = calloc(sizeof(*auth), 1)) == NULL) {
fprintf(stderr, "svcauth_gss: out_of_memory\n");
return (AUTH_FAILED);
}
if ((gd = calloc(sizeof(*gd), 1)) == NULL) {
fprintf(stderr, "svcauth_gss: out_of_memory\n");
return (AUTH_FAILED);
}
auth->svc_ah_ops = &svc_auth_gss_ops;
SVCAUTH_PRIVATE(auth) = gd;
rqst->rq_xprt->xp_auth = auth;
}
else gd = SVCAUTH_PRIVATE(rqst->rq_xprt->xp_auth);
log_debug("xp_auth=%p, gd=%p", rqst->rq_xprt->xp_auth, gd);
/* Deserialize client credentials. */
if (rqst->rq_cred.oa_length <= 0)
return (AUTH_BADCRED);
gc = (struct rpc_gss_cred *)rqst->rq_clntcred;
memset(gc, 0, sizeof(*gc));
log_debug("calling xdrmem_create()");
log_debug("oa_base=%p, oa_length=%u", rqst->rq_cred.oa_base,
rqst->rq_cred.oa_length);
xdrmem_create(&xdrs, rqst->rq_cred.oa_base,
rqst->rq_cred.oa_length, XDR_DECODE);
log_debug("xdrmem_create() returned");
if (!xdr_rpc_gss_cred(&xdrs, gc)) {
log_debug("xdr_rpc_gss_cred() failed");
XDR_DESTROY(&xdrs);
return (AUTH_BADCRED);
}
XDR_DESTROY(&xdrs);
retstat = AUTH_FAILED;
#define ret_freegc(code) do { retstat = code; goto freegc; } while (0)
/* Check version. */
if (gc->gc_v != RPCSEC_GSS_VERSION)
ret_freegc (AUTH_BADCRED);
/* Check RPCSEC_GSS service. */
if (gc->gc_svc != RPCSEC_GSS_SVC_NONE &&
gc->gc_svc != RPCSEC_GSS_SVC_INTEGRITY &&
gc->gc_svc != RPCSEC_GSS_SVC_PRIVACY)
ret_freegc (AUTH_BADCRED);
/* Check sequence number. */
if (gd->established) {
if (gc->gc_seq > MAXSEQ)
ret_freegc (RPCSEC_GSS_CTXPROBLEM);
if ((offset = gd->seqlast - gc->gc_seq) < 0) {
gd->seqlast = gc->gc_seq;
offset = 0 - offset;
gd->seqmask <<= offset;
offset = 0;
} else if ((u_int)offset >= gd->win ||
(gd->seqmask & (1 << offset))) {
*no_dispatch = 1;
ret_freegc (RPCSEC_GSS_CTXPROBLEM);
}
gd->seq = gc->gc_seq;
gd->seqmask |= (1 << offset);
}
if (gd->established) {
rqst->rq_clntname = (char *)gd->client_name;
rqst->rq_svccred = (char *)gd->ctx;
}
/* Handle RPCSEC_GSS control procedure. */
switch (gc->gc_proc) {
case RPCSEC_GSS_INIT:
case RPCSEC_GSS_CONTINUE_INIT:
if (rqst->rq_proc != NULLPROC)
ret_freegc (AUTH_FAILED); /* XXX ? */
if (!svcauth_gss_acquire_cred(gd))
ret_freegc (AUTH_FAILED);
if (!svcauth_gss_accept_sec_context(rqst, &gr))
ret_freegc (AUTH_REJECTEDCRED);
if (!svcauth_gss_nextverf(rqst, htonl(gr.gr_win))) {
gss_release_buffer(&min_stat, &gr.gr_token);
ret_freegc (AUTH_FAILED);
}
*no_dispatch = TRUE;
call_stat = svc_sendreply(rqst->rq_xprt, xdr_rpc_gss_init_res,
(caddr_t)&gr);
gss_release_buffer(&min_stat, &gr.gr_token);
gss_release_buffer(&min_stat, &gd->checksum);
if (!call_stat)
ret_freegc (AUTH_FAILED);
if (gr.gr_major == GSS_S_COMPLETE)
gd->established = TRUE;
break;
case RPCSEC_GSS_DATA:
if (!svcauth_gss_validate(rqst, gd, msg))
ret_freegc (RPCSEC_GSS_CREDPROBLEM);
if (!svcauth_gss_nextverf(rqst, htonl(gc->gc_seq)))
ret_freegc (AUTH_FAILED);
break;
case RPCSEC_GSS_DESTROY:
if (rqst->rq_proc != NULLPROC)
ret_freegc (AUTH_FAILED); /* XXX ? */
if (!svcauth_gss_validate(rqst, gd, msg))
ret_freegc (RPCSEC_GSS_CREDPROBLEM);
if (!svcauth_gss_nextverf(rqst, htonl(gc->gc_seq)))
ret_freegc (AUTH_FAILED);
*no_dispatch = TRUE;
call_stat = svc_sendreply(rqst->rq_xprt,
xdr_void, (caddr_t)NULL);
log_debug("sendreply in destroy: %d", call_stat);
SVCAUTH_DESTROY(rqst->rq_xprt->xp_auth);
rqst->rq_xprt->xp_auth = &svc_auth_none;
break;
default:
ret_freegc (AUTH_REJECTEDCRED);
break;
}
retstat = AUTH_OK;
freegc:
xdr_free(xdr_rpc_gss_cred, gc);
log_debug("returning %d from svcauth_gss()", retstat);
return (retstat);
}
static bool_t
svcauth_gss_destroy(SVCAUTH *auth)
{
struct svc_rpc_gss_data *gd;
OM_uint32 min_stat;
log_debug("in svcauth_gss_destroy()");
gd = SVCAUTH_PRIVATE(auth);
gss_delete_sec_context(&min_stat, &gd->ctx, GSS_C_NO_BUFFER);
gss_release_cred(&min_stat, &gd->cred);
gss_release_buffer(&min_stat, &gd->cname);
gss_release_buffer(&min_stat, &gd->checksum);
if (gd->client_name)
gss_release_name(&min_stat, &gd->client_name);
mem_free(gd, sizeof(*gd));
mem_free(auth, sizeof(*auth));
return (TRUE);
}
static bool_t
svcauth_gss_wrap(SVCAUTH *auth, XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr)
{
struct svc_rpc_gss_data *gd;
log_debug("in svcauth_gss_wrap()");
gd = SVCAUTH_PRIVATE(auth);
if (!gd->established || gd->sec.svc == RPCSEC_GSS_SVC_NONE) {
return ((*xdr_func)(xdrs, xdr_ptr));
}
return (xdr_rpc_gss_data(xdrs, xdr_func, xdr_ptr,
gd->ctx, gd->sec.qop,
gd->sec.svc, gd->seq));
}
static bool_t
svcauth_gss_unwrap(SVCAUTH *auth, XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr)
{
struct svc_rpc_gss_data *gd;
log_debug("in svcauth_gss_unwrap()");
gd = SVCAUTH_PRIVATE(auth);
if (!gd->established || gd->sec.svc == RPCSEC_GSS_SVC_NONE) {
return ((*xdr_func)(xdrs, xdr_ptr));
}
return (xdr_rpc_gss_data(xdrs, xdr_func, xdr_ptr,
gd->ctx, gd->sec.qop,
gd->sec.svc, gd->seq));
}
char *
svcauth_gss_get_principal(SVCAUTH *auth)
{
struct svc_rpc_gss_data *gd;
char *pname;
gd = SVCAUTH_PRIVATE(auth);
if (gd->cname.length == 0 || gd->cname.length >= SIZE_MAX)
return (NULL);
if ((pname = malloc(gd->cname.length + 1)) == NULL)
return (NULL);
memcpy(pname, gd->cname.value, gd->cname.length);
pname[gd->cname.length] = '\0';
return (pname);
}
/*
* Function: svcauth_gss_set_log_badauth_func
*
* Purpose: sets the logging function called when an invalid RPC call
* arrives
*
* See functional specifications.
*/
void svcauth_gss_set_log_badauth_func(
auth_gssapi_log_badauth_func func,
caddr_t data)
{
log_badauth = func;
log_badauth_data = data;
}
void
svcauth_gss_set_log_badauth2_func(auth_gssapi_log_badauth2_func func,
caddr_t data)
{
log_badauth2 = func;
log_badauth2_data = data;
}
/*
* Function: svcauth_gss_set_log_badverf_func
*
* Purpose: sets the logging function called when an invalid RPC call
* arrives
*
* See functional specifications.
*/
void svcauth_gss_set_log_badverf_func(
auth_gssapi_log_badverf_func func,
caddr_t data)
{
log_badverf = func;
log_badverf_data = data;
}
/*
* Function: svcauth_gss_set_log_miscerr_func
*
* Purpose: sets the logging function called when a miscellaneous
* AUTH_GSSAPI error occurs
*
* See functional specifications.
*/
void svcauth_gss_set_log_miscerr_func(
auth_gssapi_log_miscerr_func func,
caddr_t data)
{
log_miscerr = func;
log_miscerr_data = data;
}
|
70479f9773f0f79787eb343c1b804f61203779bb
|
eecd5e4c50d8b78a769bcc2675250576bed34066
|
/src/mat/impls/sbaij/mpi/sbaijov.c
|
cee546eee78bced1569f8dccd53630049e4c9eeb
|
[
"BSD-2-Clause"
] |
permissive
|
petsc/petsc
|
3b1a04fea71858e0292f9fd4d04ea11618c50969
|
9c5460f9064ca60dd71a234a1f6faf93e7a6b0c9
|
refs/heads/main
| 2023-08-17T20:51:16.507070
| 2023-08-17T16:08:06
| 2023-08-17T16:08:06
| 8,691,401
| 341
| 169
|
NOASSERTION
| 2023-03-29T11:02:58
| 2013-03-10T20:55:21
|
C
|
UTF-8
|
C
| false
| false
| 21,455
|
c
|
sbaijov.c
|
/*
Routines to compute overlapping regions of a parallel MPI matrix.
Used for finding submatrices that were shared across processors.
*/
#include <../src/mat/impls/sbaij/mpi/mpisbaij.h>
#include <petscbt.h>
static PetscErrorCode MatIncreaseOverlap_MPISBAIJ_Once(Mat, PetscInt, IS *);
static PetscErrorCode MatIncreaseOverlap_MPISBAIJ_Local(Mat, PetscInt *, PetscInt, PetscInt *, PetscBT *);
PetscErrorCode MatIncreaseOverlap_MPISBAIJ(Mat C, PetscInt is_max, IS is[], PetscInt ov)
{
PetscInt i, N = C->cmap->N, bs = C->rmap->bs, M = C->rmap->N, Mbs = M / bs, *nidx, isz, iov;
IS *is_new, *is_row;
Mat *submats;
Mat_MPISBAIJ *c = (Mat_MPISBAIJ *)C->data;
Mat_SeqSBAIJ *asub_i;
PetscBT table;
PetscInt *ai, brow, nz, nis, l, nmax, nstages_local, nstages, max_no, pos;
const PetscInt *idx;
PetscBool flg;
PetscFunctionBegin;
PetscCall(PetscMalloc1(is_max, &is_new));
/* Convert the indices into block format */
PetscCall(ISCompressIndicesGeneral(N, C->rmap->n, bs, is_max, is, is_new));
PetscCheck(ov >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Negative overlap specified");
/* previous non-scalable implementation */
flg = PETSC_FALSE;
PetscCall(PetscOptionsHasName(NULL, NULL, "-IncreaseOverlap_old", &flg));
if (flg) { /* previous non-scalable implementation */
printf("use previous non-scalable implementation...\n");
for (i = 0; i < ov; ++i) PetscCall(MatIncreaseOverlap_MPISBAIJ_Once(C, is_max, is_new));
} else { /* implementation using modified BAIJ routines */
PetscCall(PetscMalloc1(Mbs + 1, &nidx));
PetscCall(PetscBTCreate(Mbs, &table)); /* for column search */
/* Create is_row */
PetscCall(PetscMalloc1(is_max, &is_row));
PetscCall(ISCreateStride(PETSC_COMM_SELF, Mbs, 0, 1, &is_row[0]));
for (i = 1; i < is_max; i++) { is_row[i] = is_row[0]; /* reuse is_row[0] */ }
/* Allocate memory to hold all the submatrices - Modified from MatCreateSubMatrices_MPIBAIJ() */
PetscCall(PetscMalloc1(is_max + 1, &submats));
/* Determine the number of stages through which submatrices are done */
nmax = 20 * 1000000 / (c->Nbs * sizeof(PetscInt));
if (!nmax) nmax = 1;
nstages_local = is_max / nmax + ((is_max % nmax) ? 1 : 0);
/* Make sure every processor loops through the nstages */
PetscCall(MPIU_Allreduce(&nstages_local, &nstages, 1, MPIU_INT, MPI_MAX, PetscObjectComm((PetscObject)C)));
{
const PetscObject obj = (PetscObject)c->A;
size_t new_len, cur_len, max_len;
PetscCall(PetscStrlen(MATSEQBAIJ, &new_len));
PetscCall(PetscStrlen(MATSEQSBAIJ, &cur_len));
max_len = PetscMax(cur_len, new_len) + 1;
PetscCall(PetscRealloc(max_len * sizeof(*(obj->type_name)), &obj->type_name));
/* The resulting submatrices should be BAIJ, not SBAIJ, hence we change this value to
trigger that */
for (iov = 0; iov < ov; ++iov) {
/* 1) Get submats for column search */
PetscCall(PetscStrncpy(obj->type_name, MATSEQBAIJ, max_len));
for (i = 0, pos = 0; i < nstages; i++) {
if (pos + nmax <= is_max) max_no = nmax;
else if (pos == is_max) max_no = 0;
else max_no = is_max - pos;
c->ijonly = PETSC_TRUE; /* only matrix data structures are requested */
PetscCall(MatCreateSubMatrices_MPIBAIJ_local(C, max_no, is_row + pos, is_new + pos, MAT_INITIAL_MATRIX, submats + pos));
pos += max_no;
}
PetscCall(PetscStrncpy(obj->type_name, MATSEQSBAIJ, max_len));
/* 2) Row search */
PetscCall(MatIncreaseOverlap_MPIBAIJ_Once(C, is_max, is_new));
/* 3) Column search */
for (i = 0; i < is_max; i++) {
asub_i = (Mat_SeqSBAIJ *)submats[i]->data;
ai = asub_i->i;
/* put is_new obtained from MatIncreaseOverlap_MPIBAIJ() to table */
PetscCall(PetscBTMemzero(Mbs, table));
PetscCall(ISGetIndices(is_new[i], &idx));
PetscCall(ISGetLocalSize(is_new[i], &nis));
for (l = 0; l < nis; l++) {
PetscCall(PetscBTSet(table, idx[l]));
nidx[l] = idx[l];
}
isz = nis;
/* add column entries to table */
for (brow = 0; brow < Mbs; brow++) {
nz = ai[brow + 1] - ai[brow];
if (nz) {
if (!PetscBTLookupSet(table, brow)) nidx[isz++] = brow;
}
}
PetscCall(ISRestoreIndices(is_new[i], &idx));
PetscCall(ISDestroy(&is_new[i]));
/* create updated is_new */
PetscCall(ISCreateGeneral(PETSC_COMM_SELF, isz, nidx, PETSC_COPY_VALUES, is_new + i));
}
/* Free tmp spaces */
for (i = 0; i < is_max; i++) PetscCall(MatDestroy(&submats[i]));
}
PetscCall(PetscBTDestroy(&table));
PetscCall(PetscFree(submats));
PetscCall(ISDestroy(&is_row[0]));
PetscCall(PetscFree(is_row));
PetscCall(PetscFree(nidx));
}
}
for (i = 0; i < is_max; i++) {
PetscCall(ISDestroy(&is[i]));
PetscCall(ISGetLocalSize(is_new[i], &nis));
PetscCall(ISGetIndices(is_new[i], &idx));
PetscCall(ISCreateBlock(PetscObjectComm((PetscObject)is_new[i]), bs, nis, idx, PETSC_COPY_VALUES, &is[i]));
PetscCall(ISDestroy(&is_new[i]));
}
PetscCall(PetscFree(is_new));
PetscFunctionReturn(PETSC_SUCCESS);
}
typedef enum {
MINE,
OTHER
} WhoseOwner;
/* data1, odata1 and odata2 are packed in the format (for communication):
data[0] = is_max, no of is
data[1] = size of is[0]
...
data[is_max] = size of is[is_max-1]
data[is_max + 1] = data(is[0])
...
data[is_max+1+sum(size of is[k]), k=0,...,i-1] = data(is[i])
...
data2 is packed in the format (for creating output is[]):
data[0] = is_max, no of is
data[1] = size of is[0]
...
data[is_max] = size of is[is_max-1]
data[is_max + 1] = data(is[0])
...
data[is_max + 1 + Mbs*i) = data(is[i])
...
*/
static PetscErrorCode MatIncreaseOverlap_MPISBAIJ_Once(Mat C, PetscInt is_max, IS is[])
{
Mat_MPISBAIJ *c = (Mat_MPISBAIJ *)C->data;
PetscMPIInt size, rank, tag1, tag2, *len_s, nrqr, nrqs, *id_r1, *len_r1, flag, len, *iwork;
const PetscInt *idx_i;
PetscInt idx, isz, col, *n, *data1, **data1_start, *data2, *data2_i, *data, *data_i;
PetscInt Mbs, i, j, k, *odata1, *odata2;
PetscInt proc_id, **odata2_ptr, *ctable = NULL, *btable, len_max, len_est;
PetscInt proc_end = 0, len_unused, nodata2;
PetscInt ois_max; /* max no of is[] in each of processor */
char *t_p;
MPI_Comm comm;
MPI_Request *s_waits1, *s_waits2, r_req;
MPI_Status *s_status, r_status;
PetscBT *table; /* mark indices of this processor's is[] */
PetscBT table_i;
PetscBT otable; /* mark indices of other processors' is[] */
PetscInt bs = C->rmap->bs, Bn = c->B->cmap->n, Bnbs = Bn / bs, *Bowners;
IS garray_local, garray_gl;
PetscFunctionBegin;
PetscCall(PetscObjectGetComm((PetscObject)C, &comm));
size = c->size;
rank = c->rank;
Mbs = c->Mbs;
PetscCall(PetscObjectGetNewTag((PetscObject)C, &tag1));
PetscCall(PetscObjectGetNewTag((PetscObject)C, &tag2));
/* create tables used in
step 1: table[i] - mark c->garray of proc [i]
step 3: table[i] - mark indices of is[i] when whose=MINE
table[0] - mark incideces of is[] when whose=OTHER */
len = PetscMax(is_max, size);
PetscCall(PetscMalloc2(len, &table, (Mbs / PETSC_BITS_PER_BYTE + 1) * len, &t_p));
for (i = 0; i < len; i++) table[i] = t_p + (Mbs / PETSC_BITS_PER_BYTE + 1) * i;
PetscCall(MPIU_Allreduce(&is_max, &ois_max, 1, MPIU_INT, MPI_MAX, comm));
/* 1. Send this processor's is[] to other processors */
/* allocate spaces */
PetscCall(PetscMalloc1(is_max, &n));
len = 0;
for (i = 0; i < is_max; i++) {
PetscCall(ISGetLocalSize(is[i], &n[i]));
len += n[i];
}
if (!len) {
is_max = 0;
} else {
len += 1 + is_max; /* max length of data1 for one processor */
}
PetscCall(PetscMalloc1(size * len + 1, &data1));
PetscCall(PetscMalloc1(size, &data1_start));
for (i = 0; i < size; i++) data1_start[i] = data1 + i * len;
PetscCall(PetscMalloc4(size, &len_s, size, &btable, size, &iwork, size + 1, &Bowners));
/* gather c->garray from all processors */
PetscCall(ISCreateGeneral(comm, Bnbs, c->garray, PETSC_COPY_VALUES, &garray_local));
PetscCall(ISAllGather(garray_local, &garray_gl));
PetscCall(ISDestroy(&garray_local));
PetscCallMPI(MPI_Allgather(&Bnbs, 1, MPIU_INT, Bowners + 1, 1, MPIU_INT, comm));
Bowners[0] = 0;
for (i = 0; i < size; i++) Bowners[i + 1] += Bowners[i];
if (is_max) {
/* hash table ctable which maps c->row to proc_id) */
PetscCall(PetscMalloc1(Mbs, &ctable));
for (proc_id = 0, j = 0; proc_id < size; proc_id++) {
for (; j < C->rmap->range[proc_id + 1] / bs; j++) ctable[j] = proc_id;
}
/* hash tables marking c->garray */
PetscCall(ISGetIndices(garray_gl, &idx_i));
for (i = 0; i < size; i++) {
table_i = table[i];
PetscCall(PetscBTMemzero(Mbs, table_i));
for (j = Bowners[i]; j < Bowners[i + 1]; j++) { /* go through B cols of proc[i]*/
PetscCall(PetscBTSet(table_i, idx_i[j]));
}
}
PetscCall(ISRestoreIndices(garray_gl, &idx_i));
} /* if (is_max) */
PetscCall(ISDestroy(&garray_gl));
/* evaluate communication - mesg to who, length, and buffer space */
for (i = 0; i < size; i++) len_s[i] = 0;
/* header of data1 */
for (proc_id = 0; proc_id < size; proc_id++) {
iwork[proc_id] = 0;
*data1_start[proc_id] = is_max;
data1_start[proc_id]++;
for (j = 0; j < is_max; j++) {
if (proc_id == rank) {
*data1_start[proc_id] = n[j];
} else {
*data1_start[proc_id] = 0;
}
data1_start[proc_id]++;
}
}
for (i = 0; i < is_max; i++) {
PetscCall(ISGetIndices(is[i], &idx_i));
for (j = 0; j < n[i]; j++) {
idx = idx_i[j];
*data1_start[rank] = idx;
data1_start[rank]++; /* for local processing */
proc_end = ctable[idx];
for (proc_id = 0; proc_id <= proc_end; proc_id++) { /* for others to process */
if (proc_id == rank) continue; /* done before this loop */
if (proc_id < proc_end && !PetscBTLookup(table[proc_id], idx)) continue; /* no need for sending idx to [proc_id] */
*data1_start[proc_id] = idx;
data1_start[proc_id]++;
len_s[proc_id]++;
}
}
/* update header data */
for (proc_id = 0; proc_id < size; proc_id++) {
if (proc_id == rank) continue;
*(data1 + proc_id * len + 1 + i) = len_s[proc_id] - iwork[proc_id];
iwork[proc_id] = len_s[proc_id];
}
PetscCall(ISRestoreIndices(is[i], &idx_i));
}
nrqs = 0;
nrqr = 0;
for (i = 0; i < size; i++) {
data1_start[i] = data1 + i * len;
if (len_s[i]) {
nrqs++;
len_s[i] += 1 + is_max; /* add no. of header msg */
}
}
for (i = 0; i < is_max; i++) PetscCall(ISDestroy(&is[i]));
PetscCall(PetscFree(n));
PetscCall(PetscFree(ctable));
/* Determine the number of messages to expect, their lengths, from from-ids */
PetscCall(PetscGatherNumberOfMessages(comm, NULL, len_s, &nrqr));
PetscCall(PetscGatherMessageLengths(comm, nrqs, nrqr, len_s, &id_r1, &len_r1));
/* Now post the sends */
PetscCall(PetscMalloc2(size, &s_waits1, size, &s_waits2));
k = 0;
for (proc_id = 0; proc_id < size; proc_id++) { /* send data1 to processor [proc_id] */
if (len_s[proc_id]) {
PetscCallMPI(MPI_Isend(data1_start[proc_id], len_s[proc_id], MPIU_INT, proc_id, tag1, comm, s_waits1 + k));
k++;
}
}
/* 2. Receive other's is[] and process. Then send back */
len = 0;
for (i = 0; i < nrqr; i++) {
if (len_r1[i] > len) len = len_r1[i];
}
PetscCall(PetscFree(len_r1));
PetscCall(PetscFree(id_r1));
for (proc_id = 0; proc_id < size; proc_id++) len_s[proc_id] = iwork[proc_id] = 0;
PetscCall(PetscMalloc1(len + 1, &odata1));
PetscCall(PetscMalloc1(size, &odata2_ptr));
PetscCall(PetscBTCreate(Mbs, &otable));
len_max = ois_max * (Mbs + 1); /* max space storing all is[] for each receive */
len_est = 2 * len_max; /* estimated space of storing is[] for all receiving messages */
PetscCall(PetscMalloc1(len_est + 1, &odata2));
nodata2 = 0; /* nodata2+1: num of PetscMalloc(,&odata2_ptr[]) called */
odata2_ptr[nodata2] = odata2;
len_unused = len_est; /* unused space in the array odata2_ptr[nodata2]-- needs to be >= len_max */
k = 0;
while (k < nrqr) {
/* Receive messages */
PetscCallMPI(MPI_Iprobe(MPI_ANY_SOURCE, tag1, comm, &flag, &r_status));
if (flag) {
PetscCallMPI(MPI_Get_count(&r_status, MPIU_INT, &len));
proc_id = r_status.MPI_SOURCE;
PetscCallMPI(MPI_Irecv(odata1, len, MPIU_INT, proc_id, r_status.MPI_TAG, comm, &r_req));
PetscCallMPI(MPI_Wait(&r_req, &r_status));
/* Process messages */
/* make sure there is enough unused space in odata2 array */
if (len_unused < len_max) { /* allocate more space for odata2 */
PetscCall(PetscMalloc1(len_est + 1, &odata2));
odata2_ptr[++nodata2] = odata2;
len_unused = len_est;
}
PetscCall(MatIncreaseOverlap_MPISBAIJ_Local(C, odata1, OTHER, odata2, &otable));
len = 1 + odata2[0];
for (i = 0; i < odata2[0]; i++) len += odata2[1 + i];
/* Send messages back */
PetscCallMPI(MPI_Isend(odata2, len, MPIU_INT, proc_id, tag2, comm, s_waits2 + k));
k++;
odata2 += len;
len_unused -= len;
len_s[proc_id] = len; /* num of messages sending back to [proc_id] by this proc */
}
}
PetscCall(PetscFree(odata1));
PetscCall(PetscBTDestroy(&otable));
/* 3. Do local work on this processor's is[] */
/* make sure there is enough unused space in odata2(=data) array */
len_max = is_max * (Mbs + 1); /* max space storing all is[] for this processor */
if (len_unused < len_max) { /* allocate more space for odata2 */
PetscCall(PetscMalloc1(len_est + 1, &odata2));
odata2_ptr[++nodata2] = odata2;
}
data = odata2;
PetscCall(MatIncreaseOverlap_MPISBAIJ_Local(C, data1_start[rank], MINE, data, table));
PetscCall(PetscFree(data1_start));
/* 4. Receive work done on other processors, then merge */
/* get max number of messages that this processor expects to recv */
PetscCall(MPIU_Allreduce(len_s, iwork, size, MPI_INT, MPI_MAX, comm));
PetscCall(PetscMalloc1(iwork[rank] + 1, &data2));
PetscCall(PetscFree4(len_s, btable, iwork, Bowners));
k = 0;
while (k < nrqs) {
/* Receive messages */
PetscCallMPI(MPI_Iprobe(MPI_ANY_SOURCE, tag2, comm, &flag, &r_status));
if (flag) {
PetscCallMPI(MPI_Get_count(&r_status, MPIU_INT, &len));
proc_id = r_status.MPI_SOURCE;
PetscCallMPI(MPI_Irecv(data2, len, MPIU_INT, proc_id, r_status.MPI_TAG, comm, &r_req));
PetscCallMPI(MPI_Wait(&r_req, &r_status));
if (len > 1 + is_max) { /* Add data2 into data */
data2_i = data2 + 1 + is_max;
for (i = 0; i < is_max; i++) {
table_i = table[i];
data_i = data + 1 + is_max + Mbs * i;
isz = data[1 + i];
for (j = 0; j < data2[1 + i]; j++) {
col = data2_i[j];
if (!PetscBTLookupSet(table_i, col)) data_i[isz++] = col;
}
data[1 + i] = isz;
if (i < is_max - 1) data2_i += data2[1 + i];
}
}
k++;
}
}
PetscCall(PetscFree(data2));
PetscCall(PetscFree2(table, t_p));
/* phase 1 sends are complete */
PetscCall(PetscMalloc1(size, &s_status));
if (nrqs) PetscCallMPI(MPI_Waitall(nrqs, s_waits1, s_status));
PetscCall(PetscFree(data1));
/* phase 2 sends are complete */
if (nrqr) PetscCallMPI(MPI_Waitall(nrqr, s_waits2, s_status));
PetscCall(PetscFree2(s_waits1, s_waits2));
PetscCall(PetscFree(s_status));
/* 5. Create new is[] */
for (i = 0; i < is_max; i++) {
data_i = data + 1 + is_max + Mbs * i;
PetscCall(ISCreateGeneral(PETSC_COMM_SELF, data[1 + i], data_i, PETSC_COPY_VALUES, is + i));
}
for (k = 0; k <= nodata2; k++) PetscCall(PetscFree(odata2_ptr[k]));
PetscCall(PetscFree(odata2_ptr));
PetscFunctionReturn(PETSC_SUCCESS);
}
/*
MatIncreaseOverlap_MPISBAIJ_Local - Called by MatIncreaseOverlap, to do
the work on the local processor.
Inputs:
C - MAT_MPISBAIJ;
data - holds is[]. See MatIncreaseOverlap_MPISBAIJ_Once() for the format.
whose - whose is[] to be processed,
MINE: this processor's is[]
OTHER: other processor's is[]
Output:
nidx - whose = MINE:
holds input and newly found indices in the same format as data
whose = OTHER:
only holds the newly found indices
table - table[i]: mark the indices of is[i], i=0,...,is_max. Used only in the case 'whose=MINE'.
*/
/* Would computation be reduced by swapping the loop 'for each is' and 'for each row'? */
static PetscErrorCode MatIncreaseOverlap_MPISBAIJ_Local(Mat C, PetscInt *data, PetscInt whose, PetscInt *nidx, PetscBT *table)
{
Mat_MPISBAIJ *c = (Mat_MPISBAIJ *)C->data;
Mat_SeqSBAIJ *a = (Mat_SeqSBAIJ *)(c->A)->data;
Mat_SeqBAIJ *b = (Mat_SeqBAIJ *)(c->B)->data;
PetscInt row, mbs, Mbs, *nidx_i, col, col_max, isz, isz0, *ai, *aj, *bi, *bj, *garray, rstart, l;
PetscInt a_start, a_end, b_start, b_end, i, j, k, is_max, *idx_i, n;
PetscBT table0; /* mark the indices of input is[] for look up */
PetscBT table_i; /* points to i-th table. When whose=OTHER, a single table is used for all is[] */
PetscFunctionBegin;
Mbs = c->Mbs;
mbs = a->mbs;
ai = a->i;
aj = a->j;
bi = b->i;
bj = b->j;
garray = c->garray;
rstart = c->rstartbs;
is_max = data[0];
PetscCall(PetscBTCreate(Mbs, &table0));
nidx[0] = is_max;
idx_i = data + is_max + 1; /* ptr to input is[0] array */
nidx_i = nidx + is_max + 1; /* ptr to output is[0] array */
for (i = 0; i < is_max; i++) { /* for each is */
isz = 0;
n = data[1 + i]; /* size of input is[i] */
/* initialize and set table_i(mark idx and nidx) and table0(only mark idx) */
if (whose == MINE) { /* process this processor's is[] */
table_i = table[i];
nidx_i = nidx + 1 + is_max + Mbs * i;
} else { /* process other processor's is[] - only use one temp table */
table_i = table[0];
}
PetscCall(PetscBTMemzero(Mbs, table_i));
PetscCall(PetscBTMemzero(Mbs, table0));
if (n == 0) {
nidx[1 + i] = 0; /* size of new is[i] */
continue;
}
isz0 = 0;
col_max = 0;
for (j = 0; j < n; j++) {
col = idx_i[j];
PetscCheck(col < Mbs, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "index col %" PetscInt_FMT " >= Mbs %" PetscInt_FMT, col, Mbs);
if (!PetscBTLookupSet(table_i, col)) {
PetscCall(PetscBTSet(table0, col));
if (whose == MINE) nidx_i[isz0] = col;
if (col_max < col) col_max = col;
isz0++;
}
}
if (whose == MINE) isz = isz0;
k = 0; /* no. of indices from input is[i] that have been examined */
for (row = 0; row < mbs; row++) {
a_start = ai[row];
a_end = ai[row + 1];
b_start = bi[row];
b_end = bi[row + 1];
if (PetscBTLookup(table0, row + rstart)) { /* row is on input is[i]:
do row search: collect all col in this row */
for (l = a_start; l < a_end; l++) { /* Amat */
col = aj[l] + rstart;
if (!PetscBTLookupSet(table_i, col)) nidx_i[isz++] = col;
}
for (l = b_start; l < b_end; l++) { /* Bmat */
col = garray[bj[l]];
if (!PetscBTLookupSet(table_i, col)) nidx_i[isz++] = col;
}
k++;
if (k >= isz0) break; /* for (row=0; row<mbs; row++) */
} else { /* row is not on input is[i]:
do col search: add row onto nidx_i if there is a col in nidx_i */
for (l = a_start; l < a_end; l++) { /* Amat */
col = aj[l] + rstart;
if (col > col_max) break;
if (PetscBTLookup(table0, col)) {
if (!PetscBTLookupSet(table_i, row + rstart)) nidx_i[isz++] = row + rstart;
break; /* for l = start; l<end ; l++) */
}
}
for (l = b_start; l < b_end; l++) { /* Bmat */
col = garray[bj[l]];
if (col > col_max) break;
if (PetscBTLookup(table0, col)) {
if (!PetscBTLookupSet(table_i, row + rstart)) nidx_i[isz++] = row + rstart;
break; /* for l = start; l<end ; l++) */
}
}
}
}
if (i < is_max - 1) {
idx_i += n; /* ptr to input is[i+1] array */
nidx_i += isz; /* ptr to output is[i+1] array */
}
nidx[1 + i] = isz; /* size of new is[i] */
} /* for each is */
PetscCall(PetscBTDestroy(&table0));
PetscFunctionReturn(PETSC_SUCCESS);
}
|
23f208f2b8bcb431bf2f89665533517010597fdb
|
f3eed0234b4d0ad2bbb2abd700cf1e2c7a0e8a1d
|
/AKWF-c/AKWF_bw_saw/AKWF_saw_0007.h
|
35246df68b59f94904c7d5a951191fe20a468736
|
[
"CC0-1.0"
] |
permissive
|
KristofferKarlAxelEkstrand/AKWF-FREE
|
b2defa1a2d389d309be6dd2e9f968923daf80d1b
|
cf8171df36e9fec25416b5f568b72a6e2cb69194
|
refs/heads/master
| 2023-07-23T18:22:36.939705
| 2023-07-10T17:14:40
| 2023-07-10T17:14:40
| 145,817,187
| 359
| 59
|
CC0-1.0
| 2023-07-10T17:14:41
| 2018-08-23T07:26:56
| null |
UTF-8
|
C
| false
| false
| 4,680
|
h
|
AKWF_saw_0007.h
|
/* Adventure Kid Waveforms (AKWF) converted for use with Teensy Audio Library
*
* Adventure Kid Waveforms(AKWF) Open waveforms library
* https://www.adventurekid.se/akrt/waveforms/adventure-kid-waveforms/
*
* This code is in the public domain, CC0 1.0 Universal (CC0 1.0)
* https://creativecommons.org/publicdomain/zero/1.0/
*
* Converted by Brad Roy, https://github.com/prosper00
*/
/* AKWF_saw_0007 256 samples
+-----------------------------------------------------------------------------------------------------------------+
| *********** * |
| ********** * |
| ********** * |
| ********* * |
| ********* * |
|***** * **|
| * ********** |
| * ********* |
| * ********* |
| * ********* |
| * ********* |
| ************** |
| * |
| * |
| * |
+-----------------------------------------------------------------------------------------------------------------+
*/
const uint16_t AKWF_saw_0007 [] = {
33158, 33490, 33577, 33811, 33977, 34200, 34372, 34581, 34757, 34957, 35137, 35332, 35515, 35707, 35892, 36082,
36268, 36454, 36640, 36822, 37009, 37188, 37373, 37550, 37733, 37908, 38088, 38261, 38439, 38611, 38787, 38957,
39131, 39300, 39471, 39639, 39808, 39975, 40143, 40309, 40476, 40641, 40805, 40970, 41134, 41298, 41461, 41624,
41787, 41948, 42112, 42272, 42434, 42594, 42757, 42916, 43079, 43237, 43400, 43560, 43719, 43881, 44038, 44201,
44357, 44522, 44675, 44844, 44993, 45164, 45310, 45487, 45627, 45806, 45945, 46127, 46262, 46446, 46581, 46764,
46903, 47078, 47226, 47392, 47553, 47703, 47880, 48011, 48213, 48319, 48548, 48626, 48865, 48936, 49197, 49229,
49521, 49532, 49839, 49840, 50147, 50153, 50447, 50473, 50736, 50804, 51010, 51148, 51270, 51502, 51515, 51868,
51746, 52247, 51962, 52637, 52162, 53042, 52343, 53469, 52496, 53935, 52580, 54520, 52417, 55762, 48980, 16814,
11695, 11838, 12524, 12612, 12399, 12819, 12460, 13052, 12641, 13277, 12856, 13471, 13080, 13641, 13310, 13801,
13549, 13962, 13796, 14132, 14055, 14317, 14326, 14525, 14606, 14754, 14894, 15003, 15191, 15274, 15496, 15564,
15806, 15869, 16131, 16204, 16446, 16550, 16784, 16899, 17126, 17256, 17474, 17623, 17827, 17991, 18187, 18361,
18550, 18735, 18917, 19109, 19287, 19484, 19661, 19858, 20036, 20235, 20413, 20609, 20789, 20983, 21165, 21357,
21539, 21730, 21912, 22101, 22285, 22472, 22656, 22841, 23026, 23210, 23393, 23578, 23759, 23943, 24126, 24308,
24488, 24671, 24851, 25032, 25212, 25392, 25573, 25752, 25932, 26112, 26291, 26467, 26649, 26826, 27007, 27181,
27363, 27538, 27721, 27894, 28077, 28249, 28434, 28607, 28790, 28963, 29145, 29320, 29501, 29678, 29858, 30039,
30214, 30399, 30570, 30762, 30928, 31126, 31286, 31494, 31645, 31866, 32006, 32244, 32366, 32649, 32711, 32703,
};
|
de0c5e174b44cb17dfd92e2704f54b3e41b9b75b
|
98ee5bc94e754d9b1802d66d7b5c5fcf184a6c90
|
/lib/include/sha_mb_mgr.h
|
c2e61e334bc5d8aed4398c044a4f7d02782d92a2
|
[
"BSD-3-Clause"
] |
permissive
|
intel/intel-ipsec-mb
|
f180701ca3dbdc26f310c5706cb3e8577defa2df
|
9e17d6cad1f99e64f3534053a3ff096c46646058
|
refs/heads/main
| 2023-08-30T13:20:47.709185
| 2023-08-28T13:17:46
| 2023-08-29T13:14:00
| 73,856,328
| 255
| 89
|
BSD-3-Clause
| 2023-08-30T08:42:45
| 2016-11-15T21:22:17
|
C
|
UTF-8
|
C
| false
| false
| 27,068
|
h
|
sha_mb_mgr.h
|
/*******************************************************************************
Copyright (c) 2022-2023, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
#include "include/sha_generic.h"
#include "ipsec_ooo_mgr.h"
#include "constants.h"
#include "include/arch_sse_type1.h"
#include "include/arch_sse_type2.h"
#include "include/arch_avx_type1.h"
#include "include/arch_avx2_type1.h"
#include "include/arch_avx512_type1.h"
__forceinline
void copy_bswap4_array_mb(void *dst, const void *src, const size_t num,
const size_t offset, const unsigned lane)
{
uint32_t *outp = (uint32_t *) dst;
const uint32_t *inp = (const uint32_t *) src;
size_t i;
for (i = 0; i < num; i++)
outp[i] = bswap4(inp[lane + i*offset]);
}
__forceinline
void copy_bswap4_array_mb_ni(void *dst, const void *src, const size_t num,
const unsigned lane, const int digest_row_sz)
{
uint32_t *outp = (uint32_t *) dst;
const uint32_t *inp = (const uint32_t *) src;
size_t i;
for (i = 0; i < num; i++)
outp[i] = bswap4(inp[digest_row_sz*lane + i]);
}
__forceinline
void copy_bswap8_array_mb(void *dst, const void *src, const size_t num,
const size_t offset, const unsigned lane)
{
uint64_t *outp = (uint64_t *) dst;
const uint64_t *inp = (const uint64_t *) src;
size_t i;
for (i = 0; i < num; i++)
outp[i] = bswap8(inp[lane + i*offset]);
}
__forceinline
void sha1_mb_init_digest(uint32_t *digest, const unsigned lane)
{
digest[lane + 0*16] = H0;
digest[lane + 1*16] = H1;
digest[lane + 2*16] = H2;
digest[lane + 3*16] = H3;
digest[lane + 4*16] = H4;
}
__forceinline
void sha1_ni_mb_init_digest(uint32_t *digest, const unsigned lane)
{
digest[5*lane + 0] = H0;
digest[5*lane + 1] = H1;
digest[5*lane + 2] = H2;
digest[5*lane + 3] = H3;
digest[5*lane + 4] = H4;
}
__forceinline
void sha224_mb_init_digest(uint32_t *digest, const unsigned lane)
{
digest[lane + 0*16] = SHA224_H0;
digest[lane + 1*16] = SHA224_H1;
digest[lane + 2*16] = SHA224_H2;
digest[lane + 3*16] = SHA224_H3;
digest[lane + 4*16] = SHA224_H4;
digest[lane + 5*16] = SHA224_H5;
digest[lane + 6*16] = SHA224_H6;
digest[lane + 7*16] = SHA224_H7;
}
__forceinline
void sha224_ni_mb_init_digest(uint32_t *digest, const unsigned lane)
{
digest[8*lane + 0] = SHA224_H0;
digest[8*lane + 1] = SHA224_H1;
digest[8*lane + 2] = SHA224_H2;
digest[8*lane + 3] = SHA224_H3;
digest[8*lane + 4] = SHA224_H4;
digest[8*lane + 5] = SHA224_H5;
digest[8*lane + 6] = SHA224_H6;
digest[8*lane + 7] = SHA224_H7;
}
__forceinline
void sha256_mb_init_digest(uint32_t *digest, const unsigned lane)
{
digest[lane + 0*16] = SHA256_H0;
digest[lane + 1*16] = SHA256_H1;
digest[lane + 2*16] = SHA256_H2;
digest[lane + 3*16] = SHA256_H3;
digest[lane + 4*16] = SHA256_H4;
digest[lane + 5*16] = SHA256_H5;
digest[lane + 6*16] = SHA256_H6;
digest[lane + 7*16] = SHA256_H7;
}
__forceinline
void sha256_ni_mb_init_digest(uint32_t *digest, const unsigned lane)
{
digest[8*lane + 0] = SHA256_H0;
digest[8*lane + 1] = SHA256_H1;
digest[8*lane + 2] = SHA256_H2;
digest[8*lane + 3] = SHA256_H3;
digest[8*lane + 4] = SHA256_H4;
digest[8*lane + 5] = SHA256_H5;
digest[8*lane + 6] = SHA256_H6;
digest[8*lane + 7] = SHA256_H7;
}
__forceinline
void sha384_mb_init_digest(uint64_t *digest, const unsigned lane)
{
digest[lane + 0*8] = SHA384_H0;
digest[lane + 1*8] = SHA384_H1;
digest[lane + 2*8] = SHA384_H2;
digest[lane + 3*8] = SHA384_H3;
digest[lane + 4*8] = SHA384_H4;
digest[lane + 5*8] = SHA384_H5;
digest[lane + 6*8] = SHA384_H6;
digest[lane + 7*8] = SHA384_H7;
}
__forceinline
void sha512_mb_init_digest(uint64_t *digest, const unsigned lane)
{
digest[lane + 0*8] = SHA512_H0;
digest[lane + 1*8] = SHA512_H1;
digest[lane + 2*8] = SHA512_H2;
digest[lane + 3*8] = SHA512_H3;
digest[lane + 4*8] = SHA512_H4;
digest[lane + 5*8] = SHA512_H5;
digest[lane + 6*8] = SHA512_H6;
digest[lane + 7*8] = SHA512_H7;
}
__forceinline
void
sha_mb_generic_init(void *digest, const int sha_type, const unsigned lane)
{
if (sha_type == 1)
sha1_mb_init_digest(digest, lane);
else if (sha_type == 224)
sha224_mb_init_digest(digest, lane);
else if (sha_type == 256)
sha256_mb_init_digest(digest, lane);
else if (sha_type == 384)
sha384_mb_init_digest(digest, lane);
else /* sha_type == 512 */
sha512_mb_init_digest(digest, lane);
}
__forceinline
void
sha_ni_mb_generic_init(void *digest, const int sha_type, const unsigned lane)
{
if (sha_type == 1)
sha1_ni_mb_init_digest(digest, lane);
else if (sha_type == 224)
sha224_ni_mb_init_digest(digest, lane);
else if (sha_type == 256)
sha256_ni_mb_init_digest(digest, lane);
}
__forceinline
void sha_mb_generic_write_digest(void *dst, const void *src,
const int sha_type, const size_t offset,
const unsigned lane)
{
if (sha_type == 1)
copy_bswap4_array_mb(dst, src, NUM_SHA_DIGEST_WORDS, offset,
lane);
else if (sha_type == 224)
copy_bswap4_array_mb(dst, src, NUM_SHA_224_DIGEST_WORDS, offset,
lane);
else if (sha_type == 256)
copy_bswap4_array_mb(dst, src, NUM_SHA_256_DIGEST_WORDS, offset,
lane);
else if (sha_type == 384)
copy_bswap8_array_mb(dst, src, NUM_SHA_384_DIGEST_WORDS, offset,
lane);
else /* sha_type == 512 */
copy_bswap8_array_mb(dst, src, NUM_SHA_512_DIGEST_WORDS, offset,
lane);
}
__forceinline
void sha_ni_mb_generic_write_digest(void *dst, const void *src,
const int sha_type, const unsigned lane)
{
if (sha_type == 1)
copy_bswap4_array_mb_ni(dst, src, NUM_SHA_DIGEST_WORDS,
lane, 5);
else if (sha_type == 224)
copy_bswap4_array_mb_ni(dst, src, NUM_SHA_224_DIGEST_WORDS,
lane, 8);
else if (sha_type == 256)
copy_bswap4_array_mb_ni(dst, src, NUM_SHA_256_DIGEST_WORDS,
lane, 8);
}
__forceinline
void sha1_create_extra_blocks(MB_MGR_SHA_1_OOO *state,
const uint64_t blk_size, const uint64_t r,
const unsigned min_idx)
{
HMAC_SHA1_LANE_DATA *ld = &state->ldata[min_idx];
const uint64_t xblk_size = blk_size*state->ldata[min_idx].extra_blocks;
memset(ld->extra_block, 0, sizeof(ld->extra_block));
var_memcpy(ld->extra_block, state->args.data_ptr[min_idx], r);
ld->extra_block[r] = 0x80;
store8_be(&ld->extra_block[xblk_size - 8],
ld->job_in_lane->msg_len_to_hash_in_bytes * 8);
state->args.data_ptr[min_idx] = &ld->extra_block[0];
state->lens[min_idx] = (uint16_t)xblk_size;
state->ldata[min_idx].extra_blocks = 0;
}
__forceinline
void sha256_create_extra_blocks(MB_MGR_SHA_256_OOO *state,
const uint64_t blk_size, const uint64_t r,
const unsigned min_idx)
{
HMAC_SHA1_LANE_DATA *ld = &state->ldata[min_idx];
const uint64_t xblk_size = blk_size*state->ldata[min_idx].extra_blocks;
memset(ld->extra_block, 0, sizeof(ld->extra_block));
var_memcpy(ld->extra_block, state->args.data_ptr[min_idx], r);
ld->extra_block[r] = 0x80;
store8_be(&ld->extra_block[xblk_size - 8],
ld->job_in_lane->msg_len_to_hash_in_bytes * 8);
state->args.data_ptr[min_idx] = &ld->extra_block[0];
state->lens[min_idx] = (uint16_t)xblk_size;
state->ldata[min_idx].extra_blocks = 0;
}
__forceinline
void sha512_create_extra_blocks(MB_MGR_SHA_512_OOO *state,
const uint64_t blk_size, const uint64_t r,
const unsigned min_idx)
{
HMAC_SHA512_LANE_DATA *ld = &state->ldata[min_idx];
const uint64_t xblk_size = blk_size*state->ldata[min_idx].extra_blocks;
memset(ld->extra_block, 0, sizeof(ld->extra_block));
var_memcpy(ld->extra_block, state->args.data_ptr[min_idx], r);
ld->extra_block[r] = 0x80;
store8_be(&ld->extra_block[xblk_size - 8],
ld->job_in_lane->msg_len_to_hash_in_bytes * 8);
state->args.data_ptr[min_idx] = &ld->extra_block[0];
state->lens[min_idx] = (uint16_t)xblk_size;
state->ldata[min_idx].extra_blocks = 0;
}
__forceinline
IMB_JOB *
submit_flush_job_sha_1(MB_MGR_SHA_1_OOO *state, IMB_JOB *job,
const unsigned max_jobs, const int is_submit,
const int sha_type, const uint64_t blk_size,
const uint64_t pad_size,
void (*fn)(SHA1_ARGS *, uint32_t), const int shani)
{
unsigned lane, min_idx;
IMB_JOB *ret_job = NULL;
if (is_submit) {
/*
* SUBMIT
* - get a free lane id
*/
lane = state->unused_lanes & 15;
state->unused_lanes >>= 4;
state->num_lanes_inuse++;
state->args.data_ptr[lane] =
job->src + job->hash_start_src_offset_in_bytes;
if (shani)
sha_ni_mb_generic_init(state->args.digest, sha_type,
lane);
else
sha_mb_generic_init(state->args.digest, sha_type,
lane);
/* copy job data in and set up initial blocks */
state->ldata[lane].job_in_lane = job;
state->lens[lane] = job->msg_len_to_hash_in_bytes;
state->ldata[lane].extra_blocks = 1;
/* enough jobs to start processing? */
if (state->num_lanes_inuse != max_jobs)
return NULL;
} else {
/*
* FLUSH
* - find 1st non null job
*/
for (lane = 0; lane < max_jobs; lane++)
if (state->ldata[lane].job_in_lane != NULL)
break;
if (lane >= max_jobs)
return NULL; /* no not null job */
}
do {
uint64_t min_len;
unsigned i;
if (is_submit) {
/*
* SUBMIT
* - find min common length to process
*/
min_idx = 0;
min_len = state->lens[0];
for (i = 1; i < max_jobs; i++) {
if (min_len > state->lens[i]) {
min_idx = i;
min_len = state->lens[i];
}
}
} else {
/*
* FLUSH
* - copy good (not null) lane onto empty lanes
* - find min common length to process across
* - not null lanes
*/
min_idx = lane;
min_len = state->lens[lane];
for (i = 0; i < max_jobs; i++) {
if (i == lane)
continue;
if (state->ldata[i].job_in_lane != NULL) {
if (min_len > state->lens[i]) {
min_idx = i;
min_len = state->lens[i];
}
} else {
state->args.data_ptr[i] =
state->args.data_ptr[lane];
state->lens[i] = UINT64_MAX;
}
}
}
/* subtract min len from all lanes */
const uint64_t min_len_blk = min_len & (~(blk_size - 1));
for (i = 0; i < max_jobs; i++)
state->lens[i] -= min_len_blk;
const uint64_t r = min_len % blk_size;
if (r >= (blk_size - pad_size))
state->ldata[min_idx].extra_blocks = 2;
/* run the algorithmic code on full selected blocks */
if(min_len >= blk_size)
(*fn)(&state->args,
(uint32_t)(min_len/blk_size));
/* create extra blocks */
if (state->ldata[min_idx].extra_blocks != 0)
sha1_create_extra_blocks(state, blk_size, r, min_idx);
} while(state->lens[min_idx] != 0);
ret_job = state->ldata[min_idx].job_in_lane;
#ifdef SAFE_DATA
if (ret_job->msg_len_to_hash_in_bytes % blk_size)
memset(state->ldata[min_idx].extra_block, 0, blk_size);
#endif
/* put back processed packet into unused lanes, set job as complete */
state->unused_lanes = (state->unused_lanes << 4) | min_idx;
state->num_lanes_inuse--;
if (shani)
sha_ni_mb_generic_write_digest(ret_job->auth_tag_output,
state->args.digest, sha_type,
min_idx);
else
sha_mb_generic_write_digest(ret_job->auth_tag_output,
state->args.digest, sha_type, 16,
min_idx);
ret_job->status |= IMB_STATUS_COMPLETED_AUTH;
state->ldata[min_idx].job_in_lane = NULL;
return ret_job;
}
__forceinline
IMB_JOB *
submit_flush_job_sha_256(MB_MGR_SHA_256_OOO *state, IMB_JOB *job,
const unsigned max_jobs, const int is_submit,
const int sha_type, const uint64_t blk_size,
const uint64_t pad_size,
void (*fn)(SHA256_ARGS *, uint32_t), const int shani)
{
unsigned lane, min_idx;
IMB_JOB *ret_job = NULL;
if (is_submit) {
/*
* SUBMIT
* - get a free lane id
*/
lane = state->unused_lanes & 15;
state->unused_lanes >>= 4;
state->num_lanes_inuse++;
state->args.data_ptr[lane] =
job->src + job->hash_start_src_offset_in_bytes;
if (shani)
sha_ni_mb_generic_init(state->args.digest, sha_type,
lane);
else
sha_mb_generic_init(state->args.digest, sha_type,
lane);
/* copy job data in and set up initial blocks */
state->ldata[lane].job_in_lane = job;
state->lens[lane] = job->msg_len_to_hash_in_bytes;
state->ldata[lane].extra_blocks = 1;
/* enough jobs to start processing? */
if (state->num_lanes_inuse != max_jobs)
return NULL;
} else {
/*
* FLUSH
* - find 1st non null job
*/
for (lane = 0; lane < max_jobs; lane++)
if (state->ldata[lane].job_in_lane != NULL)
break;
if (lane >= max_jobs)
return NULL; /* no not null job */
}
do {
uint64_t min_len;
unsigned i;
if (is_submit) {
/*
* SUBMIT
* - find min common length to process
*/
min_idx = 0;
min_len = state->lens[0];
for (i = 1; i < max_jobs; i++) {
if (min_len > state->lens[i]) {
min_idx = i;
min_len = state->lens[i];
}
}
} else {
/*
* FLUSH
* - copy good (not null) lane onto empty lanes
* - find min common length to process across
* - not null lanes
*/
min_idx = lane;
min_len = state->lens[lane];
for (i = 0; i < max_jobs; i++) {
if (i == lane)
continue;
if (state->ldata[i].job_in_lane != NULL) {
if (min_len > state->lens[i]) {
min_idx = i;
min_len = state->lens[i];
}
} else {
state->args.data_ptr[i] =
state->args.data_ptr[lane];
state->lens[i] = UINT64_MAX;
}
}
}
/* subtract min len from all lanes */
const uint64_t min_len_blk = min_len & (~(blk_size - 1));
for (i = 0; i < max_jobs; i++)
state->lens[i] -= min_len_blk;
const uint64_t r = min_len % blk_size;
if (r >= (blk_size - pad_size))
state->ldata[min_idx].extra_blocks = 2;
/* run the algorithmic code on full selected blocks */
if(min_len >= blk_size)
(*fn)(&state->args,
(uint32_t)(min_len/blk_size));
/* create extra blocks */
if (state->ldata[min_idx].extra_blocks != 0)
sha256_create_extra_blocks(state, blk_size, r, min_idx);
} while(state->lens[min_idx] != 0);
ret_job = state->ldata[min_idx].job_in_lane;
#ifdef SAFE_DATA
if (ret_job->msg_len_to_hash_in_bytes % blk_size)
memset(state->ldata[min_idx].extra_block, 0, blk_size);
#endif
/* put back processed packet into unused lanes, set job as complete */
state->unused_lanes = (state->unused_lanes << 4) | min_idx;
state->num_lanes_inuse--;
if (shani)
sha_ni_mb_generic_write_digest(ret_job->auth_tag_output,
state->args.digest, sha_type,
min_idx);
else
sha_mb_generic_write_digest(ret_job->auth_tag_output,
state->args.digest, sha_type, 16,
min_idx);
ret_job->status |= IMB_STATUS_COMPLETED_AUTH;
state->ldata[min_idx].job_in_lane = NULL;
return ret_job;
}
__forceinline
IMB_JOB *
submit_flush_job_sha_512(MB_MGR_SHA_512_OOO *state, IMB_JOB *job,
const unsigned max_jobs, const int is_submit,
const int sha_type, const uint64_t blk_size,
const uint64_t pad_size,
void (*fn)(SHA512_ARGS *, uint64_t))
{
unsigned lane, min_idx;
IMB_JOB *ret_job = NULL;
if (is_submit) {
/*
* SUBMIT
* - get a free lane id
*/
lane = state->unused_lanes & 15;
state->unused_lanes >>= 4;
state->num_lanes_inuse++;
state->args.data_ptr[lane] =
job->src + job->hash_start_src_offset_in_bytes;
sha_mb_generic_init(state->args.digest, sha_type, lane);
/* copy job data in and set up initial blocks */
state->ldata[lane].job_in_lane = job;
state->lens[lane] = (uint16_t)job->msg_len_to_hash_in_bytes;
state->ldata[lane].extra_blocks = 1;
/* enough jobs to start processing? */
if (state->num_lanes_inuse != max_jobs)
return NULL;
} else {
/*
* FLUSH
* - find 1st non null job
*/
for (lane = 0; lane < max_jobs; lane++)
if (state->ldata[lane].job_in_lane != NULL)
break;
if (lane >= max_jobs)
return NULL; /* no not null job */
}
do {
uint64_t min_len;
unsigned i;
if (is_submit) {
/*
* SUBMIT
* - find min common length to process
*/
min_idx = 0;
min_len = state->lens[0];
for (i = 1; i < max_jobs; i++) {
if (min_len > state->lens[i]) {
min_idx = i;
min_len = state->lens[i];
}
}
} else {
/*
* FLUSH
* - copy good (not null) lane onto empty lanes
* - find min common length to process across
* - not null lanes
*/
min_idx = lane;
min_len = state->lens[lane];
for (i = 0; i < max_jobs; i++) {
if (i == lane)
continue;
if (state->ldata[i].job_in_lane != NULL) {
if (min_len > state->lens[i]) {
min_idx = i;
min_len = state->lens[i];
}
} else {
state->args.data_ptr[i] =
state->args.data_ptr[lane];
state->lens[i] = UINT64_MAX;
}
}
}
/* subtract min len from all lanes */
const uint64_t min_len_blk = min_len & (~(blk_size - 1));
for (i = 0; i < max_jobs; i++)
state->lens[i] -= min_len_blk;
const uint64_t r = min_len % blk_size;
if (r >= (blk_size - pad_size))
state->ldata[min_idx].extra_blocks = 2;
/* run the algorithmic code on full selected blocks */
if(min_len >= blk_size)
(*fn)(&state->args,
(uint64_t)(min_len/blk_size));
/* create extra blocks */
if (state->ldata[min_idx].extra_blocks != 0)
sha512_create_extra_blocks(state, blk_size, r, min_idx);
} while(state->lens[min_idx] != 0);
ret_job = state->ldata[min_idx].job_in_lane;
#ifdef SAFE_DATA
if (ret_job->msg_len_to_hash_in_bytes % blk_size)
memset(state->ldata[min_idx].extra_block, 0, blk_size);
#endif
/* put back processed packet into unused lanes, set job as complete */
state->unused_lanes = (state->unused_lanes << 4) | min_idx;
state->num_lanes_inuse--;
sha_mb_generic_write_digest(ret_job->auth_tag_output,
state->args.digest, sha_type, 8, min_idx);
ret_job->status |= IMB_STATUS_COMPLETED_AUTH;
state->ldata[min_idx].job_in_lane = NULL;
return ret_job;
}
|
43c976dd93d5a45d8b3d205b9058df45973a4b38
|
2dfc2beac0ad497f8fc59201921097a412f0df7f
|
/trunk/3rdparty/srt-1-fit/haicrypt/haicrypt_log.h
|
9655f722b68a9d39477dcb5d72dcfea63d17134d
|
[
"OpenSSL",
"JSON",
"Apache-2.0",
"LicenseRef-scancode-mulanpsl-2.0-en",
"MIT",
"MulanPSL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MPL-2.0"
] |
permissive
|
ossrs/srs
|
cf9442478fedcd32ef2817f8d53f405a6fa2c7d1
|
7138edd318d30b545e73e80500adda771817f8d1
|
refs/heads/develop
| 2023-09-01T03:38:35.057515
| 2023-08-31T01:45:25
| 2023-08-31T01:49:36
| 34,777,562
| 23,557
| 5,046
|
MIT
| 2023-09-09T00:57:42
| 2015-04-29T06:59:32
|
C++
|
UTF-8
|
C
| false
| false
| 931
|
h
|
haicrypt_log.h
|
#ifndef INC_SRT_HAICRYPT_LOG_H
#define INC_SRT_HAICRYPT_LOG_H
#ifdef __cplusplus
extern "C" {
#endif
#define HAICRYPT_DECLARE_LOG_DISPATCHER(LOGLEVEL) \
int HaiCrypt_LogF_##LOGLEVEL ( const char* file, int line, const char* function, const char* format, ...)
// Now declare all dispatcher functions
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_DEBUG);
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_NOTICE);
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_INFO);
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_WARNING);
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_ERR);
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_CRIT);
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_ALERT);
HAICRYPT_DECLARE_LOG_DISPATCHER(LOG_EMERG);
#define HCRYPT_LOG_INIT()
#define HCRYPT_LOG_EXIT()
#define HCRYPT_LOG(lvl, fmt, ...) HaiCrypt_LogF_##lvl (__FILE__, __LINE__, __FUNCTION__, fmt, __VA_ARGS__)
#if ENABLE_HAICRYPT_LOGGING == 2
#define HCRYPT_DEV 1
#endif
#ifdef __cplusplus
}
#endif
#endif // macroguard
|
15c6c1ea479752cd5f527bd4ce5d8e4cdaf98913
|
bf32556b2db7a22556869a9b69cffa3d51852489
|
/include/mp.h
|
aec0e0fdb0e6f77a8bc2c84dd05032581e87839e
|
[
"MIT"
] |
permissive
|
jserv/xv6-x86_64
|
235372b64618814b1e287a47efe263cb38775c67
|
117208b3cc1df650af9bafca33b1f26ee60cb6fc
|
refs/heads/64bit
| 2023-07-22T22:09:56.335477
| 2023-07-22T07:34:13
| 2023-07-22T07:34:13
| 36,936,955
| 159
| 48
|
NOASSERTION
| 2023-07-22T07:34:14
| 2015-06-05T14:25:04
|
C
|
UTF-8
|
C
| false
| false
| 2,146
|
h
|
mp.h
|
// See MultiProcessor Specification Version 1.[14]
struct mp { // floating pointer
uchar signature[4]; // "_MP_"
uint physaddr; // phys addr of MP config table
uchar length; // 1
uchar specrev; // [14]
uchar checksum; // all bytes must add up to 0
uchar type; // MP system config type
uchar imcrp;
uchar reserved[3];
};
struct mpconf { // configuration table header
uchar signature[4]; // "PCMP"
ushort length; // total table length
uchar version; // [14]
uchar checksum; // all bytes must add up to 0
uchar product[20]; // product id
uint oemtable; // OEM table pointer
ushort oemlength; // OEM table length
ushort entry; // entry count
uint lapicaddr; // address of local APIC
ushort xlength; // extended table length
uchar xchecksum; // extended table checksum
uchar reserved;
};
struct mpproc { // processor table entry
uchar type; // entry type (0)
uchar apicid; // local APIC id
uchar version; // local APIC verison
uchar flags; // CPU flags
#define MPBOOT 0x02 // This proc is the bootstrap processor.
uchar signature[4]; // CPU signature
uint feature; // feature flags from CPUID instruction
uchar reserved[8];
};
struct mpioapic { // I/O APIC table entry
uchar type; // entry type (2)
uchar apicno; // I/O APIC id
uchar version; // I/O APIC version
uchar flags; // I/O APIC flags
uint addr; // I/O APIC address
};
// Table entry types
#define MPPROC 0x00 // One per processor
#define MPBUS 0x01 // One per bus
#define MPIOAPIC 0x02 // One per I/O APIC
#define MPIOINTR 0x03 // One per bus interrupt source
#define MPLINTR 0x04 // One per system interrupt source
//PAGEBREAK!
// Blank page.
|
25d833af3c90ee7034c68eab80e5b2a87372ccaa
|
9907672fcd81ab73ac63b2a83422a82bf31eadde
|
/yukicoder/tyama_yukicoder266.c
|
6b605dce6aeb0d4948f48e99f969334ee2a707a1
|
[
"0BSD"
] |
permissive
|
cielavenir/procon
|
bbe1974b9bddb51b76d58722a0686a5b477c4456
|
746e1a91f574f20647e8aaaac0d9e6173f741176
|
refs/heads/master
| 2023-06-21T23:11:24.562546
| 2023-06-11T13:15:15
| 2023-06-11T13:15:15
| 7,557,464
| 137
| 136
| null | 2020-10-20T09:35:52
| 2013-01-11T09:40:26
|
C++
|
UTF-8
|
C
| false
| false
| 214
|
c
|
tyama_yukicoder266.c
|
N,j,x,s,m[99];main(){for(memset(m+1,99,392),scanf("%d",&N);~N;N--)for(scanf("%d",&s),j=0;j<=s;j++)for(m[j]++,x=0;x<j;x++)m[j]=m[j]<(m[x]+m[j-1-x])?m[j]:(m[x]+m[j-1-x]);for(j=s;~s;s--)printf(s?"%d ":"%d\n",m[j-s]);}
|
c649a69f6052af3a5cd9b50f0a48abee314940b4
|
111c5eb76e9e626731bd9279fe1e4d406f4b4e68
|
/19-移动端/02-weex/weexdemo/platforms/ios/Pods/Headers/Public/WeexSDK/WeexSDK/WXDefine.h
|
7e1bf9bec94ca92288b93fe7910acfd25920d671
|
[
"MIT",
"ICU",
"GPL-3.0-only"
] |
permissive
|
csxiaoyaojianxian/JavaScriptStudy
|
db847b42b779051925f6acdd8ed298eb97a9ef71
|
e6b6e372a0a7f1b648125e18035e6c354a481bcb
|
refs/heads/master
| 2023-05-28T20:52:59.601978
| 2023-05-11T08:03:52
| 2023-05-11T08:03:52
| 80,765,186
| 700
| 220
|
MIT
| 2021-10-06T02:38:34
| 2017-02-02T20:21:56
|
JavaScript
|
UTF-8
|
C
| false
| false
| 56
|
h
|
WXDefine.h
|
../../../../WeexSDK/WeexSDK.framework/Headers/WXDefine.h
|
f6849565ea497a359d3ce8fe1e0af804a23fa522
|
b4c2b8dc89417e966a67a433267ebb9c156dbff4
|
/src/vehicles/sounds/BENFORD3TONStart.h
|
ab88b2818bc3a505b075e510f4b15a8a0ea98eee
|
[] |
no_license
|
TheDIYGuy999/Rc_Engine_Sound_ESP32
|
92134030dbc047627310d54ccf1fd34fb3cad791
|
eeeb47964861b66f8e1db34bffe35657846d8b20
|
refs/heads/master
| 2023-08-31T00:17:03.698027
| 2023-05-04T19:46:51
| 2023-05-04T19:46:51
| 225,658,413
| 230
| 105
| null | 2023-08-26T14:38:39
| 2019-12-03T15:51:13
|
C
|
UTF-8
|
C
| false
| false
| 692,122
|
h
|
BENFORD3TONStart.h
|
const unsigned int startSampleRate = 22050;
const unsigned int startSampleCount = 151808;
const signed char startSamples[] = {//0
0, -5, -4, -4, -4, -5, -5, -5, -5, -6, -6, -6, -5, -4, -4, -4, //16
-4, -4, -4, -3, -3, -3, -4, -3, -3, -3, -2, -2, -1, -2, -3, -3, //32
-3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -2, -2, -2, -2, -2, //48
-2, -2, -2, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -1, //64
-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, 0, 0, 0, 0, 0, //80
1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, //96
0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 1, 0, 1, 1, //112
1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, //128
1, 2, 2, 3, 3, 3, 3, 3, 2, 2, 3, 4, 4, 4, 5, 5, //144
4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, //160
4, 4, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, //176
5, 5, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, //192
5, 5, 5, 4, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, //208
4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, //224
3, 3, 2, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 2, 2, 2, //240
2, 2, 3, 3, 3, 4, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, //256
2, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, //272
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, -1, -1, -1, //288
-1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -3, -3, -3, -3, -2, -2, //304
-2, -2, -3, -3, -4, -4, -4, -4, -4, -4, -4, -5, -5, -5, -4, -4, //320
-4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, //336
-4, -4, -4, -4, -4, -4, -4, -4, -5, -4, -4, -5, -5, -6, -6, -6, //352
-6, -6, -7, -7, -6, -6, -6, -6, -7, -7, -7, -7, -7, -7, -8, -8, //368
-8, -8, -7, -7, -7, -8, -8, -9, -9, -9, -9, -8, -8, -9, -9, -8, //384
-9, -9, -9, -10, -9, -9, -9, -9, -10, -10, -10, -10, -9, -9, -8, -8, //400
-8, -8, -8, -8, -8, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, //416
-7, -7, -7, -7, -7, -7, -6, -6, -6, -6, -6, -6, -6, -6, -6, -5, //432
-6, -5, -5, -5, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, //448
-3, -2, -2, -2, -2, -2, -2, -2, -1, -1, -1, -1, -1, -1, -1, 0, //464
0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, //480
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 1, 0, 0, 0, //496
0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, //512
4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 4, 4, 4, 4, 4, //528
4, 4, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, //544
6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, //560
5, 5, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 5, 6, //576
6, 6, 6, 5, 5, 4, 4, 4, 5, 5, 5, 4, 4, 4, 4, 4, //592
4, 4, 4, 4, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, //608
5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, //624
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 5, 5, 4, 5, //640
4, 4, 4, 4, 4, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, //656
1, 1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, //672
3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, //688
0, 0, -1, -2, -2, -3, -4, -4, -4, -5, -4, -4, -4, -4, -5, -5, //704
-5, -5, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, //720
-3, -3, -3, -2, -2, -2, -3, -3, -3, -3, -4, -4, -4, -5, -5, -6, //736
-6, -6, -6, -6, -6, -5, -5, -5, -5, -5, -5, -5, -5, -4, -5, -5, //752
-5, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -5, //768
-4, -5, -5, -5, -5, -5, -5, -6, -6, -6, -6, -6, -6, -6, -7, -7, //784
-7, -7, -7, -7, -8, -8, -8, -8, -8, -9, -9, -8, -8, -8, -8, -7, //800
-7, -8, -8, -7, -7, -7, -7, -6, -6, -5, -5, -5, -5, -5, -4, -4, //816
-3, -3, -3, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, //832
-2, -2, -1, -1, -2, -2, -3, -3, -3, -3, -2, -3, -3, -3, -3, -2, //848
-2, -2, -2, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, 0, //864
0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, -1, -2, //880
-2, -2, -2, -2, -2, -1, -1, -1, -1, 0, 0, 0, 0, -1, -1, -1, //896
-1, -1, -1, 0, 0, 1, 2, 3, 3, 3, 4, 4, 3, 4, 4, 4, //912
4, 4, 3, 4, 4, 4, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, //928
1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, //944
1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1, 1, 1, 1, 0, 0, //960
0, 1, 1, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, //976
1, 2, 2, 2, 3, 3, 2, 1, 1, 1, 1, 2, 2, 0, 0, -1, //992
-3, -2, -2, -1, -2, -2, -3, -3, -2, -1, -1, -1, -1, -1, -2, -1, //1008
1, 0, -1, -1, -1, -1, -1, -1, -2, -2, -1, -2, -3, -3, -2, -1, //1024
-2, -1, -1, -1, -1, -3, -2, -1, -2, -3, -4, -4, -3, -2, -3, -4, //1040
-4, -4, -4, -4, -3, -3, -3, -4, -4, -3, 0, 1, 0, 0, 1, 1, //1056
1, 3, 4, 3, 3, 3, 3, 1, 1, 0, 1, 1, 0, 0, 0, 0, //1072
-1, 0, 0, -2, -1, -2, -2, -2, -2, -3, -5, -5, -4, -4, -2, -4, //1088
-6, -6, -5, -3, -3, -3, -2, -3, -3, -4, -4, -4, -5, -5, -4, -2, //1104
-3, -6, -6, -3, -4, -2, 1, 0, -2, -1, -2, -3, -4, -4, -1, -2, //1120
-7, -5, -3, -2, -2, -2, 1, 2, 1, -1, 0, 2, 2, 0, -1, 0, //1136
0, 1, 2, 1, 1, -2, -6, -4, -4, -4, -1, 1, -4, -5, -6, -6, //1152
-2, 2, 2, 0, -2, -3, -2, 0, 2, 1, 0, 0, 0, -2, 0, 2, //1168
1, -2, -4, 1, 4, 5, 5, 4, 3, 5, 4, 1, 1, 4, 2, 0, //1184
0, 0, 0, 1, -1, -2, -1, 1, 3, 6, 9, 11, 10, 9, 8, 2, //1200
-2, 0, 4, 6, 4, 8, 9, 6, 6, 8, 6, 10, 12, 7, 3, 3, //1216
9, 11, 8, 7, 7, 6, 5, 3, 3, 6, 8, 5, 0, 0, 5, 7, //1232
6, 8, 8, 10, 12, 8, 1, 1, 2, 2, 1, 1, 7, 9, 7, 4, //1248
2, 2, 2, 2, 3, 6, 6, 5, 3, 5, 6, 5, 6, 5, 4, 5, //1264
4, 0, -3, -2, 1, 0, 0, 0, -1, -5, -6, -4, 1, 4, 2, -1, //1280
-3, -2, 0, -4, -2, 2, -3, -9, -6, -2, 0, -2, -3, 0, 1, -3, //1296
-1, -1, -3, -1, 2, 3, 4, 6, 10, 8, 3, -1, 0, 1, 0, -5, //1312
-8, -5, -3, -1, -2, -3, 3, 3, 0, -2, 1, 4, 4, 1, -2, 3, //1328
9, 6, 4, 1, -3, -3, 0, 0, 2, 6, 6, 6, 3, 3, 2, 1, //1344
0, -3, -5, -3, -1, -1, -4, -6, -3, -5, -7, -4, 0, -3, 0, 1, //1360
1, 1, 0, 0, 3, 5, 7, 10, 12, 8, 3, 3, 4, 3, 3, 3, //1376
6, 5, -2, -2, 2, -2, -2, 0, 0, 1, 2, 1, 0, -1, -1, -4, //1392
-7, -7, -8, -10, -7, -3, -1, -2, -4, -3, -2, -1, 3, 5, 1, -2, //1408
-2, 0, 1, 1, 6, 10, 5, 0, -1, 0, -2, -8, -11, -11, -11, -9, //1424
-5, 4, 8, 7, 6, 3, -2, -4, -5, -5, -4, -3, -3, -5, -5, -6, //1440
-8, -6, -2, -2, -2, -2, -2, -2, -3, -2, 0, 2, 2, 1, 4, 5, //1456
4, 2, 0, -1, 2, 2, 1, 1, 1, 1, -1, -4, -3, -3, -5, -4, //1472
-5, -4, -2, -4, -8, -11, -13, -13, -14, -15, -13, -12, -10, -8, -8, -5, //1488
-2, -2, -3, -4, -4, -6, -9, -11, -11, -10, -10, -7, -5, -5, -5, -3, //1504
-2, -4, -3, -3, -4, -5, -5, -1, 4, 3, 2, 1, -3, -3, -2, -3, //1520
-5, -8, -9, -9, -10, -11, -11, -9, -9, -8, -7, -6, -7, -8, -9, -9, //1536
-8, -5, 0, 2, 3, 1, 0, 0, -2, -2, -1, -1, 0, 3, 1, 0, //1552
0, 0, -1, -3, -3, -1, 3, 3, 2, 3, 4, 5, 4, 1, -1, -3, //1568
-5, -8, -7, -7, -8, -8, -7, -6, -3, 0, 3, 4, 4, 2, 2, 3, //1584
2, 4, 6, 5, 3, 4, 4, 5, 3, 1, 3, 4, 3, 4, 4, 3, //1600
3, 4, 3, 2, 2, 3, 2, 1, 1, 2, 4, 4, 1, 0, 0, 1, //1616
3, 7, 8, 7, 6, 4, 3, 5, 4, 3, 3, 2, 1, 0, 0, 1, //1632
4, 5, 6, 9, 11, 11, 10, 8, 10, 11, 10, 6, 3, 0, -3, -6, //1648
-7, -7, -6, -6, -5, -3, -2, -1, 0, 1, 1, 1, 2, 2, 3, 5, //1664
6, 7, 6, 4, 2, 2, 2, 2, 2, 5, 7, 6, 5, 5, 5, 6, //1680
6, 5, 4, 2, -1, -6, -7, -6, -5, -4, -3, -4, -2, 0, 1, 1, //1696
1, 2, 3, 2, 1, -1, 1, 3, 4, 4, 5, 5, 4, 2, 2, 4, //1712
7, 7, 4, 3, 3, 3, 3, 1, 1, 0, -1, -1, -1, -3, -3, -3, //1728
-2, -2, -2, -2, -3, -5, -5, -3, -1, -1, -1, 0, -1, -1, 0, 0, //1744
0, -1, -2, -3, -2, -3, -4, -4, -3, -3, -3, -2, -1, 1, 1, -1, //1760
-3, -4, -5, -5, -5, -5, -5, -4, -3, -3, -2, -1, -2, -2, -2, -2, //1776
-1, -4, -6, -7, -7, -6, -5, -4, -3, -2, -2, -1, 0, 0, 1, 1, //1792
1, 0, -1, -2, -3, -3, -4, -4, -4, -4, -5, -5, -3, -3, -2, -2, //1808
-3, -4, -6, -5, -4, -2, 0, 2, 3, 3, 2, 1, 1, -1, -3, -4, //1824
-4, -3, -2, -2, -1, 0, 2, 5, 6, 8, 7, 7, 7, 5, 4, 1, //1840
-1, -2, -3, -2, -1, 1, 3, 3, 3, 2, 2, 3, 5, 5, 3, 2, //1856
1, 0, -1, -1, -1, -1, -1, -1, -2, -2, -3, -3, -2, -1, 1, 3, //1872
3, 3, 2, 1, 1, 1, 0, -1, -2, -2, -1, -1, -1, 0, 1, 1, //1888
0, 0, 1, 1, 1, -1, -2, -3, -4, -5, -6, -6, -5, -5, -5, -4, //1904
-4, -5, -5, -4, -5, -5, -3, -3, -4, -3, -2, -2, -3, -4, -4, -3, //1920
-2, -1, -1, -1, 0, 1, 2, 3, 3, 2, 2, 1, 0, -1, -1, -3, //1936
-3, -4, -4, -3, -3, -3, -2, -2, -2, -1, 1, 1, 1, 0, 0, -1, //1952
-1, -2, -2, 0, 0, -3, -2, -1, 0, 2, 3, 2, 2, 2, 1, 1, //1968
2, 2, 2, 2, 2, 0, -2, -3, -2, -2, -2, -3, -3, -3, -2, -1, //1984
1, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 1, 0, 0, 2, 3, //2000
3, 4, 3, 3, 3, 3, 2, 2, 3, 4, 5, 5, 5, 5, 3, 2, //2016
1, 2, 2, 0, 0, 0, -1, -1, -1, 0, 1, 1, 1, 1, 1, 0, //2032
-2, -2, -1, -2, -2, -3, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, //2048
-2, -2, -3, -3, -3, -4, -4, -4, -4, -5, -5, -5, -4, -4, -3, -3, //2064
1, 3, 2, 1, 1, 1, 3, 3, 4, 4, 2, 2, 1, 2, 3, 4, //2080
4, 3, 2, 2, 2, 3, 3, 1, 0, -1, -2, -3, -2, -2, -2, -3, //2096
-3, -2, 0, 2, 3, 2, 0, 0, 0, 1, 0, -1, -1, -1, -2, -2, //2112
-2, -2, -2, -2, -2, -3, -4, -5, -5, -4, -4, -4, -4, -5, -6, -5, //2128
-4, -3, -3, -3, -2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, //2144
-1, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1, 1, //2160
-1, 0, 0, -1, -1, -1, -1, -1, 0, 0, -1, -2, -2, -1, -1, -1, //2176
-1, -2, -2, -2, -3, -3, -2, -2, -3, -3, -3, -3, -3, -3, -4, -4, //2192
-4, -4, -4, -4, -4, -4, -4, -4, -4, -5, -5, -4, -3, -3, -2, -1, //2208
-1, 0, 1, 2, 3, 3, 3, 3, 3, 4, 3, 1, 0, -2, -4, -4, //2224
-4, -3, -2, -1, 0, 1, 1, 1, 1, 1, 2, 3, 2, 1, 0, -1, //2240
0, -1, -1, 0, 2, 3, 2, 2, 2, 2, 2, 2, 1, 0, -1, -2, //2256
-2, -2, -2, -2, -2, -2, -1, 0, 1, 0, 0, -1, 0, 0, 0, 0, //2272
1, 2, 2, 1, 1, 0, -2, -3, -3, -2, -3, -3, -1, 0, 0, 0, //2288
0, 0, 1, 1, 2, 2, 0, -2, -3, -3, -3, -2, -2, -2, -3, -4, //2304
-4, -4, -4, -4, -4, -4, -4, -3, -2, -2, -2, -4, -5, -5, -5, -4, //2320
-4, -4, -3, -3, -2, -2, -2, -2, -2, -2, 0, 0, 0, -1, -1, -1, //2336
-2, -1, -2, -1, -1, -1, -1, -2, -2, -3, -3, -2, -2, -2, -2, -3, //2352
-2, -1, 0, 0, 1, 2, 3, 4, 5, 5, 5, 6, 7, 8, 8, 8, //2368
9, 9, 10, 11, 11, 10, 9, 9, 10, 9, 8, 9, 9, 7, 7, 7, //2384
6, 5, 4, 3, 3, 2, 1, 0, -1, 0, 0, 1, 2, 2, 3, 4, //2400
5, 5, 5, 4, 3, 2, 2, 1, 1, 1, -1, -2, -3, -3, -3, -2, //2416
-1, -1, -2, -2, -3, -3, -2, -1, -1, 0, 0, 0, 0, 0, 0, 0, //2432
0, -1, 0, 0, 0, -1, -1, -2, -1, 0, 0, 2, 2, 2, 1, 1, //2448
1, 0, -1, -2, -2, -2, -1, -1, -1, -1, -1, 0, 1, 2, 2, 2, //2464
2, 2, 2, 1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, //2480
-1, -2, -3, -3, -2, -2, -3, -4, -5, -6, -7, -7, -7, -5, -6, -6, //2496
-6, -6, -4, -4, -4, -6, -6, -6, -7, -8, -8, -9, -9, -10, -10, -10, //2512
-10, -9, -10, -11, -11, -12, -12, -13, -13, -12, -10, -10, -10, -10, -10, -10, //2528
-11, -10, -11, -11, -9, -9, -8, -8, -8, -8, -7, -4, -3, -2, 1, 3, //2544
5, 6, 7, 8, 9, 9, 8, 9, 9, 9, 8, 8, 8, 8, 8, 8, //2560
8, 9, 10, 11, 11, 11, 11, 10, 9, 8, 7, 7, 5, 4, 3, 2, //2576
1, 1, 1, 1, 0, 0, 0, 0, -1, -2, -3, -3, -4, -5, -6, -7, //2592
-9, -9, -10, -11, -12, -12, -12, -13, -13, -13, -12, -11, -11, -11, -11, -10, //2608
-9, -9, -8, -7, -6, -5, -3, -2, -1, 0, 0, 0, 0, 1, 1, 1, //2624
2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 7, 8, 8, 10, 11, 12, //2640
12, 12, 12, 14, 14, 14, 14, 14, 14, 15, 15, 16, 17, 18, 18, 19, //2656
20, 21, 22, 22, 21, 20, 20, 18, 17, 16, 15, 13, 11, 9, 8, 7, //2672
7, 7, 6, 6, 5, 4, 4, 4, 1, -1, -2, -3, -4, -5, -6, -6, //2688
-8, -8, -8, -8, -8, -8, -7, -6, -4, -3, -2, -2, -1, 0, 0, -1, //2704
-2, -2, -3, -3, -3, -6, -7, -9, -9, -10, -10, -10, -11, -12, -12, -12, //2720
-11, -10, -9, -8, -8, -8, -7, -7, -6, -5, -4, -3, -3, -2, -1, -1, //2736
-1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 0, -1, -1, -1, -2, -3, //2752
-3, -3, -2, -1, 0, 1, 3, 3, 5, 4, 4, 5, 6, 7, 7, 7, //2768
6, 5, 5, 5, 4, 4, 3, 2, 2, 3, 3, 4, 3, 3, 3, 2, //2784
0, -2, -5, -6, -7, -8, -7, -6, -6, -4, -4, -3, -3, -4, -4, -5, //2800
-5, -5, -5, -4, -4, -6, -6, -6, -7, -8, -9, -10, -11, -12, -13, -14, //2816
-15, -16, -17, -19, -21, -22, -23, -24, -24, -24, -25, -25, -25, -25, -24, -24, //2832
-24, -22, -21, -20, -20, -18, -17, -14, -12, -11, -9, -9, -9, -8, -8, -8, //2848
-7, -7, -6, -6, -6, -5, -5, -3, -1, 1, 3, 4, 6, 9, 11, 13, //2864
15, 16, 17, 19, 20, 21, 22, 22, 22, 22, 22, 22, 21, 19, 18, 17, //2880
16, 15, 13, 11, 10, 9, 9, 9, 9, 9, 8, 6, 5, 4, 2, -1, //2896
-2, -3, -3, -3, -5, -7, -8, -8, -7, -6, -5, -5, -3, -2, -3, -2, //2912
-2, -1, -1, -1, -1, -1, -3, -3, -3, -3, -3, -2, -2, -1, -1, -1, //2928
0, 0, 0, 0, 1, 1, 0, -1, -3, -4, -5, -7, -7, -7, -7, -7, //2944
-6, -5, -4, -2, -1, -1, 0, 0, 1, 1, 2, 2, 2, 4, 4, 3, //2960
3, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 6, 6, 7, 7, 6, //2976
5, 5, 5, 4, 4, 5, 5, 4, 4, 4, 2, 2, 2, 3, 3, 3, //2992
3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 4, 4, 4, 3, 2, //3008
1, 1, 0, -2, -3, -3, -5, -6, -6, -7, -7, -7, -6, -5, -4, -4, //3024
-4, -3, -3, -3, -3, -3, -3, -5, -4, -5, -6, -7, -7, -6, -7, -8, //3040
-8, -8, -7, -8, -8, -8, -8, -8, -8, -9, -8, -8, -8, -8, -7, -7, //3056
-7, -7, -7, -7, -7, -5, -4, -4, -2, 0, 0, 0, 0, 0, 0, 2, //3072
3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 4, 5, //3088
5, 6, 5, 5, 5, 6, 6, 7, 8, 9, 9, 9, 9, 8, 8, 8, //3104
7, 7, 7, 8, 8, 8, 8, 7, 6, 5, 4, 4, 3, 2, 1, 1, //3120
1, 1, 2, 2, 2, 1, 0, -1, -2, -2, -2, -2, -2, -2, -2, -2, //3136
-2, -1, -1, 0, 1, 2, 3, 3, 4, 4, 5, 4, 4, 4, 3, 3, //3152
4, 5, 5, 5, 6, 6, 6, 5, 5, 5, 5, 5, 5, 6, 6, 7, //3168
7, 8, 9, 9, 9, 10, 11, 10, 10, 10, 9, 8, 7, 6, 6, 6, //3184
6, 6, 5, 5, 5, 3, 2, 2, 2, 1, 0, -1, -1, -1, -1, -2, //3200
-2, -2, -2, -1, -1, -1, -1, -2, -3, -4, -4, -3, -3, -3, -3, -2, //3216
-2, -2, -4, -5, -6, -8, -9, -12, -12, -13, -15, -16, -17, -17, -17, -18, //3232
-18, -18, -19, -19, -19, -19, -20, -20, -21, -22, -23, -24, -24, -24, -24, -24, //3248
-23, -22, -22, -21, -21, -20, -18, -18, -18, -16, -15, -15, -15, -15, -13, -13, //3264
-13, -14, -14, -14, -15, -15, -14, -13, -10, -8, -6, -4, -3, -3, -4, -5, //3280
-6, -6, -5, -5, -6, -6, -6, -5, -5, -5, -3, -2, -2, -3, -3, -2, //3296
-2, -3, -3, -3, -3, -4, -5, -5, -5, -5, -5, -5, -4, -3, -2, -1, //3312
0, 0, 1, 0, 0, 0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 6, //3328
7, 6, 6, 6, 7, 9, 10, 11, 11, 11, 10, 10, 10, 10, 10, 10, //3344
11, 12, 13, 14, 14, 14, 13, 12, 11, 10, 10, 10, 10, 10, 10, 11, //3360
11, 10, 10, 11, 12, 13, 15, 16, 17, 17, 18, 18, 19, 19, 19, 19, //3376
18, 17, 16, 16, 16, 14, 14, 14, 14, 13, 13, 13, 13, 13, 14, 14, //3392
14, 15, 14, 13, 13, 13, 14, 14, 14, 13, 13, 12, 13, 14, 15, 16, //3408
16, 16, 14, 13, 12, 12, 12, 11, 11, 10, 9, 8, 6, 6, 7, 7, //3424
8, 8, 8, 7, 6, 6, 6, 6, 4, 3, 2, 1, 0, -1, -1, -2, //3440
-3, -4, -4, -4, -3, -4, -4, -3, -2, -1, -1, -2, -3, -3, -4, -3, //3456
-4, -4, -5, -6, -7, -6, -5, -5, -5, -5, -5, -5, -5, -5, -5, -4, //3472
-5, -5, -7, -7, -7, -8, -9, -9, -9, -9, -10, -11, -11, -11, -10, -10, //3488
-10, -8, -8, -8, -8, -7, -7, -7, -7, -8, -9, -10, -10, -11, -11, -12, //3504
-13, -15, -15, -15, -16, -16, -14, -14, -14, -13, -13, -13, -13, -12, -12, -12, //3520
-12, -12, -12, -13, -13, -13, -14, -14, -14, -14, -13, -13, -13, -12, -12, -12, //3536
-13, -13, -13, -13, -12, -13, -12, -12, -13, -13, -14, -14, -14, -14, -13, -11, //3552
-11, -10, -10, -10, -10, -9, -7, -6, -6, -6, -6, -7, -8, -9, -9, -9, //3568
-8, -8, -7, -6, -5, -4, -4, -4, -3, -2, -1, 0, 0, 0, 0, -1, //3584
-1, -1, -2, -3, -5, -5, -4, -3, -2, -2, -2, 0, 2, 2, 3, 4, //3600
4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 4, 3, 3, 3, 4, 5, //3616
6, 7, 7, 7, 6, 6, 6, 6, 6, 3, 2, 2, 1, 1, 1, 2, //3632
3, 3, 3, 1, -1, -1, 0, 1, 2, 3, 4, 3, 2, 2, 2, 1, //3648
1, 1, 1, 2, 3, 3, 2, 2, 2, 1, 0, -1, -2, -2, -2, -1, //3664
-1, -1, -1, -1, -1, -1, -1, -1, -2, -1, -1, -1, -1, 0, 0, 0, //3680
0, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, //3696
3, 2, 2, 3, 5, 7, 8, 8, 7, 8, 8, 8, 9, 10, 11, 12, //3712
12, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, //3728
14, 14, 14, 14, 15, 15, 15, 14, 14, 14, 15, 16, 16, 16, 16, 15, //3744
16, 17, 17, 18, 18, 18, 17, 16, 15, 13, 12, 10, 9, 9, 9, 8, //3760
5, 5, 5, 5, 4, 4, 3, 3, 4, 5, 6, 6, 4, 3, 2, 1, //3776
0, -1, -3, -4, -5, -6, -6, -6, -6, -6, -7, -7, -5, -5, -4, -4, //3792
-5, -5, -6, -7, -8, -9, -10, -10, -12, -13, -14, -14, -14, -14, -13, -12, //3808
-11, -10, -11, -11, -11, -10, -10, -11, -12, -12, -13, -13, -12, -12, -12, -12, //3824
-12, -13, -13, -13, -12, -11, -10, -9, -9, -9, -9, -9, -9, -10, -10, -10, //3840
-11, -12, -13, -13, -13, -13, -12, -12, -12, -13, -13, -12, -11, -11, -10, -10, //3856
-10, -10, -10, -10, -11, -11, -11, -10, -10, -9, -8, -7, -6, -6, -6, -6, //3872
-6, -6, -6, -6, -6, -6, -6, -6, -6, -7, -7, -6, -6, -7, -7, -7, //3888
-7, -7, -7, -7, -7, -6, -6, -6, -5, -4, -3, -3, -3, -3, -1, -1, //3904
-2, -3, -4, -4, -5, -4, -3, -2, -1, -1, -2, -2, -2, -2, -2, 0, //3920
1, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, //3936
4, 4, 5, 5, 5, 6, 6, 5, 5, 6, 7, 8, 8, 7, 7, 7, //3952
6, 7, 8, 8, 9, 9, 9, 9, 10, 11, 11, 11, 10, 10, 10, 10, //3968
10, 10, 10, 10, 10, 11, 11, 11, 12, 12, 13, 14, 16, 16, 16, 17, //3984
17, 17, 15, 14, 13, 12, 12, 12, 12, 11, 12, 12, 12, 12, 12, 12, //4000
12, 12, 11, 11, 11, 12, 12, 12, 12, 10, 10, 10, 10, 10, 10, 9, //4016
8, 7, 7, 7, 7, 8, 7, 6, 5, 3, 2, 1, 1, 1, 1, 1, //4032
0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, //4048
-1, -2, -3, -3, -2, -2, -3, -5, -6, -6, -5, -4, -4, -4, -5, -6, //4064
-6, -6, -5, -5, -4, -3, -3, -4, -4, -4, -5, -5, -5, -5, -4, -3, //4080
-3, -2, -2, -3, -3, -2, -2, -1, -1, -1, -2, -2, -2, -2, -2, -3, //4096
-3, -3, -4, -5, -5, -5, -5, -4, -4, -4, -5, -4, -4, -4, -3, -4, //4112
-4, -4, -4, -4, -4, -4, -5, -5, -5, -5, -5, -5, -6, -7, -8, -9, //4128
-9, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -7, //4144
-7, -8, -8, -8, -8, -8, -9, -9, -9, -10, -11, -11, -11, -10, -10, -9, //4160
-9, -9, -8, -8, -8, -9, -10, -11, -11, -10, -8, -8, -6, -6, -5, -5, //4176
-5, -5, -6, -7, -7, -6, -5, -5, -2, -2, -3, -4, -5, -6, -7, -6, //4192
-5, -5, -4, -4, -3, -2, -1, 0, 0, -1, -1, 0, 0, 0, 0, 1, //4208
1, 0, -1, -2, -2, -1, -1, -1, 0, 0, 1, 2, 3, 4, 5, 4, //4224
5, 5, 6, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 4, //4240
4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 6, 6, //4256
5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 8, 9, 8, 8, 7, //4272
7, 6, 6, 6, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 4, 3, //4288
2, 2, 2, 2, 4, 4, 4, 4, 3, 3, 3, 3, 3, 2, 2, 2, //4304
2, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, //4320
2, 3, 4, 4, 5, 5, 5, 4, 3, 2, 1, 1, 1, 1, 1, 1, //4336
2, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, //4352
5, 6, 6, 5, 4, 3, 3, 4, 4, 4, 3, 3, 3, 1, -1, -1, //4368
-2, -3, -4, -5, -5, -6, -7, -9, -11, -12, -13, -14, -14, -14, -14, -14, //4384
-15, -16, -16, -16, -15, -15, -16, -18, -19, -20, -22, -21, -20, -20, -19, -17, //4400
-16, -15, -14, -13, -13, -11, -10, -9, -7, -7, -5, -4, -4, -4, -4, -5, //4416
-6, -7, -7, -7, -7, -7, -8, -8, -9, -9, -9, -6, -4, -4, -4, -4, //4432
-4, -3, -2, -3, -5, -6, -7, -7, -7, -8, -8, -8, -9, -10, -10, -10, //4448
-9, -9, -8, -7, -6, -6, -7, -8, -9, -9, -10, -11, -12, -13, -13, -13, //4464
-12, -12, -12, -10, -10, -9, -8, -5, -3, -2, -2, -1, 0, 1, 1, 1, //4480
1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, //4496
3, 2, 1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, //4512
2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 2, 3, 4, //4528
5, 5, 6, 5, 5, 5, 3, 3, 4, 4, 5, 6, 6, 6, 6, 5, //4544
4, 3, 1, 1, 1, 2, 3, 3, 1, 0, 0, 1, 2, 3, 4, 4, //4560
5, 6, 9, 13, 14, 14, 14, 15, 15, 16, 15, 15, 15, 14, 14, 14, //4576
14, 15, 16, 17, 17, 18, 18, 16, 15, 15, 14, 14, 15, 15, 14, 13, //4592
11, 10, 9, 8, 7, 7, 7, 8, 9, 9, 9, 8, 6, 5, 4, 3, //4608
2, 2, 2, 2, 2, 2, 1, -1, -2, -2, -1, -1, -2, -2, -2, -2, //4624
-3, -3, -4, -5, -5, -5, -5, -4, -4, -3, -3, -2, -2, -1, -1, 0, //4640
1, 2, 2, 2, 2, 2, 2, 1, 1, 0, -1, -1, -1, -1, 1, 2, //4656
2, 2, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0, -1, -1, //4672
-2, -2, -2, -2, -1, -1, -1, 0, 0, 1, 1, 1, 2, 3, 3, 1, //4688
0, 0, 0, 0, -1, -2, -3, -3, -3, -3, -4, -4, -5, -5, -5, -5, //4704
-3, -3, -2, -2, -3, -3, -2, -3, -3, -3, -3, -4, -4, -4, -4, -5, //4720
-5, -5, -5, -5, -5, -5, -6, -5, -4, -3, -2, -2, -2, -5, -6, -6, //4736
-7, -7, -7, -8, -9, -9, -10, -10, -9, -8, -7, -7, -7, -7, -7, -6, //4752
-6, -6, -5, -6, -6, -5, -5, -5, -5, -4, -4, -4, -4, -4, -3, -3, //4768
-2, -1, -1, -1, -1, -2, -2, -3, -3, -2, -3, -2, -1, 0, 1, 3, //4784
6, 7, 8, 9, 10, 11, 11, 11, 11, 11, 11, 9, 7, 6, 4, 2, //4800
0, -3, -4, -6, -7, -8, -9, -9, -10, -11, -12, -12, -12, -12, -12, -13, //4816
-14, -14, -13, -12, -11, -10, -11, -12, -12, -11, -10, -10, -11, -13, -14, -14, //4832
-14, -12, -10, -10, -10, -11, -11, -10, -9, -9, -8, -8, -8, -6, -6, -7, //4848
-8, -9, -10, -10, -9, -8, -7, -6, -5, -2, -1, -1, -1, -1, 0, 0, //4864
0, -1, -2, -2, -2, -2, -1, -1, 0, 0, -1, -1, -1, 0, 1, 2, //4880
2, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 0, 0, 1, 1, 2, //4896
3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, //4912
4, 4, 4, 4, 5, 6, 6, 7, 7, 8, 8, 8, 8, 7, 6, 6, //4928
5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 5, 5, 6, 6, 7, 7, //4944
5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 2, 1, 0, 0, //4960
0, 1, 1, 2, 2, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 0, //4976
-1, -2, -2, -2, -2, -2, -2, -2, -1, 0, 2, 2, 1, 0, -1, -1, //4992
-1, -1, -2, -3, -4, -6, -7, -7, -7, -7, -7, -8, -9, -9, -8, -8, //5008
-8, -6, -5, -4, -3, -2, -2, -2, -3, -3, -3, -2, -1, -1, -1, 0, //5024
1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 0, -1, 0, 0, 1, 1, //5040
1, 2, 2, 3, 3, 4, 4, 4, 6, 8, 9, 9, 9, 9, 8, 8, //5056
8, 9, 9, 9, 9, 9, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, //5072
5, 4, 4, 3, 1, 1, -1, -2, -2, -1, -1, -1, -2, -3, -3, -2, //5088
-2, -1, 0, 0, 0, 0, 1, 2, 3, 2, 2, 2, 2, 4, 5, 6, //5104
6, 6, 6, 7, 8, 9, 9, 9, 11, 11, 12, 12, 12, 11, 11, 10, //5120
10, 10, 10, 8, 7, 6, 6, 5, 5, 5, 4, 3, 2, 1, -1, -1, //5136
-2, -3, -4, -6, -9, -10, -12, -13, -14, -16, -18, -20, -22, -25, -26, -27, //5152
-27, -27, -27, -26, -26, -27, -27, -27, -27, -27, -26, -26, -25, -24, -24, -24, //5168
-22, -21, -21, -21, -20, -20, -20, -19, -17, -16, -16, -15, -15, -14, -14, -14, //5184
-14, -14, -14, -14, -14, -12, -10, -7, -7, -7, -7, -8, -7, -6, -5, -4, //5200
-3, -3, -4, -4, -4, -5, -5, -6, -8, -9, -10, -11, -11, -10, -8, -6, //5216
-5, -2, 0, 3, 5, 7, 10, 13, 15, 19, 21, 22, 23, 24, 26, 27, //5232
29, 29, 30, 30, 31, 32, 33, 34, 35, 34, 33, 32, 30, 29, 27, 26, //5248
24, 23, 21, 20, 18, 15, 13, 11, 9, 8, 8, 7, 6, 5, 4, 4, //5264
4, 4, 3, 3, 2, 1, 0, -1, -2, -4, -4, -4, -5, -4, -4, -3, //5280
-3, -2, -1, 0, 0, 0, 0, -1, 0, -1, -1, -1, -3, -2, -1, -1, //5296
-1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, -1, -1, //5312
-1, -1, -1, -3, -4, -5, -6, -6, -6, -5, -5, -5, -5, -5, -3, -2, //5328
-2, -1, -1, 0, 0, 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 0, //5344
0, 0, 0, 0, 0, -1, -2, -2, -2, -2, -2, -3, -4, -5, -6, -6, //5360
-7, -7, -8, -8, -9, -11, -11, -12, -11, -11, -10, -8, -7, -8, -9, -10, //5376
-11, -10, -10, -9, -9, -9, -10, -10, -10, -10, -9, -9, -9, -8, -7, -6, //5392
-5, -4, -2, -1, -1, -1, -1, -2, -2, -2, -1, 0, -1, -1, -2, -3, //5408
-3, -2, -2, 1, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 3, //5424
2, 2, 1, 1, 1, 1, 1, 1, 0, -1, -1, 0, 0, 1, 2, 2, //5440
2, 1, 1, 1, 1, 0, 0, 1, 1, 2, 3, 3, 3, 2, 1, 1, //5456
1, 1, 2, 3, 4, 5, 7, 8, 8, 7, 6, 6, 4, 5, 5, 5, //5472
5, 4, 4, 4, 4, 3, 3, 3, 3, 3, 4, 5, 6, 7, 7, 7, //5488
6, 5, 3, 2, 2, 1, 1, 1, 2, 2, 3, 3, 2, 2, 3, 4, //5504
5, 6, 6, 6, 6, 5, 4, 4, 3, 3, 3, 2, 2, 1, 1, 1, //5520
2, 3, 4, 4, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0, 0, //5536
0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 1, 1, 0, 0, -1, -1, //5552
0, 0, 0, -1, -2, -2, -2, -2, -1, 1, 1, 1, 3, 3, 2, 2, //5568
2, 1, 1, 1, 1, 1, 1, 0, -1, -1, -1, -1, -1, 0, 1, 1, //5584
2, 2, 1, 0, -2, -2, -2, -2, -2, -1, -2, -2, -2, -3, -3, -3, //5600
-2, -2, -3, -3, -4, -4, -4, -5, -5, -5, -4, -4, -3, -2, -2, -1, //5616
-1, -1, -1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, //5632
4, 4, 5, 6, 7, 7, 6, 5, 5, 5, 5, 5, 4, 4, 3, 3, //5648
3, 3, 3, 4, 4, 4, 4, 4, 4, 3, 3, 2, 3, 3, 2, 1, //5664
1, 1, 1, 1, 1, 1, 0, 0, -1, -1, -1, -2, -3, -4, -5, -7, //5680
-8, -9, -10, -12, -14, -14, -14, -14, -14, -14, -14, -13, -12, -11, -11, -10, //5696
-9, -9, -9, -9, -9, -10, -10, -11, -11, -11, -10, -10, -9, -8, -7, -6, //5712
-5, -5, -5, -5, -6, -6, -7, -8, -9, -10, -12, -13, -14, -15, -16, -16, //5728
-15, -14, -14, -14, -13, -13, -13, -12, -13, -14, -15, -17, -19, -20, -21, -21, //5744
-22, -22, -22, -22, -20, -20, -20, -20, -20, -20, -18, -17, -14, -13, -13, -14, //5760
-15, -16, -18, -19, -19, -18, -17, -16, -14, -14, -14, -12, -12, -10, -10, -10, //5776
-10, -10, -10, -7, -6, -5, -6, -7, -7, -7, -5, -4, -3, -3, -2, -2, //5792
-2, -1, -1, -1, 0, 1, 2, 3, 3, 4, 5, 5, 6, 7, 9, 10, //5808
11, 12, 14, 15, 16, 16, 16, 16, 16, 17, 19, 21, 22, 22, 22, 22, //5824
22, 22, 22, 22, 22, 22, 22, 21, 20, 20, 20, 19, 19, 19, 19, 19, //5840
19, 18, 18, 19, 19, 19, 19, 19, 18, 18, 18, 17, 14, 13, 12, 11, //5856
11, 11, 10, 9, 9, 9, 9, 9, 12, 12, 12, 12, 11, 8, 8, 7, //5872
7, 7, 5, 4, 2, 2, 2, 2, 3, 4, 5, 6, 6, 6, 6, 5, //5888
4, 4, 3, 2, 1, 0, 0, -1, -1, -2, -2, -2, -1, 0, 1, 1, //5904
2, 2, 2, 2, 2, 2, 1, 0, -1, -2, -3, -3, -3, -2, -2, -3, //5920
-3, -3, -3, -2, -2, -2, 0, 0, 0, -1, -1, -2, -3, -4, -4, -2, //5936
0, 2, 2, 2, 2, 1, 1, 2, 4, 5, 5, 5, 4, 4, 4, 4, //5952
4, 4, 6, 5, 5, 5, 4, 4, 4, 5, 6, 6, 6, 5, 5, 5, //5968
5, 6, 7, 7, 8, 8, 7, 7, 5, 3, 2, 2, 1, 1, 0, 0, //5984
-1, -2, -2, -2, -2, -3, -3, -4, -4, -3, -3, -2, -1, -1, -1, -1, //6000
-1, -1, 0, 1, 2, 2, 2, 1, 0, -1, -2, -2, -2, -1, -1, -1, //6016
-1, -1, -2, -2, -2, -3, -3, -3, -3, -2, -1, 0, 0, 0, 0, 0, //6032
0, 0, 1, 1, 2, 3, 3, 2, 1, 1, 2, 2, 1, 1, 0, 0, //6048
0, 1, 2, 4, 4, 3, 3, 3, 1, 0, -1, -2, -2, -3, -3, -3, //6064
-3, -2, -2, -2, -1, -1, -1, -2, -2, -1, 0, 0, 0, 0, -1, -2, //6080
-4, -5, -6, -7, -6, -5, -4, -2, -2, -2, -2, -3, -3, -3, -2, -2, //6096
-1, -2, -2, -2, -2, -2, -2, -2, -3, -4, -4, -4, -4, -4, -4, -3, //6112
-2, -1, -1, 0, 0, -1, -2, -3, -3, -3, -4, -4, -5, -5, -6, -6, //6128
-7, -6, -6, -6, -5, -5, -5, -6, -6, -7, -7, -7, -8, -9, -10, -11, //6144
-11, -11, -11, -11, -11, -11, -11, -11, -11, -12, -12, -12, -12, -12, -12, -12, //6160
-12, -11, -11, -8, -7, -6, -3, -2, -2, -2, -1, -1, 0, 0, 0, 0, //6176
0, 1, 2, 2, 5, 5, 5, 5, 6, 6, 7, 8, 10, 10, 10, 10, //6192
9, 9, 9, 9, 10, 11, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14, //6208
12, 11, 9, 8, 7, 6, 5, 4, 3, 3, 2, 2, 1, 0, 0, 0, //6224
1, 1, 0, -2, -4, -5, -7, -8, -10, -11, -12, -13, -14, -14, -14, -14, //6240
-15, -15, -16, -17, -17, -17, -18, -18, -19, -19, -19, -19, -19, -19, -19, -19, //6256
-19, -20, -20, -21, -21, -22, -22, -20, -19, -19, -18, -16, -16, -14, -12, -11, //6272
-10, -9, -8, -8, -6, -6, -6, -6, -6, -6, -4, -3, -2, -2, -2, -1, //6288
-1, 1, 2, 3, 3, 2, 2, 2, 2, 2, 3, 5, 6, 6, 5, 5, //6304
5, 4, 4, 5, 7, 8, 8, 7, 7, 6, 6, 6, 5, 5, 4, 4, //6320
4, 1, 0, 0, -1, -2, -3, -3, -2, -2, -2, -2, -2, -2, -3, -3, //6336
-3, -2, -1, -1, -2, -3, -4, -5, -5, -4, -4, -3, -3, -3, -2, -2, //6352
-3, -3, -3, -5, -5, -4, -4, -3, -3, -3, -3, -3, -2, -2, -2, -2, //6368
-2, -2, -2, -2, -1, 1, 1, 1, 1, 1, 2, 2, 3, 5, 6, 7, //6384
9, 9, 10, 11, 12, 13, 13, 12, 12, 13, 13, 14, 15, 16, 16, 14, //6400
14, 13, 13, 12, 12, 12, 10, 9, 8, 7, 6, 6, 4, 4, 3, 3, //6416
2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2, 2, 0, 0, 0, 0, //6432
0, 0, 0, -1, -1, -1, -2, -3, -3, -4, -4, -4, -4, -4, -4, -4, //6448
-4, -4, -4, -4, -4, -4, -4, -4, -4, -2, -2, -2, -2, -1, 0, 0, //6464
0, -1, -2, -3, -3, -3, -3, -3, -2, -2, -2, -2, -1, -1, -1, 1, //6480
1, 2, 3, 4, 3, 3, 2, 2, 2, 2, 2, 1, 0, 0, -1, -2, //6496
-3, -4, -4, -4, -4, -3, -3, -4, -4, -4, -4, -4, -5, -6, -6, -5, //6512
-4, -4, -3, -3, -3, -4, -4, -4, -3, -3, -2, -2, -2, -3, -3, -3, //6528
-3, -3, -4, -4, -5, -5, -5, -5, -5, -4, -4, -3, -3, -2, -3, -3, //6544
-3, -2, -2, -2, -1, -1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, //6560
1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 4, 4, //6576
4, 3, 2, 1, 1, 1, 1, 1, 2, 3, 4, 5, 5, 5, 5, 4, //6592
3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 1, 1, 2, 2, //6608
2, 2, 2, 0, -1, -1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, //6624
-2, -3, -3, -4, -3, -3, -3, -3, -3, -3, -3, -3, -3, -2, -2, -2, //6640
-2, -1, -1, 0, 0, 0, -1, -1, -2, -2, -3, -3, -3, -3, -3, -4, //6656
-4, -5, -5, -6, -6, -5, -6, -7, -8, -8, -8, -8, -7, -8, -8, -8, //6672
-9, -9, -10, -11, -11, -11, -10, -9, -9, -9, -9, -10, -10, -10, -10, -10, //6688
-10, -9, -9, -8, -7, -7, -6, -6, -5, -4, -3, -2, -2, -1, -1, -1, //6704
0, 0, 0, 0, 0, -1, -1, -1, -3, -3, -4, -5, -5, -5, -4, -4, //6720
-3, -3, -3, -3, -3, -2, -2, -2, -2, 0, 1, 2, 2, 2, 2, 2, //6736
2, 3, 3, 4, 4, 4, 4, 3, 3, 3, 2, 1, 0, -1, -2, -2, //6752
-2, -3, -3, -4, -4, -4, -4, -3, -3, -2, -2, -1, -1, -1, -2, -2, //6768
-2, -2, -2, -3, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, //6784
-4, -4, -4, -4, -4, -4, -5, -5, -5, -5, -5, -4, -4, -3, -3, -3, //6800
-2, -2, -2, -1, 0, 0, 1, 1, 1, 2, 1, 1, 0, 0, 0, 0, //6816
0, -1, -2, -2, -2, -2, -2, -1, -1, -1, -2, -2, -3, -4, -4, -4, //6832
-4, -4, -4, -4, -4, -5, -5, -6, -6, -6, -5, -6, -6, -6, -6, -6, //6848
-6, -6, -6, -6, -5, -5, -4, -4, -3, -3, -3, -1, -1, -1, -1, -1, //6864
-1, -1, -1, 0, 1, 3, 4, 4, 5, 6, 7, 7, 9, 10, 10, 11, //6880
11, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 15, 15, 15, 15, 15, //6896
15, 15, 13, 12, 12, 11, 10, 10, 9, 9, 8, 8, 9, 9, 9, 9, //6912
9, 10, 11, 11, 12, 13, 13, 13, 13, 12, 11, 10, 9, 8, 7, 7, //6928
7, 6, 6, 6, 5, 5, 4, 4, 4, 4, 3, 2, 2, 2, 1, 1, //6944
1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, //6960
1, 0, -1, -1, -2, -2, -1, -2, -2, -3, -3, -3, -3, -2, -2, -2, //6976
-2, -2, -2, -2, -2, -2, -2, -1, -1, -1, -1, -1, -1, 1, 1, 1, //6992
2, 1, 1, 0, -1, -1, -2, -2, -2, -2, -2, -3, -3, -4, -4, -4, //7008
-3, -3, -2, -2, -2, -2, -2, -3, -3, -3, -4, -4, -4, -4, -5, -4, //7024
-5, -6, -6, -7, -7, -7, -7, -7, -6, -6, -7, -7, -6, -5, -5, -5, //7040
-5, -4, -4, -4, -4, -4, -4, -4, -4, -5, -5, -4, -4, -5, -5, -4, //7056
-4, -3, -3, -3, -3, -2, -2, -1, 0, 0, 1, 2, 3, 3, 3, 3, //7072
3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, //7088
5, 5, 4, 4, 4, 3, 2, 1, 1, 1, 1, 1, 2, 2, 2, 3, //7104
4, 5, 6, 7, 8, 8, 8, 8, 8, 6, 5, 4, 4, 4, 2, 1, //7120
0, -1, -2, -2, -1, -1, -2, -1, -1, -1, -2, -1, -1, -2, -3, -3, //7136
-1, -2, -2, -1, -1, -1, 0, 0, 0, 0, 0, 0, -2, -2, -2, -3, //7152
-4, -4, -5, -6, -6, -6, -6, -7, -7, -7, -8, -9, -9, -8, -8, -9, //7168
-9, -8, -8, -7, -6, -5, -5, -4, -3, -4, -4, -4, -4, -7, -7, -7, //7184
-7, -8, -8, -7, -7, -7, -6, -6, -6, -7, -7, -7, -6, -6, -7, -8, //7200
-8, -8, -9, -9, -10, -11, -11, -11, -11, -10, -11, -11, -10, -10, -10, -8, //7216
-8, -8, -7, -8, -8, -8, -10, -11, -11, -11, -11, -12, -11, -11, -11, -11, //7232
-9, -8, -8, -8, -8, -8, -8, -7, -8, -10, -11, -11, -11, -11, -10, -10, //7248
-11, -10, -9, -9, -9, -9, -9, -9, -8, -7, -7, -8, -8, -9, -8, -7, //7264
-7, -7, -7, -7, -6, -6, -5, -5, -4, -3, -3, -3, -3, -1, -2, -1, //7280
1, 1, 2, 2, 3, 3, 3, 4, 4, 3, 2, 3, 4, 4, 6, 7, //7296
7, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 6, 5, 5, 6, 5, //7312
4, 4, 5, 5, 4, 4, 5, 5, 4, 4, 5, 6, 6, 7, 8, 9, //7328
10, 10, 11, 11, 11, 11, 11, 10, 9, 10, 10, 9, 10, 11, 11, 10, //7344
10, 9, 9, 8, 8, 8, 7, 8, 9, 8, 9, 9, 8, 8, 8, 8, //7360
8, 9, 8, 8, 9, 10, 9, 7, 7, 6, 6, 6, 6, 6, 6, 5, //7376
5, 5, 6, 5, 5, 5, 5, 5, 5, 4, 4, 5, 6, 6, 5, 5, //7392
5, 4, 3, 3, 3, 2, 1, 0, 0, 1, 1, 0, 0, 0, -1, -1, //7408
-1, -1, -2, -2, -1, -1, 0, 1, 0, 0, 2, 2, 2, 3, 3, 3, //7424
4, 5, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, //7440
1, 1, 1, 1, 2, 2, 1, 0, 2, 3, 2, 2, 4, 3, 3, 4, //7456
4, 2, 1, 2, 1, 0, 0, 0, -1, -2, -2, -1, -1, -3, -2, -3, //7472
-3, -3, -3, -3, -4, -4, -4, -5, -5, -5, -5, -5, -4, -4, -4, -5, //7488
-5, -4, -4, -4, -4, -4, -5, -5, -4, -3, -3, -4, -5, -5, -5, -5, //7504
-6, -5, -5, -6, -7, -6, -6, -6, -5, -4, -5, -5, -4, -5, -5, -6, //7520
-5, -5, -6, -7, -8, -8, -7, -7, -7, -7, -7, -7, -7, -6, -5, -5, //7536
-5, -5, -5, -5, -6, -6, -6, -7, -5, -5, -5, -6, -6, -7, -7, -6, //7552
-6, -6, -7, -6, -5, -4, -3, -2, -3, -2, -2, -1, -1, 0, 0, 0, //7568
0, 1, 1, 0, 0, 0, -1, 0, 2, 2, 3, 4, 5, 5, 4, 3, //7584
1, -1, -1, -1, -1, -1, 0, 0, -2, -2, -1, -2, -3, -3, -2, -3, //7600
-4, -4, -3, -3, -2, 0, 1, 2, 2, 2, 0, 1, 0, -1, -2, -3, //7616
-3, -3, -4, -3, -3, -3, -3, -3, -2, -1, 0, 0, 0, -1, -1, -1, //7632
-2, -2, -2, -1, -1, -2, -2, 0, 0, 0, 0, 0, 0, 0, 0, -1, //7648
-2, -3, -2, -2, -3, -3, -3, -4, -7, -7, -8, -10, -10, -10, -9, -9, //7664
-9, -7, -7, -7, -7, -8, -8, -8, -7, -6, -6, -5, -4, -4, -4, -3, //7680
-2, -2, -3, -3, -1, -1, -3, -3, -2, -3, -3, -3, -3, -4, -5, -5, //7696
-6, -6, -6, -6, -6, -4, -3, -2, -2, -3, -3, -3, -3, -2, -1, 0, //7712
1, 2, 3, 3, 2, 2, 4, 3, 3, 4, 4, 3, 2, 2, 2, 1, //7728
2, 1, 0, 1, 2, 2, 2, 2, 3, 2, 0, -1, -1, -2, -3, -3, //7744
-2, -2, -1, 0, 0, -1, 0, 0, -1, -2, -1, 0, -1, -2, 0, 0, //7760
0, 1, 3, 4, 4, 5, 4, 3, 3, 2, 1, 1, 1, 2, 2, 2, //7776
3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 9, 8, 9, 10, 10, //7792
10, 11, 11, 10, 10, 11, 11, 10, 10, 10, 10, 8, 8, 8, 8, 7, //7808
7, 6, 6, 6, 5, 4, 4, 4, 3, 2, 3, 3, 3, 2, 2, 2, //7824
0, 0, -1, -1, 0, 0, 0, 0, 0, 0, -1, -2, -2, -2, -4, -5, //7840
-6, -6, -7, -7, -6, -6, -5, -5, -6, -6, -6, -7, -8, -8, -9, -9, //7856
-8, -7, -6, -5, -4, -5, -5, -4, -4, -5, -5, -4, -5, -6, -8, -8, //7872
-9, -10, -10, -8, -9, -11, -11, -11, -12, -12, -11, -11, -10, -9, -8, -8, //7888
-8, -8, -7, -7, -7, -5, -4, -5, -5, -3, -2, -3, -2, -1, -1, -1, //7904
-1, 1, 1, 1, 2, 2, 2, 3, 4, 3, 3, 4, 4, 3, 4, 4, //7920
4, 4, 4, 4, 4, 5, 6, 6, 7, 7, 7, 6, 6, 6, 7, 7, //7936
7, 8, 8, 8, 8, 8, 9, 10, 9, 9, 10, 10, 9, 9, 8, 7, //7952
7, 7, 7, 5, 5, 5, 5, 4, 4, 3, 2, 2, 3, 3, 3, 3, //7968
5, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 6, 6, 7, 7, 8, //7984
7, 7, 6, 5, 4, 4, 3, 2, 2, 2, 1, 1, 1, 1, 0, 0, //8000
1, 1, 1, 2, 2, 0, 0, 0, -1, -1, -1, -1, 1, 2, 3, 3, //8016
3, 3, 2, 2, 1, 0, 0, -1, -2, -3, -4, -4, -4, -2, -2, -2, //8032
-2, -3, -3, -3, -3, -4, -5, -5, -5, -7, -6, -6, -7, -7, -5, -4, //8048
-5, -5, -3, -4, -4, -3, -2, -3, -4, -4, -5, -4, -4, -4, -2, -2, //8064
0, -1, -1, -2, -2, -3, -3, -3, -3, -3, -2, -2, -1, 0, 0, 0, //8080
-2, -2, -2, -2, -2, -2, -2, -2, -1, 0, -1, -1, -1, -2, -2, -2, //8096
-2, -3, -3, -3, -4, -4, -4, -4, -5, -6, -5, -5, -6, -6, -7, -8, //8112
-9, -9, -9, -10, -10, -9, -10, -10, -10, -10, -11, -11, -10, -11, -13, -13, //8128
-12, -13, -14, -13, -13, -13, -12, -12, -14, -13, -14, -15, -16, -16, -16, -17, //8144
-17, -16, -16, -16, -16, -15, -16, -16, -15, -15, -14, -12, -11, -11, -11, -10, //8160
-10, -9, -8, -8, -8, -6, -6, -6, -6, -5, -5, -5, -4, -3, -3, -4, //8176
-5, -4, -4, -4, -3, -2, -2, -2, 0, 0, -1, -1, -1, 0, 0, 1, //8192
1, 1, 2, 2, 3, 4, 5, 5, 4, 3, 3, 2, 3, 5, 5, 4, //8208
5, 6, 6, 6, 7, 7, 7, 7, 7, 6, 6, 6, 6, 7, 8, 8, //8224
8, 8, 8, 8, 8, 10, 11, 10, 10, 9, 9, 8, 5, 6, 6, 6, //8240
7, 7, 8, 9, 9, 10, 10, 10, 10, 9, 8, 7, 7, 7, 7, 7, //8256
6, 5, 5, 5, 6, 6, 6, 5, 4, 4, 5, 5, 5, 5, 5, 5, //8272
5, 4, 3, 4, 4, 4, 4, 6, 6, 4, 5, 6, 5, 4, 5, 5, //8288
5, 6, 6, 4, 3, 3, 2, -1, -1, -1, -1, -1, -1, 0, 0, 1, //8304
1, 1, 2, 2, 2, 2, 1, 1, 1, 2, 2, 3, 4, 4, 4, 5, //8320
5, 5, 4, 4, 3, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, //8336
3, 3, 3, 1, 1, -1, -2, -2, -1, -1, -1, 0, 1, 0, 0, 0, //8352
0, -2, -3, -4, -5, -7, -7, -7, -7, -6, -6, -6, -6, -6, -6, -6, //8368
-7, -7, -7, -8, -8, -7, -7, -7, -6, -5, -5, -7, -7, -7, -8, -8, //8384
-6, -6, -6, -6, -6, -6, -6, -6, -5, -4, -3, -2, -1, 0, 0, 0, //8400
0, 0, -1, -2, -2, -3, -4, -3, -2, -2, -1, 0, 0, -2, -1, -1, //8416
-2, -2, -2, -3, -3, -1, 0, 0, 0, 2, 1, 1, 1, 2, 2, 2, //8432
3, 4, 4, 4, 5, 5, 4, 5, 6, 7, 6, 6, 6, 5, 4, 4, //8448
4, 3, 3, 3, 3, 1, 1, 1, 1, 2, 3, 3, 2, 2, 2, 1, //8464
1, 1, 1, 2, 2, 3, 3, 3, 3, 2, 1, 1, 0, 0, 0, 0, //8480
0, -2, -2, -2, -2, -2, -2, -4, -5, -5, -5, -5, -5, -5, -5, -6, //8496
-6, -5, -3, -3, -2, -1, -2, -2, -1, -1, -1, 0, 0, 0, 1, 1, //8512
0, 0, 1, 2, 3, 4, 4, 4, 3, 3, 3, 3, 3, 3, 0, 1, //8528
2, 3, 2, 2, 5, 4, 4, 5, 5, 4, 4, 5, 5, 5, 5, 4, //8544
3, 3, 3, 4, 4, 3, 3, 2, 1, 1, 1, 3, 3, 2, 1, -1, //8560
-2, -2, -2, -3, -3, -2, -2, -2, -2, -3, -3, -4, -3, -3, -2, -2, //8576
-1, -2, -2, -1, 0, 0, 0, 2, 3, 3, 2, 2, 2, 2, 3, 3, //8592
2, 2, 1, 0, 0, 1, 0, 0, 1, 1, 2, 2, 3, 3, 1, 0, //8608
0, -1, -1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, //8624
3, 2, 1, -1, -2, -3, -3, -4, -3, -3, -5, -5, -5, -5, -4, -3, //8640
-2, -2, -3, -3, -4, -4, -4, -4, -4, -3, -3, -2, -2, -2, -3, -3, //8656
-3, -3, -3, -3, -3, -3, -3, -1, -1, 0, 0, 0, -1, -1, -1, -1, //8672
-2, -2, -3, -2, -2, -1, -1, -1, -1, -2, -2, -2, -2, 0, 1, 2, //8688
3, 3, 1, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, -2, -3, -4, //8704
-4, -3, -3, -3, -3, -4, -5, -5, -5, -6, -6, -6, -6, -7, -7, -8, //8720
-9, -10, -10, -9, -9, -9, -9, -8, -7, -6, -5, -4, -4, -4, -5, -5, //8736
-5, -6, -7, -7, -7, -8, -10, -10, -9, -8, -8, -7, -7, -6, -5, -4, //8752
-4, -1, 0, 0, -1, -1, -1, -2, -4, -5, -5, -6, -6, -5, -5, -5, //8768
-6, -6, -6, -5, -4, -4, -4, -4, -4, -4, -5, -6, -6, -6, -7, -8, //8784
-7, -8, -8, -8, -8, -8, -8, -8, -8, -8, -7, -6, -6, -7, -8, -8, //8800
-8, -7, -7, -7, -6, -5, -4, -3, -3, -3, -2, -1, -2, -2, -2, -4, //8816
-4, -3, -2, -1, -1, -1, -2, -2, -2, -2, -3, -3, -2, -1, 1, 2, //8832
3, 2, 1, 1, 1, 2, 2, 3, 4, 5, 6, 6, 6, 6, 7, 7, //8848
7, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 4, 5, 6, 7, //8864
7, 8, 8, 8, 8, 9, 10, 10, 9, 9, 9, 9, 9, 9, 9, 9, //8880
9, 9, 10, 11, 11, 10, 10, 11, 12, 13, 13, 14, 14, 14, 11, 11, //8896
11, 11, 11, 9, 8, 7, 7, 8, 8, 10, 11, 12, 12, 13, 13, 13, //8912
13, 13, 12, 10, 10, 7, 6, 6, 6, 4, 1, 0, 0, 0, 1, 2, //8928
1, 1, 0, -1, -1, 0, -1, -2, -3, -3, -3, -3, -5, -5, -5, -6, //8944
-7, -7, -8, -9, -10, -11, -11, -9, -8, -7, -6, -6, -6, -7, -7, -7, //8960
-6, -6, -7, -9, -11, -12, -12, -12, -11, -11, -12, -13, -13, -12, -11, -10, //8976
-9, -9, -9, -9, -8, -9, -9, -9, -9, -9, -9, -10, -9, -9, -11, -12, //8992
-13, -13, -13, -13, -12, -11, -11, -11, -11, -8, -6, -5, -5, -6, -6, -7, //9008
-7, -7, -6, -6, -6, -6, -5, -3, -3, -3, -3, -3, -2, -2, -1, 1, //9024
2, 3, 3, 3, 3, 4, 4, 5, 6, 6, 6, 5, 4, 4, 4, 4, //9040
5, 7, 6, 6, 5, 4, 4, 4, 4, 4, 5, 6, 6, 5, 4, 4, //9056
4, 5, 5, 4, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, //9072
6, 6, 5, 7, 7, 8, 8, 8, 8, 9, 8, 7, 6, 6, 7, 8, //9088
9, 9, 9, 9, 9, 9, 8, 7, 7, 7, 8, 9, 9, 9, 9, 8, //9104
7, 7, 7, 8, 9, 9, 8, 7, 7, 8, 9, 10, 11, 11, 11, 10, //9120
7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 7, 8, 7, 6, 5, 3, //9136
2, 2, 4, 6, 6, 6, 6, 2, 1, 1, 1, 1, 0, 0, -1, -3, //9152
-4, -4, -4, -4, -5, -6, -7, -8, -10, -11, -11, -10, -9, -9, -10, -11, //9168
-11, -11, -11, -11, -11, -11, -11, -11, -11, -9, -9, -9, -10, -10, -9, -8, //9184
-7, -6, -6, -6, -6, -7, -7, -6, -6, -7, -8, -9, -9, -10, -10, -10, //9200
-9, -8, -8, -8, -8, -7, -5, -3, -3, -3, -4, -4, -5, -6, -6, -6, //9216
-6, -6, -7, -8, -9, -9, -6, -5, -4, -4, -4, -5, -4, -2, -1, -1, //9232
-2, -3, -4, -4, -4, -4, -4, -5, -5, -5, -5, -4, -4, -2, -1, 0, //9248
-1, -1, -2, -1, 1, 1, 0, -1, -2, -3, -2, -1, 1, 3, 3, 3, //9264
3, 2, 2, 2, 1, 2, 3, 4, 5, 5, 4, 4, 3, 3, 3, 3, //9280
4, 4, 5, 5, 4, 4, 3, 2, 1, 1, 2, 2, 3, 4, 4, 5, //9296
7, 9, 11, 12, 14, 15, 14, 13, 12, 12, 13, 14, 13, 12, 11, 11, //9312
11, 11, 11, 10, 9, 9, 9, 9, 9, 8, 7, 5, 1, -2, -4, -5, //9328
-7, -9, -10, -9, -9, -10, -11, -14, -15, -15, -15, -13, -12, -12, -11, -11, //9344
-11, -11, -11, -12, -13, -14, -15, -17, -16, -15, -14, -12, -11, -11, -11, -12, //9360
-12, -10, -10, -11, -13, -14, -15, -15, -14, -14, -14, -14, -14, -13, -11, -10, //9376
-11, -11, -9, -9, -9, -8, -7, -6, -4, -3, -3, -3, -2, 0, 1, 1, //9392
2, 2, 3, 4, 5, 7, 9, 9, 8, 7, 6, 7, 7, 6, 5, 4, //9408
3, 3, 1, 0, -1, -2, -2, -2, -2, -1, -1, -1, -1, 1, 2, 3, //9424
5, 6, 6, 7, 8, 9, 11, 11, 12, 12, 13, 15, 15, 16, 16, 16, //9440
15, 15, 17, 17, 18, 18, 17, 17, 15, 15, 15, 15, 15, 14, 12, 10, //9456
8, 7, 5, 4, 3, 3, 2, 2, 2, 2, 1, 1, 1, -1, -3, -4, //9472
-6, -8, -9, -10, -12, -14, -16, -17, -18, -20, -18, -18, -18, -19, -21, -21, //9488
-22, -23, -24, -24, -24, -24, -25, -25, -24, -23, -24, -24, -24, -23, -21, -20, //9504
-19, -16, -15, -15, -15, -14, -11, -9, -8, -7, -7, -8, -7, -7, -7, -6, //9520
-4, -3, -2, -2, -1, 1, 3, 4, 5, 5, 4, 3, 3, 5, 7, 8, //9536
7, 6, 6, 6, 5, 5, 6, 8, 8, 7, 6, 6, 7, 7, 5, 5, //9552
6, 7, 7, 6, 6, 6, 7, 7, 7, 8, 9, 9, 10, 10, 11, 13, //9568
13, 13, 12, 10, 8, 8, 9, 10, 11, 14, 14, 13, 12, 9, 9, 9, //9584
10, 10, 10, 10, 8, 5, 4, 5, 6, 7, 8, 8, 8, 8, 8, 9, //9600
10, 10, 10, 10, 9, 8, 7, 6, 5, 4, 2, 0, -1, -1, -2, -2, //9616
-1, 2, 3, 2, 1, -2, -3, -4, -3, -1, 0, 1, 1, 1, 1, 1, //9632
0, 0, 1, 5, 6, 7, 7, 8, 9, 10, 9, 8, 6, 6, 7, 6, //9648
5, 4, 1, -1, -3, -1, 1, 2, 2, 0, 0, 1, 4, 6, 8, 7, //9664
5, 4, 4, 5, 7, 6, 5, 4, 3, 3, 6, 7, 9, 9, 8, 5, //9680
3, 1, 1, 0, -1, -2, -4, -5, -6, -6, -6, -8, -12, -16, -20, -21, //9696
-22, -22, -23, -23, -24, -25, -26, -25, -23, -22, -22, -23, -23, -23, -22, -21, //9712
-21, -20, -18, -18, -18, -18, -16, -14, -15, -17, -18, -19, -20, -21, -21, -20, //9728
-19, -18, -18, -19, -20, -20, -21, -21, -21, -20, -20, -21, -22, -25, -25, -24, //9744
-23, -23, -24, -24, -23, -22, -19, -17, -16, -18, -20, -21, -21, -20, -19, -19, //9760
-19, -19, -19, -19, -18, -19, -19, -19, -19, -18, -16, -15, -14, -13, -13, -14, //9776
-13, -12, -10, -7, -6, -6, -3, -2, -1, 0, 1, 5, 7, 7, 7, 8, //9792
9, 10, 11, 13, 14, 15, 17, 15, 14, 13, 14, 14, 15, 16, 16, 16, //9808
16, 16, 19, 20, 22, 22, 22, 23, 22, 22, 21, 20, 20, 19, 19, 17, //9824
17, 18, 18, 18, 19, 19, 19, 19, 19, 18, 17, 16, 14, 14, 12, 12, //9840
12, 12, 12, 11, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 13, //9856
13, 12, 11, 11, 12, 12, 13, 13, 11, 12, 12, 12, 13, 13, 13, 13, //9872
11, 11, 11, 12, 12, 11, 11, 10, 9, 8, 6, 4, 3, 1, 0, -1, //9888
-2, -2, -3, -2, -2, -1, -1, -3, -4, -5, -5, -5, -8, -9, -10, -10, //9904
-10, -11, -12, -13, -14, -15, -15, -14, -10, -9, -9, -10, -11, -13, -14, -13, //9920
-12, -10, -9, -9, -8, -8, -8, -8, -8, -8, -8, -9, -9, -8, -7, -5, //9936
-4, -5, -6, -6, -4, -3, -2, -1, -1, -1, -3, -3, -2, -1, 0, 0, //9952
-1, -1, -1, 0, 1, 2, 2, 1, 0, -1, 0, 2, 3, 3, 3, 3, //9968
1, 0, -1, -1, 0, 1, 2, 3, 3, 2, 1, 0, 0, 2, 5, 5, //9984
4, 2, 2, 2, 3, 4, 5, 5, 4, 2, 0, 0, 2, 4, 5, 6, //10000
6, 4, 2, 3, 6, 8, 8, 8, 5, 1, -1, -1, 2, 5, 6, 5, //10016
3, 2, 2, 3, 3, 3, 4, 5, 7, 7, 6, 5, 4, 5, 6, 8, //10032
9, 9, 8, 7, 6, 5, 4, 3, 4, 4, 5, 7, 9, 10, 10, 9, //10048
9, 8, 9, 9, 7, 6, 5, 5, 6, 8, 8, 7, 5, 2, 2, 4, //10064
9, 11, 10, 5, 0, -3, -2, 1, 4, 3, 1, -2, -3, -1, 1, 3, //10080
3, 2, 1, 0, -1, -1, -1, 0, 1, 0, -3, -3, -3, -4, -3, -1, //10096
-1, -3, -6, -7, -6, -5, -4, -4, -7, -8, -7, -5, -4, -4, -6, -5, //10112
-4, -3, -1, -2, -5, -6, -6, -6, -4, -4, -5, -6, -6, -4, -2, -1, //10128
-1, -2, -3, -6, -8, -7, -7, -6, -6, -6, -4, -3, -4, -6, -7, -6, //10144
-6, -5, -5, -5, -5, -6, -6, -5, -6, -6, -5, -6, -7, -6, -6, -6, //10160
-3, -3, -4, -5, -6, -7, -8, -10, -10, -10, -9, -8, -9, -9, -8, -6, //10176
-4, -4, -6, -7, -8, -8, -8, -6, -6, -7, -8, -11, -11, -8, -7, -8, //10192
-9, -10, -11, -11, -9, -8, -5, -2, -2, -3, -4, -5, -5, -5, -4, -3, //10208
-2, -3, -3, -3, -2, -2, -3, -4, -5, -4, -3, -3, -4, -4, -3, -3, //10224
-3, -3, -2, -2, -3, -5, -8, -8, -7, -6, -3, -1, 0, -1, -4, -4, //10240
-4, -3, -2, -2, -2, -2, -1, 0, 1, 1, 0, -4, -6, -6, -3, -1, //10256
-1, 0, 0, 0, 0, 0, -2, -2, -3, -3, -4, -4, -3, -2, -1, -2, //10272
-2, 0, 0, 0, -1, -2, -3, -3, -2, -1, 0, -1, -1, 1, 2, 3, //10288
3, 2, -1, 0, 2, 3, 4, 5, 5, 4, 4, 5, 5, 5, 4, 1, //10304
-1, -1, 1, 1, 2, 3, 4, 5, 4, 2, 1, 2, 5, 6, 6, 9, //10320
9, 8, 4, 1, 2, 3, 3, 4, 5, 5, 5, 5, 6, 7, 7, 6, //10336
6, 5, 3, 3, 3, 4, 2, 1, 0, 0, 2, 2, 2, 3, 2, 2, //10352
3, 2, 2, 1, 1, 3, 5, 4, 3, 2, 2, 4, 5, 4, 2, 1, //10368
-1, -2, 1, 3, 4, 3, 0, -2, -1, 1, 3, 4, 4, 3, 2, 1, //10384
-2, -2, -1, 3, 3, 3, 3, 4, 8, 9, 7, 7, 7, 7, 5, 5, //10400
5, 4, 2, 2, 3, 3, 3, 3, 4, 4, 3, 4, 4, 4, 4, 2, //10416
1, 2, 3, 2, 2, 1, 2, 3, 3, 2, 1, 3, 6, 6, 5, 4, //10432
1, 1, 3, 4, 4, 4, 3, 0, -1, -1, 1, 2, 1, 0, -2, -4, //10448
-3, 2, 5, 4, 3, 2, 0, -1, -3, -4, -2, 0, -2, -5, -7, -6, //10464
-3, -3, -4, -4, -3, -3, -3, -4, -4, -4, -4, -4, -5, -7, -6, -5, //10480
-2, 0, -3, -9, -9, -8, -8, -8, -5, -6, -8, -9, -9, -8, -4, -3, //10496
-3, -5, -8, -10, -10, -7, -4, -4, -6, -7, -6, -5, -4, -3, -2, -4, //10512
-6, -7, -8, -7, -5, -4, -4, -5, -6, -6, -4, -5, -5, -5, -4, -4, //10528
-4, -4, -5, -5, -5, -6, -5, -5, -5, -4, -3, -2, -1, 0, 1, 2, //10544
1, -1, -1, 0, 1, 1, 2, 5, 3, 1, -1, -3, -3, -2, -1, -1, //10560
-2, -2, -1, 0, 0, -1, -1, -1, 1, 0, 0, 0, 1, 1, -1, -3, //10576
-3, 0, 1, 1, 1, 1, 0, -1, -3, -4, -2, 0, 2, 2, 1, 1, //10592
0, -1, -3, -5, -6, -5, -4, -5, -5, -3, -1, 0, -1, -4, -4, -3, //10608
0, 0, -1, -1, -1, 0, 1, 2, 2, 2, 2, 1, -2, -3, -2, -1, //10624
0, 0, -1, -1, 0, 2, 3, 2, 2, 3, 5, 4, 1, -1, -1, 0, //10640
2, 1, 0, 0, 0, -1, -1, 1, 2, 1, 1, 0, 1, 1, 1, 0, //10656
-1, -3, -1, 1, 3, 3, 2, 1, -1, -2, -1, 0, 1, -2, -4, -3, //10672
-2, 2, 5, 4, 2, 0, -2, -2, -3, -4, -5, -4, -2, -2, -1, 1, //10688
2, 1, 0, -2, -3, -2, -3, -5, -5, -3, -1, 1, 2, 3, 3, 2, //10704
1, -1, 0, 0, -2, -5, -6, -6, -6, -5, -3, -2, -3, -4, -5, -7, //10720
-6, -5, -4, -3, -2, -2, -4, -3, -2, 1, 3, 1, -1, -2, -3, -4, //10736
-4, -2, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, //10752
1, -1, -2, -2, -2, -2, -2, 1, 4, 3, 3, 3, 3, 3, 4, 4, //10768
4, 5, 5, 3, 2, 3, 4, 4, 4, 2, 1, -1, -1, 0, 2, 3, //10784
2, 0, 1, 2, 4, 3, 2, 2, 3, 4, 6, 9, 9, 8, 7, 7, //10800
9, 9, 8, 5, 3, 2, 4, 6, 8, 7, 5, 3, 2, 2, 2, 3, //10816
4, 5, 5, 4, 4, 3, 3, 2, 0, -1, 0, 2, 4, 4, 4, 3, //10832
2, 2, 2, 3, 3, 3, 3, 6, 5, 3, 2, 1, 0, -1, -3, -4, //10848
-3, -2, 2, 3, 2, 0, -3, -3, 0, 0, -1, -2, -5, -7, -7, -4, //10864
1, 4, 5, 1, 0, -1, -1, -2, -2, -2, -2, -3, -3, -2, -1, -2, //10880
-4, -5, -4, -3, -2, -1, 0, 1, 0, -3, -7, -9, -9, -6, -4, -3, //10896
-3, -4, -5, -7, -9, -7, -4, -3, -3, -3, -3, -2, -1, 1, 1, -1, //10912
-4, -6, -7, -7, -6, -5, -5, -6, -6, -7, -7, -6, -2, -3, -6, -7, //10928
-8, -9, -8, -7, -5, -3, -1, -3, -5, -5, -5, -5, -5, -3, -3, -3, //10944
-3, -2, -1, 0, 0, -1, -2, -3, -4, -2, 0, 2, 2, 0, -5, -8, //10960
-8, -7, -5, -4, -4, -4, -3, -3, -3, -4, -4, -3, -3, -2, -1, -1, //10976
0, 2, 3, 3, 3, 0, -3, -3, -2, 0, 1, 0, -2, -4, -4, -3, //10992
1, 0, -1, -2, -4, -3, -1, 1, 3, 4, 4, 3, 2, 0, 0, 0, //11008
0, 3, 3, 3, 3, 1, 1, 1, 0, 1, 1, 1, 2, 3, 4, 3, //11024
3, 3, 2, -1, -1, 0, 1, 4, 4, 3, 1, 1, 2, 3, 3, 2, //11040
2, 1, 2, 5, 8, 11, 11, 8, 5, 3, 3, 4, 6, 8, 3, 0, //11056
-2, -2, 0, 1, 4, 5, 3, 0, -2, 0, 3, 5, 5, 3, 2, 1, //11072
-2, -3, -2, -1, -2, -3, -2, 1, 3, 3, 1, -2, -3, -3, -2, 0, //11088
4, 5, 4, 2, 0, 0, 0, 1, 2, 3, 3, 2, 2, 2, 2, 2, //11104
1, -2, -4, -4, -3, -2, 0, 1, 2, 2, 2, 1, 0, 3, 5, 5, //11120
5, 3, -4, -7, -7, -4, 0, 2, 2, 0, -1, -2, -2, -1, 1, 2, //11136
1, 1, 3, 0, -3, -5, -4, -1, 2, 4, 6, 6, 5, 3, 0, -2, //11152
-2, -3, -4, -5, -5, -4, -3, -2, -1, -1, -1, 0, 1, 1, -1, 1, //11168
3, 2, 1, 1, -2, -3, -4, -3, -1, 1, -1, -4, -4, -3, -2, -2, //11184
-2, -2, 0, 0, 1, -1, -4, -6, -10, -10, -8, -5, -4, -4, -4, -4, //11200
-4, -4, -3, -1, 0, 0, 2, 0, -1, -1, -1, 1, 3, 4, 4, 1, //11216
-2, -4, -5, -5, -6, -7, -7, -7, -5, -4, -3, -2, 0, 1, 2, 3, //11232
4, 5, 6, 6, 4, 2, 1, 0, -1, 0, 1, 1, 2, 2, 1, 0, //11248
1, 1, 1, -1, -1, 0, 1, 1, -1, -4, -6, -9, -11, -11, -9, -9, //11264
-9, -8, -5, -3, -3, -5, -5, -5, -6, -7, -7, -5, -3, -2, -2, -2, //11280
-1, -1, -2, -5, -7, -7, -7, -7, -6, -5, -4, -5, -4, -4, -2, 1, //11296
2, 3, 2, 0, -1, -2, -4, -5, -5, -4, -4, -7, -6, -5, -3, -3, //11312
-4, -4, -3, -2, -2, -1, -1, 0, -2, -4, -3, -2, -1, -3, -5, -6, //11328
-5, -3, -3, 0, 2, 2, 2, 1, 1, 1, 2, 3, 3, 2, 2, 2, //11344
1, 1, 2, 3, 5, 3, 1, 0, 0, 0, 1, 2, 1, 0, -2, -2, //11360
0, 2, 3, 4, 5, 6, 6, 5, 4, 3, 0, -1, 0, -1, -1, 1, //11376
3, 4, 4, 3, 2, 1, 2, 4, 6, 9, 10, 7, 4, 3, 5, 7, //11392
7, 4, 4, 4, 4, 4, 5, 6, 7, 7, 7, 4, 0, 0, 1, 1, //11408
0, 0, 2, 2, 0, 0, 1, 3, 2, 0, 0, -1, -3, -1, 0, 0, //11424
-1, -2, -3, -4, -4, -3, 0, 1, 1, -3, -5, -5, -6, -6, -6, -6, //11440
-5, -4, -2, -2, -2, -3, -2, -3, -3, -2, -1, -1, -2, -5, -5, -4, //11456
-2, -1, 0, 1, 2, 2, 3, 2, -1, -2, -2, 1, 3, 2, -1, -3, //11472
-5, -5, -6, -6, -4, -4, -4, -3, -1, 2, 2, 2, 2, 0, -1, -1, //11488
0, 2, 1, -1, -2, -3, -3, -3, -3, -1, 1, 1, 1, 1, 0, -1, //11504
-2, -1, 2, 3, 2, 0, 0, 0, 1, 2, 2, 1, -1, -4, -4, -3, //11520
-2, -2, -4, -3, -1, 1, 3, 4, 5, 4, 2, 0, -1, 0, 3, 3, //11536
2, 2, 3, 3, 0, -1, -1, -1, -1, 1, 4, 6, 6, 5, 4, 2, //11552
2, 2, 1, 2, 2, 1, 1, -1, -1, 0, 1, 4, 4, 2, 1, 0, //11568
-1, -1, 0, 1, 3, 4, 3, 3, 3, 4, 5, 6, 6, 6, 4, 1, //11584
-2, 0, 2, 3, 3, 3, 1, 1, 3, 5, 6, 6, 4, 1, -1, 0, //11600
0, 0, 3, 5, 6, 6, 5, 2, -3, -4, -3, 0, 3, 7, 7, 5, //11616
3, 2, 2, 1, -1, -2, -3, -3, -3, 0, 3, 3, 2, 1, -3, -5, //11632
-6, -6, -5, -3, 0, 2, 1, 0, -2, -3, -2, 0, 4, 5, 5, 2, //11648
-1, -3, -4, -4, -3, -3, -3, -5, -6, -6, -3, 0, 0, -1, -2, -4, //11664
-1, 1, 2, 2, 1, -1, -2, -2, -3, -4, -4, -4, -1, 0, 2, 2, //11680
1, 1, 0, -1, -1, -2, -3, -2, -2, -1, 0, 0, 0, -1, -1, -2, //11696
-2, -2, -3, -2, -1, -1, 0, 0, -1, -2, -3, -3, -3, -1, 0, -1, //11712
-2, -2, -2, -1, -1, -2, -2, -3, -4, -4, -5, -5, -5, -5, -4, -6, //11728
-7, -7, -6, -6, -5, -4, -3, -4, -5, -7, -3, -2, -3, -3, -3, -4, //11744
-4, -4, -4, -5, -5, -4, -5, -5, -5, -5, -5, -3, -3, -3, -3, -3, //11760
-5, -6, -6, -6, -5, -5, -5, -5, -5, -6, -8, -7, -3, 0, 0, -1, //11776
-4, -6, -7, -6, -4, -3, -1, -1, -3, -5, -6, -6, -4, -3, -2, -2, //11792
-3, -2, 0, 1, 2, 1, -1, -1, -4, -6, -7, -5, -2, -1, 0, -1, //11808
-3, -3, -3, -3, -2, -1, -2, -3, -5, -6, -6, -5, -4, -2, -1, -2, //11824
-3, -5, -6, -6, -5, -4, -2, -1, -1, -1, -1, -1, -1, 0, 1, 1, //11840
1, 0, -1, -1, -1, -1, 0, 0, 0, -1, -2, -1, -1, 0, 1, 1, //11856
1, 0, 1, 1, 1, 2, 1, 1, 2, 3, 4, 4, 4, 3, 2, 1, //11872
1, 4, 7, 6, 4, 1, 0, 1, 2, 2, 1, 1, 1, 0, 2, 2, //11888
2, 4, 5, 4, 3, 1, 1, 2, 6, 7, 5, 2, 0, 0, 3, 6, //11904
7, 8, 8, 5, 5, 5, 5, 6, 7, 6, 4, 2, 0, 1, 2, 7, //11920
7, 4, 0, -2, 2, 5, 6, 6, 5, 4, 0, -1, 0, 3, 5, 4, //11936
-1, -1, 0, 1, 3, 6, 7, 6, 3, 1, 2, 2, 1, 1, 1, 1, //11952
1, 0, 2, 2, 1, 1, 1, 0, -1, 0, 3, 3, 0, -3, -4, -3, //11968
-2, 0, 1, 2, 2, 1, 0, -1, 0, 0, -1, -1, -1, -3, -4, -3, //11984
-1, 1, 3, 2, -1, -3, -5, -5, -2, 1, 3, 3, 2, 1, -1, -2, //12000
-2, -3, -3, -3, -1, -2, -2, -1, 0, 1, -1, -2, -2, -1, 0, 0, //12016
-2, -2, -1, 0, 1, 1, -1, -3, -4, -4, 0, 2, 3, 1, -3, -5, //12032
-4, -1, 3, 3, 2, 0, 0, -1, -1, -1, -1, -1, -2, -3, -4, -4, //12048
-3, 0, 1, 2, 2, 0, -1, -2, -3, -3, -1, 2, 4, 3, 2, 1, //12064
1, -2, -5, -6, -5, -4, -3, -1, 0, 2, 3, 2, 1, -2, -2, -1, //12080
0, 1, 1, 1, 4, 4, 3, 1, -3, -3, -2, -1, 1, 4, 4, 2, //12096
-1, -3, -1, 2, 1, 0, -2, -2, -1, -2, -3, -3, -3, -4, -6, -7, //12112
-7, -6, -3, 1, 5, 3, 1, -1, -1, 0, -1, -2, -1, -1, -2, -3, //12128
0, 2, 1, -3, -6, -6, -5, -4, -3, -2, -1, 1, 2, 2, 1, -2, //12144
-3, -3, -2, 0, 0, -2, -2, -1, -2, -3, -3, -4, -6, -6, -5, -4, //12160
-3, -4, -6, -6, -5, -3, -4, -6, -7, -6, -5, -5, -6, -8, -10, -11, //12176
-12, -12, -9, -5, -3, -2, -2, -5, -7, -7, -4, -2, -1, -1, -5, -6, //12192
-6, -5, -4, -4, -6, -8, -9, -9, -9, -6, -4, -4, -3, -3, -2, -3, //12208
-2, -1, 0, 0, -2, -1, 0, 0, 1, 1, -2, -4, -6, -7, -7, -4, //12224
0, 1, 0, -2, -3, -3, 1, 3, 3, 2, 1, 0, 0, 0, -1, -2, //12240
-4, -7, -7, -6, -5, -3, -2, 1, 3, 3, 2, 1, 0, 1, 3, 3, //12256
2, 0, -2, -2, -2, -2, -3, -4, -5, -4, -1, 2, 2, -1, -3, -3, //12272
-3, -2, -2, -1, 0, 0, -1, -1, 1, 2, 3, 3, 1, -3, -6, -7, //12288
-6, -1, 4, 7, 5, 2, 0, 1, 2, 3, 5, 8, 8, 4, 2, 2, //12304
2, 1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 4, 3, 1, 0, 0, //12320
2, 4, 4, 3, 3, 3, 3, 3, 3, 3, 1, 0, 2, 3, 3, 2, //12336
2, 2, 1, 1, 1, 1, 0, 1, 2, 3, 3, 1, 1, 2, 2, 1, //12352
-2, -4, -5, -2, 2, 2, 1, 0, -1, -2, -1, 2, 3, 4, 3, 1, //12368
0, -1, -1, -1, 0, 0, 0, -1, -2, -3, -2, -1, -2, -3, -6, -6, //12384
-5, -4, -2, -1, 1, 1, 0, -1, -1, -1, -2, -2, -2, -1, 1, 3, //12400
5, 5, 4, 3, 2, -1, -1, 1, 3, 4, 5, 6, 7, 7, 7, 7, //12416
5, 3, 1, -1, 0, 3, 6, 8, 8, 7, 6, 4, 3, 5, 7, 8, //12432
8, 8, 7, 4, 1, 1, 3, 5, 4, 3, 2, 0, -1, -1, 1, 3, //12448
3, 3, 3, 2, 1, 2, 3, 3, 3, 2, 1, 0, -1, 0, 1, 2, //12464
1, 0, 1, 4, 5, 4, 3, 3, 0, -2, -1, 1, 3, 3, 3, 6, //12480
6, 5, 4, 2, 3, 3, 3, 4, 5, 6, 5, 4, 3, 0, -1, 0, //12496
0, 2, 3, 3, 1, -1, -3, -3, -2, 0, 1, -4, -7, -8, -8, -6, //12512
-7, -6, -5, -5, -5, -5, -5, -4, -5, -5, -5, -7, -7, -9, -11, -11, //12528
-9, -9, -8, -9, -11, -12, -12, -11, -11, -11, -12, -14, -13, -10, -10, -9, //12544
-5, -2, 0, -2, -5, -7, -10, -11, -10, -6, -2, -2, -1, -1, -1, -1, //12560
-2, -1, -1, -2, -2, -2, -2, -1, 0, 0, 0, -1, -3, -3, -4, -6, //12576
-6, -5, -3, 1, 3, 3, 3, 2, 0, 0, 3, 4, 4, 3, 1, 0, //12592
1, 4, 4, 4, 6, 5, 3, 1, 1, 3, 5, 6, 4, 2, 2, 3, //12608
5, 4, 2, 2, 3, 5, 1, 0, 1, 2, 3, 2, 3, 4, 4, 5, //12624
5, 5, 5, 5, 4, 3, 2, 0, -1, 0, 1, 2, 3, 4, 3, 1, //12640
-1, -3, -4, -3, -2, -2, -2, -2, 0, 0, -1, -2, -3, -5, -6, -5, //12656
-3, -1, 0, 0, 0, 0, 1, 0, -3, -5, -5, -4, -2, -2, -3, -3, //12672
-4, -4, -5, -4, 0, 2, 1, -1, -3, -5, -6, -7, -6, -6, -6, -6, //12688
-6, -5, -3, -2, -1, -1, 1, 1, 0, -3, -4, 1, 3, 3, 1, -2, //12704
-4, -5, -6, -6, -5, -4, -2, -3, -6, -7, -6, -4, -3, -2, -2, -3, //12720
-4, -6, -7, -6, -5, -2, 0, 4, 5, 4, 1, 0, 0, -1, 1, 3, //12736
4, 5, 5, 2, 1, -1, -2, -2, -2, 0, 1, 0, -1, -1, -4, -5, //12752
-6, -6, -3, -1, -1, -3, -3, -2, 0, 3, 4, 3, 1, 1, 3, 5, //12768
7, 7, 4, 1, -1, 1, 3, 3, 2, 1, -1, 0, -1, -3, -3, -3, //12784
-3, -1, 0, 1, 1, -3, -5, -5, -2, 1, 2, 0, -1, 0, 3, 6, //12800
6, 4, 2, 0, 0, 2, 5, 5, 4, 3, 1, 1, 1, 2, 3, 3, //12816
2, 1, 1, 1, 0, -1, -3, -3, -2, 0, 1, 1, 0, 0, 2, 4, //12832
7, 7, 6, 3, 1, 1, 2, 3, 3, 3, 2, 1, 2, 2, 2, 2, //12848
1, 1, 1, 1, 2, 2, 1, 0, 0, 4, 6, 8, 8, 4, 1, -4, //12864
-2, 0, 1, 1, 0, 2, 2, 1, 0, 0, 3, 7, 8, 8, 7, 5, //12880
4, 4, 4, 3, 3, 3, 2, 1, -1, -4, -4, -4, -1, 0, -1, -1, //12896
1, 1, 1, 1, 2, 3, 2, -1, -3, -3, -1, 1, 2, 0, -3, -3, //12912
-2, 1, 2, 0, -1, -2, -4, -4, -2, 0, 1, 0, 0, 0, -1, -3, //12928
-5, -7, -7, -7, -6, -6, -7, -7, -7, -8, -8, -7, -6, -6, -6, -4, //12944
-2, -1, 1, 2, 2, 0, -2, -3, -2, 0, -2, -3, -3, -3, -3, -5, //12960
-6, -5, -5, -6, -6, -4, -2, 0, 0, -2, -5, -5, -4, -5, -6, -6, //12976
-5, -4, -3, 0, 3, 5, 6, 4, -1, -4, -4, 0, 4, 6, 6, 4, //12992
2, 0, -1, -1, -2, -2, -2, -2, -2, -2, -1, -1, -2, -3, -4, -5, //13008
-5, -5, -2, -1, 0, 1, 1, 1, 0, 0, 1, 3, 3, 2, 4, 4, //13024
5, 6, 6, 6, 4, 2, 2, 2, 2, 1, -1, 0, 0, 0, 0, -1, //13040
0, 1, 2, 2, 1, 1, 1, 2, 3, 4, 1, -1, -1, 0, 2, 6, //13056
8, 6, 2, -2, -4, -1, 2, 5, 6, 6, 4, 1, -1, 0, 1, 1, //13072
-2, -3, -3, -2, -1, -1, -1, -2, -3, -3, -3, -5, -3, -1, 0, -1, //13088
-3, -4, -4, -4, -4, -3, 0, 2, 2, 1, 2, 3, 7, 8, 7, 6, //13104
5, 3, 2, 2, 3, 3, 2, 0, -4, -6, -7, -8, -8, -6, -5, -5, //13120
-4, -3, -3, -6, -7, -6, -5, -5, -3, 0, 2, 4, 4, 3, -1, -3, //13136
-5, -5, -4, -2, -1, -2, -3, -3, -2, -3, -3, -5, -7, -8, -10, -9, //13152
-8, -7, -6, -7, -8, -8, -9, -9, -8, -7, -5, -3, -2, -3, -4, -5, //13168
-3, -1, 1, 3, 4, 4, 6, 7, 8, 8, 6, 4, -2, -4, -5, -5, //13184
-3, -5, -8, -10, -10, -8, -6, -4, -2, -1, -1, -1, -1, -2, -3, -3, //13200
-3, -4, -5, -6, -5, -4, -3, -1, 2, 4, 3, 0, -2, -1, 3, 6, //13216
8, 7, 4, -3, -6, -5, -3, -1, 1, 2, 0, -2, -5, -7, -6, -4, //13232
-2, -1, 1, 2, 0, -2, -2, -1, 0, 2, 4, 3, 3, 2, 0, 0, //13248
0, 1, 3, 4, 5, 5, 5, 4, 1, 0, -3, -6, -5, -3, -2, 0, //13264
1, 0, -3, -5, -6, -7, -6, -5, -3, -3, -3, -2, 0, 1, 1, 0, //13280
-1, -2, -1, 1, 2, 5, 5, 5, 4, 5, 6, 7, 7, 5, 2, -1, //13296
-2, -2, 0, 1, 1, 2, 2, 2, 4, 5, 5, 5, 2, 3, 5, 4, //13312
4, 4, 5, 4, 3, 4, 4, 2, 0, 0, 0, 1, 3, 5, 6, 7, //13328
9, 9, 8, 8, 5, 2, 1, 0, -2, -2, -2, -4, -6, -6, -4, -1, //13344
1, 0, 0, 0, 1, 2, 4, 6, 8, 8, 7, 4, 3, 2, 2, 5, //13360
5, 2, 0, -2, -2, -1, 3, 5, 4, 4, 3, 0, -3, -3, -4, -4, //13376
-4, -4, -5, -5, -5, -4, -3, -2, 0, 2, 3, 5, 5, 3, 3, 2, //13392
2, 2, 1, 2, 2, 1, 1, 1, 1, 2, 3, 3, 3, 3, 0, -2, //13408
-3, -4, -4, -4, -3, -3, -5, -5, -5, -6, -6, -6, -5, -4, -4, -4, //13424
-4, -5, -5, -5, -3, 0, 2, 3, 3, 1, 0, -2, -3, -3, -3, -3, //13440
-4, -4, -3, -1, -1, 0, 0, -2, -5, -6, -5, -6, -7, -6, -5, -5, //13456
-7, -6, -4, -3, -2, -3, -3, -3, -3, -4, -6, -3, 1, 3, 4, 6, //13472
6, 4, 4, 5, 4, 3, 1, 1, 2, 2, 2, 1, 0, -2, -5, -7, //13488
-7, -5, -4, -4, -3, -4, -5, -4, -4, -3, -1, 0, 2, 4, 5, 6, //13504
5, 5, 4, 1, -1, -2, -1, -1, 0, 2, 2, 1, 1, 1, -1, 1, //13520
2, 1, -1, -3, -6, -6, -6, -7, -7, -6, -7, -6, -2, 0, 2, 3, //13536
5, 7, 7, 6, 4, 3, 3, 2, 1, 1, 1, 1, 1, 2, 2, 1, //13552
1, -2, -3, -4, -5, -5, -1, 1, 0, 0, 1, 3, 2, 0, -2, -3, //13568
-3, -2, -3, -5, -7, -8, -7, -3, -1, 0, 1, 0, 0, 2, 3, 5, //13584
6, 5, 3, 4, 4, 3, 2, 1, -1, -3, -4, -3, -3, -3, -1, -1, //13600
-2, -1, -1, -2, -1, -1, -3, -3, -2, -3, -5, -7, -8, -8, -8, -4, //13616
-2, -1, -2, -2, -2, 1, 2, 2, 1, 1, 3, 4, 5, 4, 3, 2, //13632
1, 3, 5, 5, 4, 3, 2, 0, -2, -3, -3, -5, -5, -5, -3, 0, //13648
1, 0, -1, -2, -2, 0, 2, 3, 1, -3, -4, -3, -4, -5, -4, -4, //13664
-4, -2, 0, 0, 0, 0, -1, 1, 4, 5, 4, 0, -2, -4, -6, -4, //13680
-2, -2, 1, 3, 5, 3, -1, -2, -2, -2, -3, -3, -2, -3, -1, 1, //13696
1, 0, -1, -1, -4, -3, -3, -4, -4, -4, -3, -4, -4, -3, -1, 1, //13712
1, 2, 3, 0, -3, -1, -2, -2, -1, 0, 0, -2, 0, 2, 3, 4, //13728
5, 6, 6, 7, 6, 2, 0, -1, -3, -4, -2, -1, -2, -2, -2, -1, //13744
-1, -3, -4, -5, -5, -4, -4, -2, -2, -2, 0, 2, 5, 4, 3, 4, //13760
4, 1, 1, 3, 2, 0, -1, 0, -2, -4, -3, 0, 2, 5, 6, 4, //13776
3, 3, 4, 3, 2, 2, 1, -1, -3, -2, -3, -3, 1, 4, 4, 3, //13792
5, 4, 1, 1, 2, 2, 0, 1, 4, 3, 0, -2, -1, 0, 0, 0, //13808
-1, -1, -1, -2, -3, -1, 0, 2, 5, 6, 6, 5, 4, 3, 2, 1, //13824
0, -2, -1, -1, -3, -2, 1, 2, 3, 3, 4, 2, -1, 1, 5, 5, //13840
4, 4, 5, 4, 1, 1, 1, 0, 0, -1, -2, -2, -5, -5, -5, -4, //13856
-3, -3, -2, -1, 0, 1, 0, 0, 1, -1, -1, -1, -1, -2, -2, 0, //13872
1, 0, 0, 3, 4, 2, 2, 4, 5, 3, 2, 4, 4, 2, 0, 0, //13888
0, -1, -1, -1, -1, 0, -1, -4, -4, -5, -5, -6, -5, -1, -2, -4, //13904
-2, 1, 2, 2, 2, 4, 5, 3, 0, 0, -3, -6, -8, -8, -6, -6, //13920
-3, -2, -1, 3, 3, 3, 4, 3, 2, 0, 0, 0, -1, 0, -1, 0, //13936
2, -2, -1, 1, 1, -3, -4, 0, 1, 0, -2, -3, -5, -5, -3, -4, //13952
-8, -8, -6, -9, -10, -8, -6, -9, -7, -3, -1, -1, -2, -3, -2, 0, //13968
3, 2, 1, -1, -3, -4, -5, -5, -3, -5, -6, -5, -4, -3, 1, 3, //13984
4, 3, 2, 2, 3, 3, 2, 3, 3, 0, -2, -3, -4, -3, -3, -2, //14000
0, 1, 1, 0, 0, -1, -3, -5, -7, -4, -1, -3, -2, 0, 2, 0, //14016
-2, -2, -3, -2, -4, -6, -5, -4, -3, -2, 0, 2, 3, 2, 1, 3, //14032
6, 6, 4, 3, 2, -1, -1, 0, 0, -2, -5, -5, -7, -8, -5, -2, //14048
-2, -2, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, -1, -1, //14064
-1, 1, 4, 3, 2, 2, 1, 0, 0, 5, 5, 5, 8, 6, 0, -4, //14080
-4, -6, -10, -9, -6, -4, -2, -1, 1, 0, -1, 1, 3, 5, 6, 8, //14096
6, 4, 4, 5, 5, 3, 2, 1, 0, 0, 2, 1, -2, -2, 1, 2, //14112
1, 2, 1, -1, -3, -3, -2, -2, -4, -4, -3, -4, -6, -5, -5, -4, //14128
-3, -2, -1, -1, -1, -1, 1, 3, 6, 6, 4, 2, 3, 4, 3, 5, //14144
5, 2, -3, -3, -2, -1, -1, -1, -1, -4, -5, -5, -8, -10, -6, -6, //14160
-6, -6, -3, -2, -3, -1, 1, 1, -1, -3, -2, -3, -3, -3, -4, -3, //14176
0, 0, 0, 3, 5, 3, 3, 3, 3, 4, 4, 1, 2, 3, 0, -4, //14192
-2, -3, -4, -4, -5, -7, -7, -6, -6, -6, -4, -2, -2, -1, 3, 5, //14208
6, 7, 8, 4, 1, 1, -2, -1, 2, 2, 2, 5, 3, 2, 3, 4, //14224
5, 5, 1, -1, -2, -3, -7, -7, -6, -8, -11, -11, -8, -5, -3, -2, //14240
-1, 1, 1, -2, -1, 1, 1, 0, -4, -3, 0, 0, -3, -2, 2, 2, //14256
2, 2, 3, 1, 0, -2, -4, -3, -3, -3, -3, -2, 0, 0, -2, -2, //14272
-1, -2, -2, -1, 0, -2, -2, -1, 2, 2, 2, 2, 2, 4, 3, 0, //14288
0, 1, 2, 1, 1, 4, 3, 1, -2, -2, -1, -1, -2, -2, -1, -1, //14304
-4, -5, -6, -6, -6, -6, -4, -3, 0, 0, -1, 0, 0, -2, -2, -1, //14320
1, 1, 1, 1, 2, 5, 5, 4, 6, 7, 6, 6, 7, 5, 3, 2, //14336
1, 1, 3, 5, 4, 3, 2, -1, 0, 2, 1, 0, 0, 0, 1, 1, //14352
1, 1, 2, 4, 1, 1, 3, 3, 2, 0, 1, 1, 1, 1, 0, 1, //14368
5, 6, 7, 8, 7, 3, 1, -1, 0, 0, -4, -6, -6, -5, -4, -4, //14384
-2, -2, -3, -4, -3, 0, 1, 1, 0, -1, -1, -1, -1, -2, -2, 0, //14400
0, 0, 2, 3, 3, 0, 0, 3, 3, 3, 4, 3, 1, 0, -1, -2, //14416
-1, -1, -3, -2, -2, -3, -3, -4, -3, -2, -3, -3, -2, 0, 0, 0, //14432
1, 2, 3, 3, 2, 2, 4, 6, 6, 6, 6, 6, 5, 5, 4, 2, //14448
1, 0, -3, -3, -3, -5, -4, -2, -3, -4, -2, -1, 0, 1, 2, 1, //14464
1, 1, -1, -3, -3, -4, -4, -2, -1, 0, 1, 2, 4, 5, 6, 6, //14480
5, 4, 2, 1, 1, 2, 1, 0, -1, -3, -3, -1, -2, -4, -3, -3, //14496
-6, -7, -6, -5, -4, -2, -1, 0, 1, 0, -1, -1, -3, -5, -4, -4, //14512
-5, -6, -6, -4, -2, -1, 0, 1, 3, 3, 2, 2, 2, 1, -1, -3, //14528
-4, -5, -5, -4, -4, -4, -3, -3, -3, -1, -3, -4, -4, -4, -3, -2, //14544
-2, -3, -3, -3, -2, 1, 3, 6, 6, 5, 4, 4, 3, 0, -2, -2, //14560
-1, 0, 1, 1, 0, 0, -1, -2, -2, -1, -2, -2, -3, -3, -2, -1, //14576
0, 0, -1, -1, -1, -2, -3, -5, -6, -7, -9, -9, -8, -6, -4, -1, //14592
-1, 0, 1, 0, -2, -4, -5, -5, -5, -5, -6, -8, -9, -8, -6, -5, //14608
-4, -3, -2, -2, -1, -2, -2, -2, -2, -4, -5, -5, -5, -3, -2, -1, //14624
0, 1, 2, 2, 1, 0, 1, 1, 0, 0, 0, 0, 0, 2, 3, 2, //14640
2, 2, 1, 0, 1, 1, 1, 0, -1, -2, -2, 0, 2, 2, 1, 0, //14656
-1, -2, -3, -2, -2, -3, -3, -3, -3, -3, -2, 1, 3, 3, 2, -1, //14672
-5, -4, -4, -5, -6, -8, -9, -11, -11, -9, -7, -6, -3, -1, -1, -1, //14688
0, 2, 1, 0, -1, -2, -3, -4, -3, -1, 1, 1, 0, 0, 0, 0, //14704
0, 1, 1, 1, -1, -2, -3, -3, -1, 0, 0, -1, -1, -1, 0, 1, //14720
1, 2, 2, 1, 1, 1, 2, 3, 3, 4, 5, 5, 4, 2, 1, 0, //14736
1, 2, 1, 1, 1, 2, 3, 4, 5, 6, 5, 3, 2, 2, 2, 2, //14752
1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, -1, 0, //14768
0, 0, -1, -1, -2, -1, 2, 3, 3, 4, 4, 2, 2, 2, 2, 1, //14784
0, 0, -2, -2, -2, -1, 0, -2, -2, -2, -2, -3, -3, -2, -3, -4, //14800
-5, -5, -4, -5, -5, -4, -3, -2, -3, -3, -3, -2, -2, -1, 1, 1, //14816
1, 1, 1, 3, 2, 2, 1, 0, -2, -5, -5, -5, -4, -3, -2, -1, //14832
0, -1, -1, 1, 2, 1, 1, 2, 2, 2, -1, -2, -2, -1, -1, -1, //14848
-1, 0, 1, 2, 4, 4, 4, 3, 2, 1, 1, 2, 2, 2, 1, -1, //14864
0, 0, 0, 1, 1, 1, 0, 0, -1, -2, -3, -3, -2, -1, -1, 0, //14880
0, 0, -1, -3, -4, -4, -3, -3, -2, -3, -3, -3, -3, -1, 0, 0, //14896
1, 1, 1, -1, -3, -3, -2, -2, -2, -3, -3, -2, -1, -1, 2, 3, //14912
3, 2, 1, -1, -1, -1, -2, -3, -3, -3, -3, -2, -1, 0, 1, 1, //14928
2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 1, 2, 1, 1, 2, 3, //14944
2, 1, 1, 2, 2, 1, 0, 0, 0, 1, 0, 1, 0, -1, -1, -2, //14960
-2, 0, -1, -1, -1, -1, -1, -1, 0, 2, 2, 2, 4, 4, 4, 4, //14976
4, 4, 1, 0, 0, 0, 0, 1, 2, 2, 3, 2, 2, 1, 0, 0, //14992
-1, -2, -2, -2, -2, -2, -1, 0, 1, 0, 0, 0, 0, 0, -1, -3, //15008
-4, -3, -3, -2, -1, -1, -1, -1, -1, 1, 2, 2, 1, 0, -2, -3, //15024
-3, -3, -3, -3, -3, -3, -2, -1, -1, -2, -1, 1, 2, 2, 2, 2, //15040
1, 1, 1, 0, 1, 0, -2, -2, -1, -2, -2, 0, 0, 0, 0, 0, //15056
-1, -1, -2, -3, -2, 1, 0, -1, -1, -1, -2, -2, -1, -2, -3, -3, //15072
-2, 0, 2, 2, 2, 2, 2, 0, 0, -1, -1, -2, -2, -2, -1, 0, //15088
0, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, -1, -2, -1, 0, //15104
0, 0, 1, 1, -1, -1, -1, -2, -3, -3, -3, -3, -2, 1, 1, 1, //15120
1, -1, -1, 0, 0, 1, 0, 1, 1, 0, -2, -2, -2, -3, -3, -2, //15136
-2, -4, -3, -2, -2, -2, -2, -3, -4, -4, -4, -2, -1, 0, -1, -2, //15152
-3, -2, -2, -1, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, -1, //15168
-1, -1, -1, -2, -3, -4, -5, -4, -3, -2, -1, 0, 1, 0, 0, 0, //15184
0, -1, -1, -2, -2, -2, -1, -1, 0, -1, 0, 0, 0, 0, 1, 1, //15200
0, 0, 0, -1, -1, 0, 0, 0, 0, -1, 0, 2, 1, 0, -1, 0, //15216
-1, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, -2, -3, //15232
-3, -2, -2, -1, 0, 2, 0, 0, 0, -1, -2, -3, -2, -3, -3, -2, //15248
-3, -3, -3, -4, -4, -3, -1, 0, 0, 0, -1, -2, -2, -3, -2, -1, //15264
-1, -1, 0, 0, 1, 2, 3, 5, 6, 6, 5, 3, 2, 2, 2, 2, //15280
1, -1, -3, -4, -5, -4, -2, -2, -2, -2, -3, -4, -4, -3, -2, -2, //15296
-3, -4, -4, -4, -3, -3, -2, -1, -2, -2, -2, -2, -2, -3, -3, -1, //15312
-1, -1, -1, -2, -3, -3, -4, -4, -4, -4, -4, -4, -4, -5, -6, -6, //15328
-3, -3, -3, -3, -4, -6, -5, -4, -5, -5, -3, -2, -2, -3, -3, -3, //15344
-3, -3, -3, -3, -3, -4, -4, -2, -1, 0, 1, 1, 1, 1, 0, -1, //15360
0, 0, 0, 0, -1, -2, -2, -2, -2, -1, -1, -1, -1, -1, 0, 1, //15376
1, 2, 2, 3, 2, 1, 2, 3, 3, 2, 3, 3, 2, 1, 1, 1, //15392
2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, -3, //15408
-3, -2, -2, -3, -3, -5, -4, -2, -1, 0, 1, 2, 2, 1, 1, 1, //15424
2, 2, 1, 0, -2, -2, -1, 0, 1, 1, 1, -1, -1, -1, 0, 1, //15440
2, 1, 1, 0, 1, 1, 2, 1, -1, -2, -1, 1, 1, 1, 2, 2, //15456
3, 4, 3, 4, 4, 4, 4, 5, 5, 4, 4, 4, 4, 4, 4, 4, //15472
3, 3, 3, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, //15488
3, 4, 4, 4, 4, 5, 4, 3, 3, 4, 4, 3, 3, 2, 1, 2, //15504
2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1, 1, 0, -2, -2, -2, //15520
-3, -2, -1, 0, -1, -2, -2, -1, 0, 0, -1, -1, 0, 0, 0, 0, //15536
0, -1, -1, -1, -1, -1, -1, -2, -3, -2, -2, -2, 0, -1, -1, -1, //15552
-1, -1, 0, 1, 1, 1, 0, -1, -2, -1, 0, 0, 0, 0, 2, 3, //15568
3, 2, 1, 2, 3, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, -1, //15584
0, 1, 1, 0, -3, -2, -1, -2, -2, -1, -1, -1, -2, -3, -3, -1, //15600
-1, -2, -3, -4, -5, -5, -3, -1, -1, -2, -3, -4, -3, -2, -3, -2, //15616
-3, -3, -4, -4, -5, -5, -4, -4, -3, -1, -1, -3, -3, -2, -2, -2, //15632
-3, -6, -6, -4, -3, -4, -4, -3, -4, -3, -1, -1, -1, -1, -1, -2, //15648
-4, -1, 0, 1, 1, -1, -1, 0, 1, 2, 2, 2, 2, 0, -2, -3, //15664
-3, -2, -1, -1, -3, -4, -4, -3, 0, 4, 4, 1, -3, -5, -2, 1, //15680
1, 0, -3, -3, -1, -1, -2, -2, -1, -2, -5, -3, -1, 0, 1, 0, //15696
-3, -3, -1, -1, -2, 0, -1, -4, -5, -5, -3, -1, -1, -1, -2, -4, //15712
-4, -1, -2, -2, -1, -1, -3, -3, -1, 0, 3, 5, 3, 1, -1, -2, //15728
-4, -4, 0, 2, 1, 0, -1, -1, -3, -5, -6, -6, -4, -4, -4, -2, //15744
2, 3, 1, -1, 0, 0, -1, 0, 0, 0, -1, -2, -1, 0, -1, -4, //15760
-5, -2, 1, 1, 0, -1, -2, -1, -1, -1, 0, 1, 2, 2, 2, -1, //15776
-5, -6, -7, -7, -4, -1, -1, -2, -2, -2, 0, -1, -3, -3, -2, -3, //15792
0, 3, 4, 7, 6, 0, -1, -1, -1, -1, 0, 5, 5, 3, 2, 0, //15808
0, -2, -3, -2, -3, -4, 3, 4, 2, -1, -4, -6, -3, 1, 1, 1, //15824
4, 4, 1, 0, 1, 1, 0, 0, 3, 4, 3, 1, -1, -1, 0, 1, //15840
0, 0, 1, 1, 1, 3, 5, 3, -3, -3, -3, -4, -4, -2, 2, 5, //15856
4, -1, -6, -10, -9, -6, -2, 1, 2, 1, 1, 3, 5, 5, 2, -1, //15872
0, 2, 5, 6, 7, 5, 1, -4, -6, -3, 3, 5, 3, -3, -6, -5, //15888
0, 2, 4, 6, 3, 1, 1, 2, 3, 3, 3, 1, 1, 0, -3, -3, //15904
-1, 5, 5, 2, -3, -6, -7, -6, -4, -1, 1, 4, 6, 6, 7, 7, //15920
4, 2, -1, 1, 5, 8, 8, 6, 4, 0, -4, -5, -5, -4, -3, -3, //15936
-2, 0, 1, 2, 1, 2, 2, 1, -3, -3, 0, 1, 0, 1, 5, 4, //15952
3, 0, -3, -4, -2, 1, 2, 1, -1, -4, -6, -5, -3, -1, 1, 2, //15968
0, -2, -4, -4, -4, -7, -6, -2, -3, -2, 2, 2, 1, -2, -5, -6, //15984
-3, -2, -1, 1, 5, 7, 3, 2, 0, -3, -4, -4, -3, -2, -3, -4, //16000
-1, 2, 4, 5, 4, 3, 0, -7, -6, -4, -2, 0, 0, 1, -1, -5, //16016
-4, -1, 2, 3, 1, -2, -2, -2, 0, 3, 5, 6, 5, 4, 4, 4, //16032
3, 3, 0, -5, -6, -6, -6, -5, -1, 1, 1, 0, -3, -5, -5, -1, //16048
-1, -2, -1, -1, 0, 1, 1, 2, 2, 0, -1, -3, -6, -6, -4, -4, //16064
-4, -2, -1, 1, 1, 4, 4, 2, 1, -1, -6, -3, 0, 3, 5, 4, //16080
0, -2, -4, -6, -5, -3, -1, -2, -4, -3, -1, 2, 3, 3, 3, 3, //16096
3, 0, -1, 0, 1, 3, 3, 3, 1, -2, -1, 0, 1, 0, -1, -2, //16112
-4, -4, -4, -2, 0, 1, 3, 5, 3, 0, -3, -6, -6, -2, 1, 3, //16128
6, 7, 6, 3, 0, -4, -6, -6, -6, -3, -1, 2, 5, 6, 3, 2, //16144
1, -1, -4, -4, -1, -1, -1, -1, -2, -2, -1, -2, -3, -4, -5, -6, //16160
-5, -3, 1, 0, -5, -6, -4, -2, 2, 5, 4, 1, 0, 1, 0, 0, //16176
0, -2, -2, 2, 5, 6, 4, 2, -2, -5, -6, -4, 0, 3, 4, 3, //16192
1, 0, -1, -3, -3, -2, -1, -3, -3, -3, -3, -2, -2, -3, -2, 1, //16208
1, -1, -1, -1, 0, 1, 1, 1, 1, 2, 3, 3, 3, 0, -2, -5, //16224
-5, -2, 0, 0, -1, 0, 0, 1, 1, 0, -2, -3, -8, -10, -2, 1, //16240
0, -2, -5, -8, -6, -3, -2, -3, -3, -4, -8, -6, -4, -4, -4, 0, //16256
4, 5, 4, 1, -2, -4, -2, 1, 3, 0, -3, -9, -11, -9, -4, -2, //16272
1, 2, -1, -5, -6, -4, -2, 1, 3, 3, 3, 5, 5, 3, 0, -3, //16288
-4, -5, -3, -2, -3, -3, -1, 0, 2, 4, 5, 4, 0, 3, 3, 1, //16304
2, 4, 4, 4, 4, 3, 1, 1, -2, -5, -5, -2, -1, -2, -3, -3, //16320
-2, 0, 6, 9, 5, 2, 2, 3, 6, 11, 11, 7, 2, -1, -4, -2, //16336
1, 0, -2, -1, -1, -1, -2, -2, -2, -4, 1, 2, 2, 3, 4, 5, //16352
3, 0, -3, -3, -4, -5, -3, 0, 6, 9, 6, 0, -1, -2, -5, -5, //16368
0, 2, 4, 6, 5, 5, 3, -1, -4, -2, 1, 3, 2, 0, -2, -5, //16384
-5, -3, -2, 0, 1, 1, 0, -4, -2, 1, 2, 2, 2, 0, 0, 1, //16400
2, 3, 4, 2, 0, 2, 4, 2, 0, 2, 4, 3, 1, -1, -3, -5, //16416
-6, -6, -4, -2, -3, -5, -6, -5, -4, -6, -5, -1, 3, 5, 7, 6, //16432
3, 0, -2, -4, -5, -2, 2, 1, -2, -3, -2, -1, -2, -4, -6, -5, //16448
-1, 0, 1, 2, 2, -4, -9, -9, -8, -7, -4, 3, 5, 4, 0, -7, //16464
-17, -18, -15, -10, -6, -2, 0, 1, 2, 1, 0, -2, -3, -2, -1, 1, //16480
4, 5, 1, -3, -5, -6, -7, -5, -1, -1, -2, -3, -4, -6, -5, -4, //16496
-1, 2, 3, 2, 2, 1, 0, -1, -4, -3, -1, -1, -1, 2, 5, 3, //16512
1, -1, -4, -5, -2, -1, -1, -1, -2, -2, -2, -3, -3, 0, 4, 3, //16528
3, 4, 5, 5, 2, -1, -1, -2, -3, -5, 1, 5, 6, 6, 4, 1, //16544
0, 0, 0, 2, 4, 6, 4, 0, -5, -7, -4, 1, 2, 4, 7, 7, //16560
6, 0, -2, 0, -1, -5, -7, -5, -3, -3, -2, -2, 1, 1, 1, 2, //16576
3, 3, 1, 3, 3, 3, 5, 5, 6, 7, 5, 2, 0, -2, -2, -1, //16592
2, 4, 1, -2, -4, -3, 0, 3, 4, 1, -2, -3, -2, -2, -3, -1, //16608
5, 8, 7, 3, 0, 0, -1, -6, -7, -1, 0, -2, -3, -2, 1, 4, //16624
2, 0, 0, 3, 4, 3, 2, 1, 1, 1, 0, 2, 2, 3, 3, 0, //16640
-6, -7, -5, -3, -3, -2, 0, 1, 2, 3, 3, 1, -1, -3, -5, -5, //16656
-5, -2, 1, 4, 3, 1, -1, -2, -3, -7, -9, -9, -9, -7, -6, -5, //16672
-5, -7, -4, 1, 5, 7, 5, -1, -2, -3, -3, -3, -3, 0, 1, 1, //16688
1, -1, -3, -3, -2, -3, -5, -6, -6, -5, -3, 0, 1, 0, -6, -8, //16704
-9, -7, -3, 0, 3, 3, 2, 0, 0, -2, -3, -6, -9, -9, -8, 0, //16720
4, 4, 0, -4, -4, 4, 7, 7, 4, 2, -2, -5, -4, 0, 0, 0, //16736
-1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0, 1, 4, 6, 6, 3, //16752
-1, -5, -4, -2, 1, 2, 6, 5, 2, 0, 0, -2, -4, -5, -7, -6, //16768
-4, -4, 0, 2, 2, 0, -2, 3, 5, 5, 4, 2, 0, -3, -2, 0, //16784
0, -1, -1, 1, 3, 3, 2, 0, 0, 1, 2, 3, 4, 4, 8, 9, //16800
7, 3, 0, -3, -6, -7, -6, 0, 8, 6, 1, 1, 3, 3, 1, -5, //16816
-5, -3, 1, 3, 3, 2, 0, -4, -5, 0, 7, 6, 2, -1, -2, -2, //16832
0, 2, 2, 2, 3, 3, 5, 5, 3, 2, 1, 2, 3, 5, 6, 5, //16848
3, 2, -1, -3, -3, -3, -3, -4, 0, 5, 7, 7, 4, 4, 3, 1, //16864
-3, -8, -8, -5, -3, -1, 2, 2, -6, -10, -10, -6, 3, 10, 7, 0, //16880
-5, -7, -4, -2, -1, 0, 0, 0, -1, -1, -1, -1, -2, -5, -8, -4, //16896
2, 0, -3, -2, -2, -4, -6, -6, -6, -4, -1, 1, 3, 4, 0, -7, //16912
-9, -9, -10, -11, -13, -12, -10, -7, -4, -2, -5, -9, -9, -7, -3, 1, //16928
5, 2, -2, -5, -6, -5, -5, -3, -3, -7, -7, -5, -3, -1, -3, -7, //16944
-8, -2, 0, -1, -1, 2, 1, -7, -7, -5, -4, -2, 2, 4, 4, 1, //16960
-5, -10, -8, -7, -9, -11, -9, -7, 0, 5, 5, 3, 0, -3, -2, -1, //16976
0, 0, -2, -4, -7, -7, -5, -2, 0, -1, -4, -4, -3, -4, -3, 0, //16992
1, -1, -2, 0, -1, 0, 0, -1, -4, -8, -7, -4, -2, -1, 2, 5, //17008
4, 2, -2, -4, -4, -6, -10, -13, -13, -10, -5, 2, 3, 2, 0, -1, //17024
-1, 0, 1, 2, 2, -1, -4, -3, 1, 1, 1, 2, 0, 1, 1, -1, //17040
-3, -2, -2, -2, -2, 1, 6, 7, 4, -1, -5, -5, -3, -1, 1, 5, //17056
5, 3, 3, 1, -2, -2, -2, -5, -9, -10, -9, -7, -3, 4, 3, 2, //17072
2, -1, -3, 1, 4, 5, 5, 3, 2, 0, 0, 2, 3, 4, 3, -1, //17088
-3, -2, 2, 4, 1, -1, 0, 4, 8, 10, 7, 5, 3, -1, -5, -5, //17104
-1, 6, 10, 9, 6, 0, -2, -3, -3, -2, 0, 1, 1, 1, 1, 2, //17120
8, 7, 5, 4, 3, 2, 1, 1, 3, 6, 8, 8, 4, 3, 4, 5, //17136
7, 4, 1, 1, 4, 7, 8, 7, 6, 4, 4, 8, 11, 8, 4, 2, //17152
2, -1, 2, 5, 8, 13, 14, 9, 1, -3, -5, -4, -3, 1, 6, 6, //17168
5, 3, 0, 2, 7, 8, 6, 3, 2, 4, 4, 5, 6, 8, 7, 5, //17184
3, 2, 3, 2, 1, -1, -1, 4, 6, 4, 3, 3, 3, 4, 6, 6, //17200
3, 1, 0, -1, -1, 1, 3, 5, 7, 7, 1, -7, -10, -8, -4, -4, //17216
0, 4, 6, 6, 2, 1, 9, 10, 9, 5, 0, 0, 5, 6, 6, 4, //17232
2, -1, -4, -4, -1, 3, 4, -1, 0, 3, 7, 8, 5, 2, 2, 3, //17248
3, 1, 0, -1, -4, -4, -4, -4, -2, 0, 3, 5, 4, -1, -8, -10, //17264
-9, -5, -3, 0, 2, 2, 1, 1, 2, 2, -1, -4, -7, -7, -6, 0, //17280
2, 1, -4, -8, -11, -12, -9, -4, -2, -4, -7, -5, -3, 0, 0, -3, //17296
-7, -6, -6, -6, -6, -9, -12, -12, -9, -6, -4, -5, -5, -4, -4, -6, //17312
-11, -17, -15, -13, -13, -11, -8, -6, -5, -4, -4, -3, -7, -13, -15, -13, //17328
-9, -7, -5, -7, -8, -7, -7, -9, -11, -10, -9, -9, -12, -13, -10, -5, //17344
-2, -1, -6, -8, -9, -11, -11, -9, -10, -11, -10, -7, -3, -1, -5, -6, //17360
-7, -8, -12, -18, -18, -16, -14, -11, -7, -5, -5, -5, -4, 0, 2, -5, //17376
-11, -15, -14, -8, -2, 0, 0, -2, -2, 0, -2, -4, -5, -5, -5, -8, //17392
-7, -4, -1, 2, 4, 4, 1, -4, -7, -9, -7, 0, 0, 1, 5, 8, //17408
7, 1, 0, 1, 3, 1, -7, -8, -7, -6, -4, -1, 5, 5, 7, 11, //17424
11, 8, 1, -3, -5, -4, 1, 12, 13, 11, 10, 8, 10, 10, 5, 0, //17440
0, 1, 4, 12, 15, 15, 13, 12, 12, 10, 8, 3, 0, 0, 2, 3, //17456
10, 17, 15, 10, 2, 1, 2, 4, 7, 7, 6, 7, 5, 3, 5, 13, //17472
18, 19, 18, 14, 6, -2, -2, -1, 3, 7, 11, 12, 13, 15, 19, 19, //17488
10, 4, -1, -6, -7, 5, 14, 15, 12, 8, 3, 3, 7, 7, 4, 0, //17504
-2, 3, 8, 13, 17, 16, 7, 1, -3, -1, 3, 4, 2, 0, 0, -1, //17520
-4, -3, 5, 10, 12, 10, 7, 2, 1, 2, 1, -1, -1, 5, 11, 13, //17536
12, 8, 1, -6, -5, -3, -1, 1, 2, 5, 7, 5, 2, 0, -4, -4, //17552
-4, -6, -6, -5, -1, 1, 2, 2, 2, -2, -6, -6, -4, -3, -5, -8, //17568
-9, -10, -11, -11, -9, -6, -4, 0, 0, 0, 0, -2, -6, -11, -12, -7, //17584
2, 7, 7, 2, -5, -10, -10, -8, -4, -5, -10, -15, -11, -6, -3, -3, //17600
-7, -14, -15, -13, -9, -6, -5, -5, -5, -5, -4, -2, 0, -1, -6, -11, //17616
-12, -11, -13, -11, -11, -12, -12, -9, -8, -11, -12, -9, -8, -8, -7, -8, //17632
-9, -7, -5, -2, -1, -1, -2, -5, -7, -6, -6, -7, -8, -11, -7, -1, //17648
1, 2, 2, 1, -4, -5, -4, -5, -5, -3, -4, -5, -4, -2, 1, 5, //17664
3, 1, -2, -4, -4, -8, -12, -13, -11, -6, 6, 9, 7, 3, -1, -3, //17680
-3, 0, 2, 1, -2, -5, -2, 3, 8, 10, 6, 0, 0, 1, 3, 7, //17696
6, 2, -1, -2, -2, 2, 7, 7, 3, -1, -2, 1, 3, 2, 0, -2, //17712
-1, 2, 6, 7, 6, 4, 4, 4, 1, -3, -5, -5, -2, 4, 9, 9, //17728
8, 5, 1, -3, 0, 4, 2, 0, 0, 4, 8, 9, 8, 5, 1, 2, //17744
3, 4, 4, 3, -3, -3, -1, 2, 6, 7, 1, -2, -2, 0, 2, -1, //17760
-2, -1, 0, 1, 3, 3, 1, -1, -2, -3, -3, 5, 6, 3, 4, 5, //17776
5, 7, 7, 4, 1, 0, 1, 3, 5, 7, 4, -3, -3, -2, -1, 1, //17792
3, 0, -2, -2, -1, -1, -1, -3, -1, 2, 2, 1, 0, 0, 2, 4, //17808
6, 3, -3, -4, -4, -3, -1, -1, 3, 7, 4, -1, -4, -5, -3, -3, //17824
-4, -3, -4, -6, -2, 5, 9, 10, 6, -5, -8, -7, -4, -3, -4, -3, //17840
-1, 4, 8, 10, 6, 1, -3, -4, -5, -6, -2, 1, 3, 3, 3, 2, //17856
-2, -4, -6, -7, -8, -5, 1, 6, 6, 5, 4, 3, 3, 3, 0, -2, //17872
-4, -3, -3, -4, -5, -7, -8, -7, -1, 6, 8, 7, 3, 2, 2, 0, //17888
-3, -5, -5, -4, -1, 2, 2, 5, 6, 6, 6, 5, 2, -6, -7, -5, //17904
3, 9, 10, 9, 6, 2, 0, -2, -4, -5, -6, -5, -5, -2, 6, 10, //17920
9, 5, 3, 2, 3, 4, 4, 1, -2, -2, -3, -3, 1, 4, 4, 1, //17936
-2, -5, -9, -10, -4, 0, 5, 6, 9, 13, 9, 5, 0, -5, -8, -10, //17952
-8, -1, 6, 10, 10, 2, 0, 0, -1, -3, -1, 0, 2, 4, 4, 4, //17968
0, -4, -8, -11, -11, -10, -4, 1, 1, 0, 1, 1, -1, -2, -1, 2, //17984
5, 9, 6, 1, 0, -3, -8, -5, 1, 3, 2, 3, 4, 5, 4, 0, //18000
-4, -8, -13, -12, -7, -1, 4, 8, 6, 2, -3, -8, -11, -10, -3, 0, //18016
0, 1, 1, -2, -4, -4, -1, 2, 1, -1, -2, -4, -7, -8, -10, -4, //18032
2, 5, 5, 3, -4, -3, 0, 2, 2, 0, -2, -2, -1, 0, 2, 3, //18048
1, -1, -4, -6, -3, 2, 0, 0, 0, -2, -5, -2, -4, -10, -8, -6, //18064
-11, -10, -4, -1, 2, 0, -8, -7, -3, 0, 3, 9, 8, 3, 0, -2, //18080
-7, -2, 4, 3, 2, 1, -6, -13, -7, 1, 5, 5, 3, 1, -1, -2, //18096
-2, -1, 0, -2, -3, -2, 1, 0, -6, -7, -5, -6, -6, -6, -2, 1, //18112
6, 10, 11, 8, 2, -4, -8, -8, -6, -5, -5, -7, -7, -6, -4, -2, //18128
-1, -1, -1, -3, 1, 5, 6, 5, 2, 1, -5, -9, -9, -5, -2, 0, //18144
1, 6, 7, 2, 2, 10, 10, 7, 6, 4, -2, -11, -14, -12, -5, 0, //18160
-1, -2, -3, -7, -8, -5, -4, 2, 9, 5, 0, 3, 0, -9, -6, 3, //18176
3, -2, -5, -10, -15, -15, -10, 4, 8, 6, 3, 1, 2, 0, -1, -2, //18192
-4, -7, -7, -3, -1, 0, 2, 1, -5, -7, -7, -7, -6, 0, 5, 4, //18208
5, 7, 7, 6, 7, 6, -1, -7, -8, -1, 4, 4, 3, 3, 2, -1, //18224
-2, -2, -2, -4, -1, -1, -3, -2, 1, 2, -5, -3, 0, -4, -4, 2, //18240
3, 1, 2, 5, 7, 3, 2, 4, 5, 1, -2, -1, -4, -10, -13, -12, //18256
-9, 2, 6, 6, 7, 10, 11, 12, 10, 3, -2, -1, -2, -2, -2, -5, //18272
-8, -3, 5, 5, 7, 8, 5, 1, 3, 4, 4, 2, -4, -4, 1, 1, //18288
-1, 0, 1, -7, -8, -5, -1, 4, 7, 10, 10, 9, 6, 4, 3, 1, //18304
1, 0, -4, -6, -3, -4, -5, -5, -6, -2, -2, -4, -3, 1, 3, 3, //18320
6, 7, 4, 1, 3, 6, 5, 0, -2, -2, -3, -1, 2, 3, 0, 1, //18336
4, 2, 2, 5, 5, 3, 4, 6, 5, 2, -1, -5, -7, -7, -4, -1, //18352
-2, -5, -2, 2, -1, -3, 3, 9, 6, 5, 6, 5, -1, -4, -4, -4, //18368
-3, -3, -6, -4, -2, -1, 1, 4, 6, 7, 6, 3, 2, 4, 5, 4, //18384
2, -2, -5, -9, -8, -4, -1, 0, 2, 4, 2, 4, 10, 14, 12, 10, //18400
6, -2, -9, -14, -17, -19, -18, -14, -10, -3, -1, 1, 4, 6, 6, 2, //18416
-2, -7, -6, -1, -1, -4, -1, -1, -4, -7, -4, -1, 1, 2, 0, -5, //18432
-4, 0, 2, 3, 4, 4, -1, -6, -7, -2, 4, 6, 4, 4, 4, 2, //18448
-2, -2, -1, -1, -1, -1, 2, 1, -3, -7, -6, -3, -6, -8, -7, -6, //18464
-4, -1, 2, 4, 6, 5, 1, -3, -4, -6, -8, -9, -10, -11, -12, -10, //18480
-5, -2, -1, 1, 3, 3, 3, 6, 10, 9, 6, 3, -1, -3, -4, -4, //18496
-2, 0, -2, -6, -5, -3, -5, -5, -1, 0, 1, 5, 9, 9, 7, 5, //18512
2, -1, -2, -1, 0, -1, 0, 1, 0, -1, -3, 1, 5, 5, 4, 2, //18528
-6, -9, -9, -8, -6, -3, 2, 1, -3, -5, -5, -6, -5, -3, 0, 3, //18544
6, 11, 13, 12, 10, 7, 4, 1, 0, -2, -5, -8, -6, -3, -1, 2, //18560
3, 6, 10, 10, 11, 13, 11, 4, -7, -10, -11, -11, -8, -3, 0, 2, //18576
4, 5, 7, 6, 2, 2, 3, 2, 0, -2, -1, 0, 1, 1, 0, -3, //18592
-6, -6, -5, -5, -2, -1, 0, 1, 2, 2, 1, -1, -2, -2, -3, -3, //18608
-3, -1, 0, -2, 2, 10, 9, 6, 6, 3, -1, -1, 0, -1, 0, -1, //18624
-6, -7, -5, -2, -2, -3, -6, -4, -2, -1, 0, 0, -3, -2, 0, 4, //18640
6, 3, 4, 6, 6, 4, 1, -2, -2, -1, 0, 1, -1, -3, -2, -1, //18656
0, 0, 1, 4, 5, 5, 6, 6, 6, 4, 2, 2, 2, 2, 2, 1, //18672
0, -1, -1, -2, -2, 0, 1, 1, 3, 3, 0, 0, 1, 0, 0, 1, //18688
0, 0, 1, 4, 3, 3, 3, 1, 1, 1, -2, -1, 0, 0, -3, -5, //18704
-5, -4, -4, -6, -9, -4, 1, 2, 2, 3, 3, 0, -2, -2, -2, -2, //18720
0, 0, -2, -3, -4, -4, -5, -5, -3, -1, 0, 0, 2, 1, 0, 1, //18736
2, 2, 1, 1, 2, 2, 2, 3, 3, 1, -1, -2, -3, -9, -11, -10, //18752
-7, -4, -1, 1, 2, 1, -2, -4, -4, -3, -1, 0, 0, -1, -2, -2, //18768
-3, -3, -1, 0, -1, -1, -1, -2, -2, -4, -2, -2, -3, -5, -5, -1, //18784
0, -1, -2, -4, -4, -3, 0, 4, 7, 8, 8, 8, 8, 7, 4, 0, //18800
-1, -1, -3, -7, -7, -5, -3, -2, -3, -3, -3, 0, 1, 2, 3, 2, //18816
-1, -3, -4, -4, -4, -2, -1, -3, -6, -6, -6, -8, -7, -5, -1, -1, //18832
-1, 2, 3, 2, 0, -3, -5, -6, -5, -6, -9, -10, -9, -7, -6, -6, //18848
-7, -7, -4, -2, 0, 0, -1, -2, 0, 0, -2, -3, -4, -5, -5, -6, //18864
-8, -8, -7, -5, -2, -1, -3, -4, -3, -4, -4, -2, -1, -3, -7, -10, //18880
-10, -9, -8, -6, -6, -4, -2, -1, -1, 0, -1, -3, -4, -4, -3, -3, //18896
-4, -2, 1, 3, 4, 2, 2, 1, 0, -2, -3, -2, -1, 0, 3, 6, //18912
7, 1, -2, -4, -1, 1, -1, 0, 0, -1, 0, 3, 2, 1, 1, -1, //18928
-4, -4, -4, -5, -5, -3, -2, -2, -1, 1, 4, 5, 4, 0, -3, -6, //18944
-6, -5, -2, 1, 2, 2, 3, 3, 4, 5, 6, 5, 2, 0, 0, 1, //18960
0, 0, 0, 0, -1, -1, 0, 3, 3, 3, 3, 4, 7, 7, 5, 3, //18976
3, 2, 1, -1, 0, 0, -2, -2, 0, 3, 5, 6, 9, 10, 9, 9, //18992
7, 5, 4, 1, 1, 2, 1, 2, 2, 3, 3, 4, 4, 4, 3, 2, //19008
0, 1, 2, 1, 0, 0, 3, 5, 7, 6, 5, 6, 6, 6, 7, 7, //19024
7, 4, 2, 1, 1, 2, 4, 5, 7, 8, 8, 8, 8, 5, 3, 1, //19040
1, 3, 5, 5, 4, 3, 2, -1, -1, 2, 2, 1, 0, 0, 0, 0, //19056
-1, -1, 0, 2, 4, 4, 5, 5, 3, 1, 3, 4, 3, 0, -2, -2, //19072
-1, -1, -2, -2, -2, 1, 2, 3, 3, 2, 2, 1, -1, -2, -3, -5, //19088
-5, -3, -1, 0, 1, 3, 3, 3, 2, 1, 1, -1, 0, 1, 0, -1, //19104
-3, -3, -1, 0, -2, -5, -7, -5, -4, -3, -1, -1, -2, -1, 0, 0, //19120
0, -1, -5, -5, -4, -4, -4, -4, -4, -3, -2, -1, 1, 0, -3, -5, //19136
-7, -7, -6, -4, -3, -3, -3, -3, -4, -4, -5, -6, -6, -6, -3, -2, //19152
-2, -2, -3, -3, -2, -2, -3, -3, -4, -5, -7, -6, -5, -5, -6, -5, //19168
-2, -1, -1, -1, -4, -7, -7, -7, -6, -5, -5, -6, -6, -5, -3, -3, //19184
-3, -3, -3, -3, -3, -3, -1, -3, -4, -3, -1, -1, 0, 0, -2, -2, //19200
-1, 1, 1, 0, -1, -1, -1, 1, 1, 2, 1, 1, 0, 0, 0, 0, //19216
-1, -1, -1, -1, -1, 0, 1, 1, -2, -4, -5, -4, -2, -1, -2, -3, //19232
-4, -5, -5, -2, -3, -6, -5, -2, -1, 0, 0, -1, -3, -3, -3, -2, //19248
-1, -2, -3, -2, 0, 0, 0, -1, -1, -1, 0, 1, 2, 3, 3, 2, //19264
3, 2, 1, 0, -1, 0, 2, 2, 1, 1, 0, -2, -1, -1, -2, -2, //19280
-3, -4, -3, 0, 1, 2, 2, 3, 4, 4, 5, 5, 5, 3, -1, -2, //19296
-2, -2, 0, 0, 1, 4, 6, 4, 4, 4, 3, 3, 3, 3, 1, 1, //19312
2, 1, -2, -1, 0, 2, 4, 6, 7, 7, 6, 5, 4, 2, 0, -2, //19328
-2, -2, -1, 3, 3, 4, 6, 6, 3, 1, 0, -2, -4, -4, -2, -2, //19344
-1, 0, 0, 0, 3, 5, 5, 4, 3, 3, 1, 2, 2, 2, 2, 0, //19360
-1, 0, 1, 2, 2, 2, 3, 2, 1, -1, -1, -1, 0, 1, 2, 2, //19376
2, 2, 0, 0, 1, 2, -1, -1, 1, 1, 0, -2, -3, -3, -4, -4, //19392
-1, 1, 1, 1, 0, -1, 0, 2, 1, 0, 0, 0, -2, -1, 0, 1, //19408
2, 1, 2, 3, 2, 1, 0, 0, 0, -1, -1, -1, -1, 0, 0, 2, //19424
3, 3, 3, 3, 2, 1, 1, 0, 0, 0, 2, 4, 4, 3, 1, -1, //19440
-3, -3, -4, -4, -2, 0, 0, -1, -1, 0, 1, 0, 1, 1, -1, 1, //19456
2, 2, 1, 0, -2, -5, -4, -3, -2, 0, 0, 1, 2, 2, 1, 1, //19472
3, 1, -1, -1, -1, -3, -5, -5, -4, -3, -1, 0, -1, -1, 0, 1, //19488
0, 0, 0, 0, -1, -2, -2, -2, -2, -1, 1, 0, -2, -4, -5, -5, //19504
-4, -3, -2, -1, -1, -1, -2, -3, -4, -5, -5, -4, -3, -2, -2, -2, //19520
-3, -4, -5, -4, -2, 0, 2, 4, 5, 4, 3, 2, 0, -1, -3, -6, //19536
-5, -5, -5, -3, -1, -2, -3, -2, -2, -1, 1, 0, -2, -2, -2, -5, //19552
-4, -4, -4, -5, -4, -3, -1, 0, 0, -1, -1, -2, -3, -2, 0, 2, //19568
2, 1, -1, -2, -2, -1, -1, -1, 1, 1, 0, 0, -1, -2, -1, 0, //19584
2, 2, 3, 2, 0, -1, -2, -3, -4, -5, -6, -6, -5, 0, 1, 2, //19600
4, 5, 5, 5, 4, 3, 2, 0, -3, -3, -2, -2, -2, -1, 0, -2, //19616
-3, -3, -3, -3, -3, -4, -4, -4, -4, -6, -6, -4, -3, -3, -4, -3, //19632
-1, -1, -1, 0, 0, 0, 0, 1, 3, 3, 0, -1, -2, -3, -3, -2, //19648
1, 2, 3, 3, 2, 2, 1, -1, -2, -3, -3, -2, -1, 1, 3, 3, //19664
1, 1, 1, 1, 0, 0, -1, 0, 1, 2, 3, 4, 5, 5, 4, 1, //19680
1, 0, -1, -1, -1, -1, -1, -2, -3, -2, 0, 0, 0, 0, 1, 1, //19696
1, 2, 1, 0, 0, -1, -2, -4, -5, -5, -3, -2, -1, 1, 1, 2, //19712
2, 3, 4, 3, 2, 1, -1, -2, -3, -2, -1, -1, 0, 1, 3, 3, //19728
1, -1, -1, 0, 1, 1, 0, -1, -3, -3, -4, -3, -1, -1, -1, -1, //19744
0, -1, -1, 0, -1, -1, 0, 2, 3, 4, 4, 3, 0, -1, -2, -2, //19760
-2, -1, -2, -3, -4, -5, -5, -4, -2, 0, 0, 1, 1, 1, 0, -1, //19776
-2, -3, -3, -3, -2, -1, 0, 1, 0, 0, -1, -3, -3, 0, 0, -1, //19792
-2, -2, -1, -1, -1, -1, -2, -3, -3, -3, -2, -1, -1, -1, -2, 1, //19808
1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 0, 0, 1, 2, 2, 2, //19824
2, 2, 2, 2, 2, 1, 2, 2, 1, 0, -2, -3, -2, 0, 1, 2, //19840
2, 2, 2, 2, 2, 1, 0, -2, -2, -2, -2, -3, -3, -1, -1, -2, //19856
-3, -5, -6, -6, -6, -6, -5, -3, -1, -1, 0, 2, 2, 1, 0, -1, //19872
-2, -2, -2, -3, -3, -3, -3, -2, 0, 1, 1, 1, 3, 4, 2, 2, //19888
2, -1, -1, -2, -3, -3, -2, -1, -2, -2, -2, -1, 0, 1, 3, 4, //19904
4, 4, 3, 3, 2, 1, 0, 0, 0, -3, -2, 0, -1, -1, -2, -2, //19920
-2, -2, -2, -2, -1, -2, -3, -3, -2, -1, 1, 3, 4, 3, 3, 3, //19936
2, 1, 0, -1, -3, -3, -1, 1, 1, 1, 1, 0, 0, -1, 0, 0, //19952
0, 1, 1, -1, -1, -1, -1, -3, -2, -1, 0, 1, 0, -2, -4, -5, //19968
-5, -3, -3, -2, -1, 0, 0, 1, 1, 1, 0, 0, 0, -2, -3, -3, //19984
-3, -2, -2, -2, -3, -3, -2, -3, -3, -2, 0, 1, 1, 2, 1, 1, //20000
1, 0, 0, 1, 1, 0, -1, -2, -3, -3, -3, -4, -4, -3, -1, -2, //20016
-2, -2, -2, -2, -2, -4, -4, -4, -4, -3, -2, -1, -1, -2, -2, -2, //20032
0, 0, 0, -1, -2, -2, -1, -2, -2, -1, -1, -1, 0, 1, 2, 2, //20048
0, -3, -2, -2, -2, -2, -2, 0, -1, -1, -1, -1, 0, -1, 0, 0, //20064
0, 0, -1, -2, -1, -1, -3, -3, -3, -3, -2, -2, -2, -2, -1, -1, //20080
-2, -3, -4, -5, -4, -4, -4, -4, -4, -2, -1, 0, 3, 3, 3, 3, //20096
1, 0, 0, 0, 3, 3, 1, -1, -2, -2, -1, 0, 0, 0, 0, 1, //20112
0, -1, -1, -1, -1, -2, -1, 1, 3, 3, 4, 1, 1, 1, 0, 0, //20128
2, 3, 3, 2, 1, 0, -1, -2, -1, -1, 0, 0, 0, 0, -2, -2, //20144
-1, -2, -2, -2, -2, -1, 0, 0, 0, 0, 0, 0, 1, 2, 2, 3, //20160
5, 5, 5, 5, 4, 4, 5, 5, 3, 2, 0, -1, -2, 0, 2, 1, //20176
1, 2, 3, 3, 4, 5, 5, 5, 3, 4, 4, 5, 7, 6, 4, 2, //20192
1, 1, 1, 2, 3, 1, 0, 0, 0, 0, 3, 5, 4, 3, 3, 0, //20208
-1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, -1, -2, -2, -3, //20224
-4, -4, -3, -3, -2, -2, -2, -1, -1, 0, 0, 1, 0, -1, -1, 0, //20240
0, 0, -1, -1, -1, -2, -2, 1, 1, 1, 0, -1, -3, -1, 0, -1, //20256
-3, -4, -4, -3, -2, -3, -4, -4, -3, -4, -4, -3, -2, -2, -2, -2, //20272
-2, -3, -3, 0, 1, 1, 1, 0, -2, -3, -3, -2, -1, 0, -2, -3, //20288
-3, -2, -1, 0, 1, 0, -1, -3, -5, -5, -5, -3, -2, -2, -3, -3, //20304
-2, -1, -1, -1, -1, -1, -1, -1, -2, -3, -4, -3, -3, -2, -1, -2, //20320
-4, -4, -4, -5, -5, -5, -6, -6, -5, -4, -3, -3, -1, -2, -3, -3, //20336
-3, -4, -5, -5, -5, -5, -3, -2, -2, -1, -1, -1, -1, -1, -1, -1, //20352
-1, -1, -3, -3, -1, 0, 0, -2, -4, -4, -4, -3, -3, -3, -4, -5, //20368
-6, -7, -7, -4, -3, -3, -4, -4, -4, -2, -2, -2, -2, -2, -2, -3, //20384
-3, -2, -1, 0, 0, 2, 3, 3, 2, 1, 1, 2, 3, 4, 5, 4, //20400
4, 2, 1, 1, 1, 1, 1, 1, 0, -1, -3, -2, 0, 1, 2, 2, //20416
1, 1, 1, 1, 2, 2, 3, 2, 2, 3, 3, 3, 4, 4, 5, 5, //20432
5, 7, 6, 5, 5, 4, 4, 5, 2, 1, 0, 0, 3, 5, 5, 4, //20448
3, 2, 4, 4, 5, 5, 3, 1, 1, 2, 3, 4, 5, 5, 4, 5, //20464
5, 5, 5, 4, 1, 0, 1, 3, 5, 4, 2, 0, -1, 0, 1, 2, //20480
2, 1, 0, -2, -1, 1, -1, -1, 1, 1, 3, 5, 6, 6, 4, 2, //20496
3, 4, 4, 4, 3, 3, 3, 2, 4, 4, 2, 3, 3, 4, 5, 6, //20512
7, 2, 0, 1, 1, 1, 1, -1, -2, -1, 2, 2, 1, 0, 1, 0, //20528
0, 2, 1, -1, 0, 0, -1, -1, 1, 1, 0, -1, -1, -3, -3, -3, //20544
-2, -1, 0, 2, 1, 0, 0, 0, -1, -2, -2, -2, -2, -3, -4, -6, //20560
-7, -7, -7, -8, -8, -8, -10, -11, -11, -9, -8, -8, -8, -9, -9, -9, //20576
-9, -8, -8, -8, -7, -6, -7, -7, -7, -8, -9, -8, -7, -8, -9, -10, //20592
-11, -10, -9, -8, -8, -11, -12, -12, -12, -9, -7, -9, -11, -11, -11, -11, //20608
-10, -10, -10, -11, -10, -8, -5, -4, -4, -5, -7, -7, -6, -5, -4, -3, //20624
-4, -6, -7, -7, -7, -6, -5, -5, -5, -5, -4, -2, -2, -4, -6, -5, //20640
-3, -3, -3, -1, -3, -3, -2, -1, 1, 1, 2, 3, 4, 5, 6, 3, //20656
2, 3, 4, 6, 9, 10, 9, 7, 5, 3, 3, 5, 5, 2, 2, 2, //20672
3, 5, 5, 4, 4, 4, 6, 7, 7, 7, 7, 6, 4, 4, 7, 10, //20688
9, 8, 7, 5, 6, 7, 10, 11, 10, 10, 10, 12, 14, 13, 12, 12, //20704
12, 10, 9, 8, 6, 3, 1, 1, 2, 3, 4, 4, 3, 4, 5, 5, //20720
5, 5, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 5, 6, 6, 6, //20736
6, 6, 6, 7, 7, 7, 7, 5, 6, 5, 5, 5, 3, 1, 0, 1, //20752
2, 2, 2, 2, 0, 0, 2, 4, 5, 5, 5, 4, 4, 5, 5, 5, //20768
6, 6, 5, 4, 4, 7, 7, 4, 2, 3, 4, 6, 6, 5, 4, 3, //20784
3, 5, 5, 3, 3, 3, 2, 3, 4, 7, 8, 4, 3, 2, 2, 3, //20800
5, 5, 5, 5, 4, 4, 6, 6, 6, 7, 8, 8, 6, 7, 7, 6, //20816
4, 2, 2, 3, 3, 2, 1, -1, -1, -1, -2, -2, -2, -2, -3, -3, //20832
-3, -2, -2, -5, -6, -5, -5, -6, -6, -3, -4, -5, -6, -7, -7, -8, //20848
-9, -8, -8, -8, -9, -10, -9, -10, -11, -11, -12, -14, -16, -17, -17, -17, //20864
-18, -18, -17, -17, -18, -19, -20, -20, -19, -19, -18, -17, -17, -18, -20, -20, //20880
-20, -20, -20, -21, -21, -19, -19, -20, -19, -19, -19, -18, -18, -18, -19, -19, //20896
-17, -17, -17, -18, -19, -19, -18, -18, -18, -19, -19, -19, -19, -18, -16, -13, //20912
-12, -13, -15, -15, -16, -16, -16, -14, -12, -11, -12, -12, -12, -9, -10, -11, //20928
-12, -12, -11, -10, -8, -6, -6, -5, -5, -5, -6, -5, -5, -5, -5, -4, //20944
-4, -4, -4, -4, -1, 0, 0, 0, 1, 3, 4, 5, 5, 5, 3, 2, //20960
1, 2, 3, 3, 3, 3, 2, 1, 1, 4, 6, 7, 6, 4, 4, 6, //20976
8, 9, 9, 8, 9, 9, 8, 8, 8, 8, 8, 7, 8, 8, 8, 9, //20992
10, 9, 8, 9, 9, 10, 12, 12, 12, 12, 12, 12, 12, 12, 11, 10, //21008
10, 10, 9, 7, 8, 8, 7, 7, 10, 12, 13, 11, 8, 8, 7, 7, //21024
8, 8, 9, 10, 10, 13, 14, 14, 14, 12, 14, 14, 13, 12, 14, 13, //21040
11, 13, 13, 11, 11, 12, 13, 14, 14, 14, 13, 13, 12, 10, 11, 12, //21056
10, 8, 9, 12, 14, 12, 14, 14, 13, 14, 16, 14, 12, 13, 14, 14, //21072
11, 10, 10, 10, 10, 10, 10, 13, 14, 10, 6, 4, 4, 6, 9, 12, //21088
11, 8, 9, 9, 8, 7, 8, 7, 3, 2, 1, 2, 5, 4, 3, 5, //21104
5, 4, 4, 5, 7, 8, 5, 1, 1, 1, 1, 1, 0, -2, -2, -2, //21120
-3, -4, -3, -1, -2, -5, -4, -1, 0, -2, -4, -6, -5, -6, -10, -13, //21136
-11, -8, -7, -8, -9, -7, -7, -8, -5, 0, -4, -9, -10, -7, -4, -5, //21152
-5, -7, -11, -11, -12, -12, -9, -7, -6, -5, -6, -8, -7, -5, -3, -6, //21168
-13, -14, -13, -14, -17, -13, -2, -4, -10, -15, -18, -15, -12, -12, -9, -9, //21184
-12, -8, -9, -9, -7, -6, -10, -10, -7, -7, -7, -5, -5, -8, -8, -6, //21200
-6, -7, -8, -8, -7, -5, -2, -2, -3, -5, -4, -3, -4, -5, -4, -5, //21216
-7, -7, -4, -2, -1, 0, -2, -6, -8, -8, -6, -6, -7, -6, -5, -7, //21232
-4, -2, -1, -1, -5, -9, -13, -11, -4, 0, 2, 5, 3, -5, -8, -5, //21248
-4, -3, 0, 2, 0, -1, -2, -1, 1, 4, 4, -2, 0, 2, -1, -6, //21264
-5, -4, -10, -13, -9, -5, 0, 3, -1, -4, 0, 0, -5, -6, -5, -5, //21280
-7, -8, -8, -8, -2, 5, 8, 5, 2, 2, 2, -2, -2, 5, 5, 4, //21296
4, 1, 1, 8, 4, -3, -4, -1, -8, -9, -7, -3, 1, 4, 7, 8, //21312
8, 7, 2, -4, -2, -2, -4, -7, -8, -2, 0, 3, 3, -2, -2, 3, //21328
2, 1, 2, 4, 4, 2, 4, 4, 2, 4, -1, -6, -4, 0, -1, -3, //21344
-4, -4, -2, 2, 3, 2, 2, 1, 0, -1, -1, 0, -2, -4, -4, -2, //21360
3, 2, 1, 2, -1, -6, 1, 3, 1, 1, 3, 5, 11, 16, 13, 5, //21376
3, 0, -7, -8, -7, -2, 4, 3, 2, -1, -6, -6, -2, 2, 4, 3, //21392
0, 2, 5, 2, -3, -9, -11, -10, -5, -5, -4, -3, -5, -4, 5, 8, //21408
6, 6, 7, 6, 5, 5, 4, 4, 3, -7, -10, -9, -6, -5, -5, -3, //21424
-5, -4, 0, 5, 13, 14, 3, -3, -4, -8, -7, -5, -5, -4, -2, -2, //21440
6, 14, 19, 19, 20, 19, 5, -3, -5, -1, 2, 4, 2, -1, -1, 3, //21456
5, 8, 9, 8, 7, 6, 4, 4, 4, 5, 7, 9, 3, 3, 10, 10, //21472
3, 3, 3, -4, -2, 5, 6, 9, 12, 8, 2, 4, 12, 3, -4, -1, //21488
2, 1, 0, 0, 0, 4, 11, 13, 11, 11, 10, 4, -3, -3, 3, 3, //21504
4, 4, 3, 1, 2, 2, 0, -5, -8, -2, 2, 4, 8, 12, 12, 7, //21520
5, 0, -1, 3, 3, -1, 2, 4, 0, -1, 1, 0, -2, -5, -5, -3, //21536
0, 0, 0, 0, -1, -4, -7, -7, -7, -7, -4, -1, 0, 2, 4, 6, //21552
3, -3, -5, -7, -7, -6, -5, 0, 6, 12, 15, 15, 13, 9, 4, 6, //21568
5, 0, -3, -6, -11, -10, -5, 2, 7, 7, 3, -1, -1, -2, -8, -12, //21584
-7, -5, -6, -1, -2, -5, 2, 6, 2, 1, -4, -10, -8, -5, -7, -11, //21600
-12, -12, -14, -13, -6, -5, 0, 7, 5, 4, 4, 1, -1, -1, 1, -6, //21616
-10, -8, -8, -8, -5, -9, -11, -9, -8, -8, -5, -5, -5, -5, -5, -6, //21632
-11, -9, -4, -1, 0, 1, -4, -5, -5, -8, -11, -10, -8, -6, -4, -6, //21648
-11, -13, -12, -9, -4, -1, -1, 3, 3, 1, 0, -1, -6, -5, -5, -8, //21664
-7, -3, -2, -2, 0, 4, 3, -2, 2, 6, 5, 4, 3, -1, -3, -5, //21680
-8, -11, -7, -1, -2, -3, -3, -3, -3, -6, -4, 0, -2, -4, -1, 1, //21696
1, 0, 0, -2, -10, -7, -2, 0, 5, 7, -2, 3, 10, 8, 5, 3, //21712
1, -5, -8, -3, 2, 8, 8, 3, -2, -3, 0, 2, 0, -1, -1, -1, //21728
3, 4, 3, 0, -4, -8, -11, -11, -10, -8, -6, -5, 0, 3, 3, 5, //21744
7, 7, 10, 16, 17, 12, 7, 4, 2, 0, -2, -2, -1, -2, -4, -5, //21760
-3, 3, 9, 10, 12, 13, 8, 3, -2, -1, -1, -4, -3, -1, -2, -2, //21776
-2, -2, 1, 6, 5, 3, 3, 4, 6, 9, 12, 11, 6, 3, 1, -2, //21792
-3, -3, -3, -3, 0, 1, 3, 8, 12, 10, 8, 7, 3, 0, -2, -5, //21808
-4, 0, 4, 6, 8, 7, 4, 4, 4, 3, 2, 8, 12, 13, 10, 9, //21824
8, 5, 3, -1, -4, -5, -4, -3, -1, 0, 2, 3, 7, 8, 7, 5, //21840
5, 2, -1, -3, -5, -5, -4, -4, -3, 1, 3, 2, 0, -2, -2, -2, //21856
-2, 0, 7, 11, 14, 14, 11, 10, 6, 5, 6, 5, 0, -5, -7, -6, //21872
-3, -3, -2, 3, 4, 3, 0, -1, -1, -5, -6, -4, -2, -4, -6, -7, //21888
-5, -2, 1, 1, -2, -4, -6, -7, -6, -3, -2, -4, -7, -9, -8, 0, //21904
3, 1, 0, -1, -5, -6, -4, -3, -2, -1, -1, -5, -7, -6, -4, -4, //21920
-5, -8, -8, -3, 0, 2, 3, 0, -2, -2, -1, -1, -2, -3, -6, -10, //21936
-9, -5, -5, -6, -5, -3, -4, -5, -8, -8, -7, -5, -2, 3, 3, 3, //21952
4, 6, 6, 3, 2, 1, -2, -4, -6, -5, -5, -6, -7, -6, -1, 2, //21968
3, 3, 0, -7, -9, -9, -9, -10, -11, -9, -8, -7, -4, -6, -8, -7, //21984
-9, -9, -9, -8, -1, -1, -3, -6, -10, -10, -2, 2, 3, 2, -1, -2, //22000
-1, -1, -2, -3, -5, -4, -3, -2, -1, 0, -1, -8, -9, -9, -9, -8, //22016
-4, -1, -4, -5, -6, -5, 0, 0, -2, -3, -2, -1, -2, 0, 1, 0, //22032
-1, -1, -5, -4, -1, -2, -5, -9, -8, -1, 4, 7, 8, 7, 7, 7, //22048
6, 6, 4, 2, 2, 0, -3, -5, -6, -6, -4, -3, -1, 2, 7, 9, //22064
9, 10, 11, 8, 8, 7, 5, 3, 1, -2, -2, 0, 1, 0, 0, 3, //22080
6, 9, 10, 10, 9, 7, 5, 1, -2, -3, -3, -3, -3, -2, -1, -1, //22096
-2, 0, 2, 3, 5, 3, 0, -3, -3, -2, 0, 1, 2, 2, 2, 3, //22112
4, 8, 8, 6, 5, 5, 3, 2, 1, 0, -1, -1, -1, 1, 1, 1, //22128
0, -3, -5, -7, -6, -2, 0, -1, 0, 2, 2, 2, 3, 1, -3, -5, //22144
-4, -3, -1, -2, -6, -8, -9, -9, -5, -2, 0, 0, -1, -2, -1, 2, //22160
4, 3, 3, 3, 3, 1, -2, -2, -1, -1, 1, 1, 0, 0, 3, 5, //22176
5, 4, 3, 1, 0, -1, -3, -3, -2, -2, 0, 0, -2, -1, 2, 3, //22192
3, 3, 2, 1, -1, -3, -2, 1, 5, 5, 3, 8, 10, 9, 8, 6, //22208
4, 8, 12, 12, 8, 4, 0, -1, 1, 3, 2, -1, -3, -2, -1, 2, //22224
4, 1, -1, -3, -3, -1, 1, 3, 3, 1, -1, -3, -2, 1, 1, 0, //22240
-3, -6, -6, -4, -3, -1, 2, 3, 1, 0, 1, 2, 4, 3, -4, -5, //22256
-5, -4, -3, -3, -5, -7, -6, -5, -6, -4, -2, -2, -3, -6, -6, -2, //22272
-1, 0, -1, -3, -3, 0, 2, 3, 2, 0, -1, 0, 2, 3, 4, 4, //22288
1, -1, -2, -1, 0, 0, -1, -1, -2, -2, 0, -1, -3, -2, -1, -1, //22304
-2, -3, -3, -1, 0, -1, -1, -2, -1, 1, 0, -2, -3, -2, 0, 3, //22320
4, 3, 0, 1, 1, 1, 1, -1, -2, -4, -6, -6, -4, -4, -5, -5, //22336
-6, -7, -6, -3, -2, -1, 2, 3, 2, 1, 1, 0, 1, 1, -3, -6, //22352
-8, -8, -6, -3, -1, -3, -5, -4, 0, 3, 1, -1, -2, -2, -1, -3, //22368
-5, -6, -5, -3, -2, 0, 0, -1, -2, -4, -4, 0, 2, 1, -3, -5, //22384
-3, -1, 0, -1, -2, -3, -2, -1, 0, 2, 1, -2, -1, 2, 2, -1, //22400
-3, -5, -5, -3, 0, 1, 1, 2, 2, 3, 5, 5, 6, 8, 7, 6, //22416
4, 2, -2, -4, -4, -3, -4, -5, -6, -5, -3, -2, 0, -1, -3, -5, //22432
-4, 0, 3, 1, -1, -1, 0, 1, 1, 3, 2, 1, 1, 0, 0, 1, //22448
2, 2, 0, -2, -3, -2, 0, 2, 0, -2, -3, -4, -4, -3, -1, 0, //22464
0, 0, -1, -3, 0, 2, 3, 2, 1, 1, 4, 7, 6, 3, 3, 2, //22480
-4, -5, -6, -5, -2, -2, -2, -5, -6, -3, -1, 0, -1, -3, -4, -4, //22496
-4, -1, -1, 0, 0, -1, -3, -4, -4, -3, -2, 0, 0, 1, 2, 2, //22512
1, 1, 1, 0, -2, -2, -1, -1, -2, -2, -4, -7, -7, -4, -2, -1, //22528
-1, -2, -3, 1, 3, 3, 1, -2, -3, -4, -3, -1, 0, -1, -2, -4, //22544
-5, -5, -1, 2, 0, -1, 0, 1, 1, 1, 3, 3, 2, 2, 2, 0, //22560
0, 1, 0, -1, -2, -3, -3, -1, 1, -2, -2, 0, -1, -1, 0, 1, //22576
3, 2, 0, -2, -2, 1, -1, -3, -5, -8, -6, -4, -3, -3, -2, -2, //22592
-4, -1, 2, 3, 2, 0, -1, -1, 1, 1, 0, -1, 0, 2, 1, 2, //22608
3, 2, 1, 1, -1, -1, -1, -2, -2, -1, 0, 0, 0, -1, 0, 2, //22624
4, 3, 1, -1, -3, -4, -4, -1, 0, -2, -2, -2, -3, -3, -1, -2, //22640
-2, -1, 2, 2, 3, 3, 1, 1, 4, 5, 4, 5, 5, 1, -1, 3, //22656
3, 2, 1, 0, -2, -4, -1, 2, 2, 2, 4, 4, 4, 5, 5, 4, //22672
3, 2, 0, -3, -2, 0, 0, 2, 2, 0, -3, -2, 1, 2, 3, 3, //22688
1, 0, 0, 0, 1, 2, 2, -1, -3, -3, -3, -3, -2, -2, -1, 1, //22704
1, 1, 3, 4, 4, 3, 2, 1, 3, 4, 3, 1, -1, -3, -2, 0, //22720
0, -3, -2, -3, -2, 0, 0, -1, -2, -1, -2, -3, -2, -2, -3, -2, //22736
-4, -5, -4, -2, -2, -1, 1, 3, 0, -2, -1, -1, 0, 0, -1, -1, //22752
0, 0, -1, -2, -4, -7, -6, -3, 1, 1, 1, 1, 0, -1, -1, 0, //22768
1, 1, 2, 1, 1, 1, 0, 0, -1, -3, -3, -4, -4, -4, -4, -1, //22784
0, -2, -3, -3, -2, -1, 0, 1, 2, 2, 1, 2, 2, -1, -1, 0, //22800
0, 0, -1, 0, -1, -3, -2, -2, -3, -3, -3, -1, 0, 0, 1, 2, //22816
3, 2, 1, 1, 0, 1, 2, 1, 0, 0, 0, -1, 0, 1, 2, 3, //22832
5, 4, 1, 0, 0, 0, 0, 0, 0, -1, -2, -3, -5, -4, -2, -2, //22848
-1, -1, -1, -1, 0, 0, 0, 2, 5, 4, 2, 3, 5, 6, 5, 2, //22864
0, -1, -2, -3, -4, -4, -4, -3, -1, 2, 1, 2, 6, 5, 3, 3, //22880
4, 3, 2, 4, 4, 4, 6, 4, 2, 0, -2, -2, -4, -2, 0, 1, //22896
2, 2, 2, 2, 1, 0, -3, -3, -2, -3, -2, -1, 1, 1, -1, -2, //22912
-2, -1, 0, 0, 2, 2, 2, 2, 3, 6, 5, 3, 1, -2, -2, -2, //22928
0, 0, -2, -3, -5, -3, -2, -1, 2, 3, 1, 1, 1, 2, 3, 3, //22944
2, 1, 0, 0, 0, -1, -1, -2, -3, -2, -1, -1, -1, 0, 0, -2, //22960
-1, -3, -3, -1, 2, 2, 1, 2, 2, 1, -1, -3, -5, -4, -2, -2, //22976
-2, -1, 1, 1, 0, -1, -1, -1, -1, -2, -3, -5, -5, -4, -4, -3, //22992
0, 0, -3, -5, -5, -4, -2, 1, -1, -2, -1, 0, -1, -1, 2, 0, //23008
-2, -2, -2, -2, 0, 0, -1, -3, -1, 1, 2, 3, 3, 2, 1, 1, //23024
2, 1, 0, 1, 2, 2, 2, 2, 2, 0, 0, 0, -2, -4, -5, -3, //23040
0, 2, 2, 1, -1, -1, -1, -1, -1, -1, -2, -1, 0, 0, -1, -3, //23056
-4, -3, -2, -1, 2, 2, 0, -1, -1, -2, -2, -1, 2, 3, 3, 3, //23072
3, 1, -1, -1, 0, 2, 3, 2, 1, 0, -1, -3, -1, 0, 0, 2, //23088
1, 2, 4, 1, -1, -2, -1, -1, 0, 3, 2, 0, -1, -1, -2, -2, //23104
-1, -2, -2, -2, -2, -1, -3, -3, -1, -1, -1, -3, -2, -1, -4, -4, //23120
-6, -6, -4, -5, -5, -7, -7, -7, -7, -6, -6, -3, -2, -3, -2, -3, //23136
0, 1, 0, 1, 0, -1, 0, 0, 0, -1, 0, 0, 1, 3, 3, 3, //23152
2, 1, 1, 1, 2, 3, 4, 4, 6, 6, 3, 3, 3, 2, 2, 1, //23168
1, 0, -1, -1, -1, 1, 1, -2, -2, -4, -5, -4, -4, -4, -3, -4, //23184
-5, -5, -3, 2, 2, 2, 1, 0, 1, 3, 3, 3, 1, -1, 0, -1, //23200
-1, -2, -4, -4, -6, -3, -3, -4, -4, -5, -6, -5, -6, -6, -4, -4, //23216
-2, -2, -3, -3, -2, -2, -3, -4, -4, -4, -2, 0, -1, 0, 1, 0, //23232
1, 3, 6, 6, 3, 1, -6, -6, -5, -5, -3, -1, -1, -2, -1, -1, //23248
-2, 0, 2, 3, 4, 5, 5, 3, 2, -1, -4, -1, 0, 1, 1, 1, //23264
3, 1, 2, 4, 4, 5, 3, 1, 1, -2, -2, -2, -2, 0, 0, -1, //23280
0, 1, 1, 0, 2, 4, 5, 5, 4, 2, 2, 3, 4, 4, 2, -1, //23296
-1, 0, 0, 1, 3, 3, 2, 2, 1, 2, 5, 3, 1, -1, 0, -1, //23312
0, 1, 0, 0, 0, -3, -4, -4, -3, -3, -2, 0, 0, 1, 0, -2, //23328
0, 0, 0, 0, -2, -4, -4, -3, -2, -3, -3, -4, -6, -4, -4, -3, //23344
-3, -4, -4, -3, -2, -2, -2, -3, -6, -6, -5, -3, -3, -5, -8, -9, //23360
-11, -11, -10, -7, -4, -5, -5, -4, -5, -5, -5, -4, -2, 0, 1, 0, //23376
-1, -3, -5, -3, -2, -1, 0, 0, 0, -1, -4, -6, -5, -3, -3, -3, //23392
-1, 1, 1, 2, 1, 1, 3, 3, 3, 3, 1, 0, -1, -3, -2, -2, //23408
-1, 0, 1, 1, 0, 0, 1, 2, 3, 5, 7, 6, 4, 0, -2, -1, //23424
1, 1, 2, 3, 3, 1, 0, 2, 4, 6, 6, 7, 7, 5, 4, 3, //23440
2, 5, 5, 5, 4, 3, 1, 2, 4, 6, 7, 8, 8, 4, 2, 3, //23456
4, 5, 7, 7, 7, 7, 8, 8, 4, 4, 4, 3, 3, 2, 3, 2, //23472
1, 1, 2, 2, 3, 4, 3, 3, 4, 4, 4, 4, 5, 6, 6, 7, //23488
6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 1, -2, -3, -4, -4, -3, //23504
0, 2, 4, 3, 0, -1, -3, -3, -1, 1, 4, 2, -1, -1, -1, 0, //23520
1, 2, 4, 3, 3, 5, 5, 4, 5, 6, 7, 7, 5, 3, 1, 0, //23536
0, 0, 2, 3, 2, 0, 1, 1, 1, -1, -4, -4, -2, 0, 1, 1, //23552
1, 0, -1, -1, 0, 1, 0, 0, -1, -2, -3, -2, -1, -1, 0, -1, //23568
0, 0, -1, -2, -2, -1, -2, -3, -3, -5, -4, -4, -4, -3, -3, -3, //23584
-3, -4, -5, -6, -7, -7, -6, -6, -6, -7, -8, -9, -11, -10, -8, -6, //23600
-5, -7, -9, -9, -8, -9, -9, -7, -7, -8, -9, -9, -10, -10, -10, -10, //23616
-10, -8, -8, -8, -9, -10, -10, -9, -8, -7, -6, -7, -8, -9, -11, -12, //23632
-11, -8, -7, -8, -10, -11, -11, -11, -10, -9, -8, -9, -10, -11, -11, -11, //23648
-10, -10, -11, -11, -11, -10, -10, -10, -9, -9, -10, -10, -10, -9, -5, -5, //23664
-5, -6, -6, -4, -4, -5, -4, -4, -4, -2, -2, -1, -1, -1, -1, -3, //23680
-1, 1, 1, -1, -4, -4, -3, -2, 0, 1, -2, -3, -3, -2, -1, 2, //23696
2, 2, 3, 3, 4, 5, 7, 7, 6, 6, 6, 5, 6, 6, 5, 6, //23712
8, 7, 6, 5, 5, 6, 6, 5, 5, 6, 6, 4, 2, 3, 4, 3, //23728
3, 4, 6, 7, 7, 6, 4, 4, 5, 4, 4, 6, 8, 9, 8, 5, //23744
3, 4, 4, 6, 7, 7, 7, 5, 4, 5, 7, 9, 9, 8, 9, 10, //23760
10, 7, 5, 4, 4, 3, 3, 3, 3, 5, 4, 3, 2, 2, 4, 3, //23776
4, 6, 6, 5, 3, 2, 3, 4, 5, 7, 6, 5, 5, 4, 3, 3, //23792
1, 1, 0, 0, 2, 4, 3, 3, 3, 4, 5, 4, 4, 4, 3, 3, //23808
3, 2, 0, 1, 1, -1, -1, 0, 0, 0, 0, -1, -1, 1, 3, 4, //23824
6, 5, 4, 4, 3, 2, 1, -1, -2, -3, -3, -2, -2, -1, -1, -2, //23840
-2, -1, 1, 2, 3, 5, 5, 2, -2, -1, -1, -3, -4, -3, -3, -4, //23856
-4, -4, -4, -4, 1, 2, 1, 2, 2, 0, -2, -4, -4, -5, -8, -7, //23872
-6, -6, -6, -6, -4, -4, -4, -1, 1, 0, -2, -4, -7, -10, -8, -5, //23888
-4, -2, -1, -2, -5, -4, -6, -7, -7, -6, -6, -7, -7, -7, -6, -5, //23904
-6, -9, -9, -11, -12, -10, -9, -12, -11, -8, -9, -9, -3, -2, -6, -5, //23920
-1, -2, -5, -3, 0, -1, -4, -5, -4, -3, -3, -4, -5, -5, -7, -7, //23936
-6, -5, -2, 0, -2, -7, -9, -8, -9, -9, -5, -3, -4, -3, 1, 3, //23952
4, 4, 4, 1, 0, 1, 0, -3, -5, -7, -7, -8, -8, -6, -5, -5, //23968
-5, -6, -6, -3, 0, 3, 2, 3, 4, 4, 1, 0, 0, 1, 0, -2, //23984
-2, -4, -5, -4, -3, -3, -3, 0, 2, 2, 4, 8, 6, 5, 6, 7, //24000
9, 9, 8, 6, 7, 7, 3, 0, 1, 0, -1, -1, -1, -1, -1, 1, //24016
1, 0, 2, 0, 0, 2, 2, 2, 4, 5, 3, -1, -2, -2, -3, -1, //24032
-1, -2, -2, -2, -1, 1, 2, 5, 6, 7, 9, 8, 7, 7, 4, 3, //24048
3, 2, 1, 1, 4, 4, 1, -2, -5, -8, -6, -4, -3, -4, -4, 0, //24064
-1, -2, 1, 6, 6, 6, 5, 6, 7, 7, 6, 4, 5, 4, 0, 1, //24080
2, 1, 3, 4, 3, 3, 5, 4, 1, 1, 3, 0, -3, -2, -4, -3, //24096
1, 3, -1, -2, 3, 4, 1, 3, 2, 2, 3, 1, -1, 0, -1, -1, //24112
-1, 0, -1, 0, 3, 2, -1, 1, 3, -1, -2, -1, -1, -2, 0, 2, //24128
1, 0, 3, 1, 2, 5, 5, 3, 1, 0, 0, -2, -4, -4, -2, 0, //24144
0, 1, 3, 2, 0, 0, -1, -2, -3, -4, -3, -1, -1, -2, -2, 0, //24160
-1, -4, -4, -3, -1, -1, -2, -3, -3, -5, -10, -9, -5, -6, -7, -4, //24176
-2, -2, 0, 2, 1, 0, -3, -6, -7, -3, -1, -2, -1, -3, -4, -2, //24192
1, 3, 4, 4, 2, -2, -3, -3, -5, -3, -1, -4, -6, -2, -3, -2, //24208
2, 4, -1, -3, -3, -5, -6, -3, -2, -4, -4, -1, -1, 0, 4, 4, //24224
5, 6, 6, 6, 8, 10, 9, 5, 3, 0, 2, 6, 5, 5, 6, 5, //24240
3, 3, 4, 6, 5, 5, 4, 2, 1, 0, -3, -1, 3, 0, -2, 1, //24256
1, 1, 3, 5, 4, 0, 0, 0, 0, 1, 0, -2, -2, -2, -2, -3, //24272
-4, -5, -7, -7, -5, -3, -1, -1, -2, -2, -3, -5, -2, -2, -3, -2, //24288
1, 0, -2, -2, -3, -3, -2, -3, -3, -1, 0, 0, 0, 0, 0, -1, //24304
0, 0, -2, -3, -5, -6, -6, -5, -4, -4, -2, -1, -2, -2, 1, 2, //24320
2, 2, 2, -1, -2, -4, -4, -2, -3, -3, -2, -1, -2, -2, 0, 2, //24336
4, 6, 6, 5, 4, 3, 1, -1, -3, -3, -6, -4, -1, -3, -5, -4, //24352
-4, -7, -7, -6, -4, -5, -3, -3, -6, -5, -2, 1, 0, -2, -4, -4, //24368
-3, 1, -1, -2, -2, -3, -3, -3, -3, -3, -3, -4, -4, -3, -5, -6, //24384
-5, -4, -6, -7, -6, -6, -6, -5, -8, -9, -8, -7, -6, -5, -5, -6, //24400
-6, -5, -5, -2, -1, -3, -4, -4, -5, -6, -5, -3, -3, -3, -2, -2, //24416
-1, 2, 3, 2, 1, 1, 2, 1, 0, -1, 0, 0, -1, -3, -2, 0, //24432
1, 3, 3, 0, 3, 6, 5, 4, 2, 0, 0, 2, 5, 4, 2, 3, //24448
3, 2, 2, 3, 3, 3, 4, 5, 4, 4, 4, 3, 4, 4, 3, 1, //24464
1, -1, 1, 1, -2, -3, -3, -3, -1, 1, 2, 2, 3, 2, -1, -2, //24480
-3, -4, -5, -6, -5, -5, -4, -2, -3, -2, -1, 1, 1, 2, 4, 3, //24496
2, 1, -1, -2, -1, -1, 0, -1, 1, 2, 1, 0, -1, -1, 1, 3, //24512
3, 0, 0, 2, 1, -1, -1, 0, 1, 1, -1, -3, -2, 1, 1, 4, //24528
5, 5, 6, 6, 5, 5, 7, 8, 7, 6, 2, 1, 2, 2, 1, 1, //24544
1, 2, 3, 5, 5, 6, 8, 7, 6, 4, 3, 2, 2, 3, 3, 3, //24560
3, 4, 3, 2, 3, 4, 4, 3, 4, 4, 4, 4, 8, 8, 9, 9, //24576
8, 6, 6, 5, 2, 0, 0, -3, -3, -4, -4, -2, -2, -1, 0, 1, //24592
4, 3, 3, 2, -1, -1, -1, 0, 0, 0, 1, 1, 2, 2, 2, 4, //24608
5, 6, 6, 4, 3, 1, -1, 0, 0, 5, 5, 3, 2, 2, 2, 2, //24624
3, 3, 2, 0, 0, -2, -4, -5, -4, -3, -2, -1, -1, -2, -2, 0, //24640
0, -1, -1, -2, -4, -3, -3, -2, -2, -3, -4, -6, -7, -6, -4, -4, //24656
-5, -7, -6, -5, -5, -4, -4, -5, -4, -4, -5, -6, -7, -7, -7, -7, //24672
-7, -8, -8, -8, -8, -8, -8, -6, -6, -6, -7, -6, -3, -1, -2, -4, //24688
-5, -5, -3, -5, -8, -10, -10, -9, -9, -9, -10, -11, -10, -10, -8, -7, //24704
-6, -5, -5, -6, -6, -5, -5, -5, -5, -6, -5, -4, -4, -5, -5, -4, //24720
-5, -5, -4, -5, -7, -7, -8, -9, -8, -8, -9, -7, -4, -4, -5, -5, //24736
-3, -3, -3, -2, -2, -4, -2, -3, -4, -3, -2, -2, -2, -3, -3, -2, //24752
-1, 0, 0, -1, -2, -2, -1, -1, -1, -1, -1, -1, 1, 0, -2, -3, //24768
-2, 0, 0, 2, 5, 5, 5, 5, 3, 3, 4, 4, 3, 3, 4, 3, //24784
2, 1, 1, 0, 1, 1, 2, 3, 3, 2, 2, 2, 3, 3, 1, 0, //24800
0, 1, 2, 4, 6, 6, 7, 8, 8, 8, 7, 6, 5, 3, 4, 3, //24816
4, 5, 4, 3, 2, 2, 1, 2, 4, 5, 5, 5, 5, 5, 5, 8, //24832
7, 8, 8, 7, 7, 8, 9, 8, 8, 8, 6, 5, 4, 4, 6, 6, //24848
5, 4, 4, 5, 5, 5, 5, 3, 3, 2, 2, 2, 2, 3, 4, 5, //24864
8, 9, 9, 8, 6, 5, 5, 3, 3, 3, 4, 4, 4, 5, 6, 6, //24880
5, 4, 2, 3, 4, 4, 3, 2, 0, -2, -2, -1, -1, -1, 1, 1, //24896
0, 1, 1, 1, 2, 2, 1, 1, 1, 1, -1, -1, -2, -2, -1, -1, //24912
-2, -2, -1, 1, 3, 3, 3, 2, 2, 2, 0, 0, 1, 0, -1, -3, //24928
-4, -5, -4, -2, -2, -1, -1, -2, -2, -2, -2, 0, 0, 0, -1, -1, //24944
-1, -1, 0, -1, -2, -2, -2, 0, 1, 1, 0, -1, -1, 1, 0, 0, //24960
1, 0, -3, -4, -6, -6, -5, -5, -6, -5, -3, -3, -3, -2, -3, -3, //24976
-2, -2, -3, -4, -3, -2, -1, -1, -3, -4, -4, -3, -2, -1, -1, -1, //24992
-2, -4, -6, -5, -6, -5, -4, -4, -6, -7, -4, -5, -5, -4, -4, -4, //25008
-4, -5, -5, -5, -4, -5, -6, -5, -5, -5, -4, -4, -5, -4, -4, -6, //25024
-6, -5, -4, -2, 1, 1, 0, -1, 0, -1, -1, -2, -4, -4, -5, -6, //25040
-7, -8, -6, -5, -6, -6, -5, -2, 0, 1, 1, 1, 1, 2, 2, 2, //25056
2, -1, -2, -1, -2, -3, -2, -1, 0, 2, 4, 5, 5, 5, 2, 1, //25072
0, 0, 0, 0, 0, -1, -3, -2, 0, 0, 0, -1, -1, -1, -3, -3, //25088
-1, 0, -1, -2, -1, 1, 2, 2, 1, 1, 1, 0, 0, 0, 0, 1, //25104
2, 1, 2, 1, -1, -3, -3, -3, -3, -3, -2, -2, -2, -2, -1, -1, //25120
-3, -3, -4, -5, -4, -1, 1, 0, 1, 1, -1, 0, 2, 2, 2, 3, //25136
2, 3, 3, 3, 4, 4, 3, 1, 1, 1, 0, -1, -2, -1, 0, -1, //25152
-2, -2, -2, 0, 0, 1, 1, 0, -1, -1, -1, 0, 1, 1, 2, 2, //25168
0, -2, -1, 0, 0, 1, 0, -1, -1, 3, 3, 1, 1, 0, -2, -3, //25184
-2, -2, -2, -2, -4, -5, -4, -4, -4, -4, -3, -4, -3, 0, 0, 0, //25200
2, 1, -1, 0, 0, -3, -3, -3, -4, -4, -3, -3, -3, -3, -2, -1, //25216
-1, 2, 3, 2, 2, 2, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, //25232
-1, -1, -3, -3, -3, -4, -4, -1, 1, 2, 3, 4, 4, 2, 3, 2, //25248
0, 1, 2, 0, -2, -1, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, //25264
-2, -3, -5, -5, -3, -2, -1, -1, -3, -2, -3, -4, -3, -2, -2, 0, //25280
0, 2, 3, 3, 2, 1, 1, 0, -1, -2, -1, 1, 1, 0, -2, -2, //25296
-2, -2, -1, 0, 2, 3, 3, 3, 3, 4, 5, 6, 4, 4, 4, 1, //25312
0, 1, -1, 0, 0, -1, 1, 2, 1, 0, -1, -2, 0, -1, 0, 2, //25328
3, 1, -2, -3, -2, 1, 1, 2, 3, 2, 1, 0, 0, 1, 2, 0, //25344
0, 0, 0, 1, 4, 5, 4, 4, 4, 3, 3, 2, 1, -1, -2, -1, //25360
-1, 0, 2, 2, 4, 4, 3, 2, 1, 1, 2, 1, 0, 2, 4, 1, //25376
2, 3, 4, 5, 5, 3, 2, 1, -1, -1, 1, 2, 2, 2, 1, 1, //25392
2, 2, 1, 2, 2, 0, 0, 1, 0, -1, -1, -1, 0, 0, -1, -3, //25408
-4, -4, -3, -2, -2, -3, -4, -3, -4, -4, -3, -1, -3, -3, -3, -4, //25424
-4, -2, -1, 1, 1, -2, -2, -3, -3, -1, -2, -4, -2, 1, -1, 0, //25440
2, 2, 2, 0, -2, -3, -4, -4, -3, -3, -3, -3, -3, -3, -1, 3, //25456
7, 7, 8, 8, 5, 5, 5, 4, 2, 1, 2, 1, -2, -2, -3, -5, //25472
-3, -3, -2, -1, -2, 2, 1, -1, -1, -1, -2, 0, -1, 0, 0, -3, //25488
-5, -6, -4, -1, -1, -1, -4, -6, -6, -6, -5, 0, -1, -2, -3, -4, //25504
-5, -4, -4, -2, -2, -4, -4, -6, -7, -7, -7, -5, -1, -1, 0, -2, //25520
-5, -6, -5, -5, -5, -5, -6, -9, -7, -4, -4, -3, -3, -4, 0, 1, //25536
1, 0, -4, -3, -2, -2, -1, -2, -3, -4, -3, -4, -4, -3, -8, -9, //25552
-10, -10, -7, -6, -5, -5, -7, -7, -6, -7, -5, -4, -3, 1, 3, 1, //25568
1, 1, 1, 1, 2, 0, -1, 0, -3, -8, -7, -8, -7, -5, -4, -4, //25584
-4, -3, -4, -7, -8, -7, -1, 1, 1, 2, 2, 1, 2, 4, 5, 5, //25600
3, 0, 0, 2, 2, 1, -1, -2, 0, 0, -2, -1, -2, -1, 2, 2, //25616
2, 0, -3, -1, 0, 2, 4, 3, -2, -2, -1, 2, 4, 6, 4, 4, //25632
7, 6, 7, 6, 0, -1, 1, -1, 2, 2, 1, 0, -2, -2, -4, -3, //25648
1, 3, 2, 1, 2, 4, 3, 0, 1, 2, 4, 6, 6, 3, 1, 1, //25664
4, 6, 7, 11, 10, 7, 9, 8, 9, 9, 7, 7, 8, 9, 13, 11, //25680
5, 6, 4, 4, 4, 4, -1, -6, -5, -2, -3, -3, -2, -1, 2, 2, //25696
0, -2, -3, -1, -1, -1, 1, 0, -1, -1, -1, 3, 5, 2, 2, 2, //25712
1, -1, -4, -7, -7, -5, -3, -3, -2, -3, -4, -5, -6, -7, -5, -5, //25728
-7, -10, -12, -12, -10, -9, -9, -7, -6, -7, -4, -5, -5, -5, -8, -9, //25744
-7, -7, -7, -7, -8, -10, -10, -9, -8, -8, -10, -8, -7, -3, 0, -6, //25760
-7, -5, -4, -3, -3, -7, -10, -10, -7, -6, -4, -1, -2, -2, -2, -4, //25776
1, 1, -1, -1, -2, -2, -3, -3, -1, 0, 2, 4, 0, -1, -1, -2, //25792
-2, -2, 0, 1, 1, 2, 4, -1, -1, 0, 1, 1, 0, 1, -1, -1, //25808
0, 0, 0, 3, 5, 6, 9, 9, 7, 5, 5, 7, 10, 12, 10, 8, //25824
7, 6, 5, 8, 5, 6, 11, 11, 9, 6, 6, 6, 5, 4, 4, 2, //25840
1, 1, 1, 3, 3, 2, 1, 0, -1, -1, 2, 2, 1, 2, 5, 6, //25856
5, 3, 1, 3, 5, 7, 8, 7, 6, 6, 6, 7, 6, 0, 0, 2, //25872
-2, -2, -3, -2, 2, 2, 1, 1, 1, 0, 0, 3, 1, 0, -1, -2, //25888
-1, -3, -5, -4, -8, -10, -6, -5, -6, -5, -1, 2, 2, 1, 0, -3, //25904
-4, -2, -3, -2, -1, 0, 1, 2, 2, -1, -6, -6, -3, 0, -2, -1, //25920
1, 0, 2, 2, 0, 4, 7, 7, 7, 7, 8, 8, 5, -1, -4, -2, //25936
-1, -2, -6, -5, 3, 0, 0, 2, 0, -1, 4, 3, 0, -1, -1, -2, //25952
-1, -2, -3, -3, -2, -2, -1, -3, -3, 1, 4, 3, 3, 2, 2, 1, //25968
2, 5, 5, 5, 4, 2, -1, 2, 4, 2, 0, -3, -6, -5, -5, -5, //25984
-5, -6, -7, -8, -8, -9, -9, -7, -7, -8, -9, -12, -15, -15, -14, -15, //26000
-17, -19, -18, -17, -17, -16, -16, -17, -23, -23, -22, -22, -18, -17, -22, -21, //26016
-24, -24, -19, -20, -20, -21, -22, -20, -21, -20, -18, -19, -20, -22, -22, -22, //26032
-21, -20, -20, -24, -26, -24, -22, -18, -18, -23, -21, -20, -20, -17, -14, -13, //26048
-18, -23, -23, -17, -13, -18, -17, -14, -15, -15, -14, -9, -7, -8, -9, -6, //26064
0, -1, 0, 1, 0, -1, 0, 4, 5, 3, 2, 5, 3, 1, 0, 0, //26080
5, 10, 12, 10, 11, 12, 13, 14, 12, 9, 10, 13, 14, 6, 7, 13, //26096
14, 12, 13, 8, 9, 12, 11, 12, 11, 10, 10, 11, 13, 15, 14, 17, //26112
19, 16, 12, 15, 18, 18, 18, 15, 10, 10, 12, 10, 11, 14, 15, 22, //26128
22, 20, 22, 22, 22, 21, 19, 16, 16, 15, 10, 11, 12, 6, 5, 7, //26144
4, 5, 7, 6, 5, 4, 5, 5, 2, 1, 3, 5, 5, 4, 8, 11, //26160
5, 6, 9, 8, 7, 7, 4, 3, 5, 4, 0, -1, 2, 0, -5, -2, //26176
4, 0, -2, 7, 8, 6, 9, 9, 8, 4, 1, 1, -1, -3, 1, 3, //26192
2, 1, 2, 1, -1, -1, -6, -6, 8, 6, -1, -5, -5, -2, -3, 1, //26208
6, 5, 7, 8, 2, 3, 3, 3, -1, 1, 4, 1, 1, 2, -1, 3, //26224
7, 5, 7, 8, 5, 6, 2, -2, 5, 12, 3, 1, 7, 10, 9, 8, //26240
5, 7, 9, 3, -1, 3, 4, 6, 8, 3, -1, 1, -2, -6, -3, 1, //26256
-1, -7, -6, -8, -13, -12, -7, -6, -9, -9, -6, -5, -4, -1, -6, -14, //26272
-14, -13, -9, -8, -8, -3, -1, -3, -2, -4, -6, -1, 2, -6, -9, -9, //26288
-10, -13, -12, -6, -5, -7, -13, -16, -11, -12, -15, -14, -9, -5, -9, -10, //26304
-10, -8, -1, 2, -4, -3, -4, -6, -5, -3, -3, -2, 1, 3, -2, 2, //26320
6, 0, 5, 10, -2, -10, -6, -5, -5, -8, -6, -4, -4, 1, 1, -2, //26336
2, -1, -6, -5, -2, 2, -1, -1, 5, 5, 2, 2, 1, -3, -9, -9, //26352
-4, -7, -11, -11, -8, -2, -2, -4, -5, -8, -11, -11, -6, -7, -8, -8, //26368
-11, -14, -4, -5, -6, -1, 1, 0, -5, -6, 0, 8, 12, 5, 4, 4, //26384
0, 0, 2, 3, 6, 3, 0, -1, -3, 3, 6, 7, 9, 7, 7, 10, //26400
10, 8, 0, -3, 3, -3, -5, -3, -5, -5, -8, -7, -2, -1, 1, 6, //26416
3, 3, 5, 5, 1, 3, 9, 13, 13, 12, 13, 13, 9, 4, -2, -6, //26432
-4, -8, -9, -6, -9, -11, -6, 0, 8, 10, 8, 7, 10, 11, 5, 1, //26448
-1, -7, -3, -2, -6, -2, 5, 1, -2, 2, 5, 2, 10, 12, 6, 12, //26464
15, 9, 8, 8, 13, 15, 9, 11, 8, 7, 12, 10, 7, 3, 6, 11, //26480
5, 4, 7, 5, 8, 8, 10, 14, 12, 13, 13, 10, 16, 17, 17, 13, //26496
3, 2, 0, -6, -5, -7, -3, -1, -8, -8, -5, -2, 4, 1, -1, 3, //26512
-2, -1, -5, -12, -11, -14, -18, -17, -15, -13, -12, -11, -9, -6, -4, -1, //26528
0, -1, 0, 0, 0, 0, -1, 2, 2, 0, 0, -3, -10, -6, -4, -3, //26544
2, 8, 9, 7, 4, 6, 9, 7, 2, 0, 0, -8, -13, -13, -12, -4, //26560
1, 3, 4, 4, 10, 12, 9, 12, 10, 3, -2, -4, 0, -2, -7, -6, //26576
-8, -11, -12, -11, -9, -9, -4, -4, -10, -6, -7, -8, -3, 2, 3, 1, //26592
0, -7, -15, -11, -6, -13, -13, -12, -12, -9, -5, 3, 12, 12, 11, 4, //26608
6, 12, 10, 7, 6, 1, 2, 1, -3, -3, -1, -1, 0, 3, 5, 3, //26624
6, 9, 8, 8, 9, 9, 8, 8, 4, 0, 0, -3, -9, -11, -9, 0, //26640
7, 3, 3, 11, 15, 9, 3, 3, 3, 0, -6, -8, -8, -13, -12, -10, //26656
-10, -5, -3, -2, -1, -1, 1, -3, -4, 2, -2, -5, -1, -2, 0, 4, //26672
6, 6, 1, 0, -1, -2, 3, 4, 3, 6, 5, 9, 10, 5, 6, 3, //26688
-1, -3, -4, -1, -4, -4, 0, 0, 3, 6, 0, 2, -2, -10, -11, -11, //26704
-13, -14, -19, -21, -19, -11, -7, -6, -1, 1, -1, -2, -2, -1, 2, 2, //26720
1, -1, -1, -2, -6, -11, -9, -3, -7, -11, -9, -8, -7, -4, -4, -3, //26736
1, 3, 2, 1, 4, 7, 3, 3, 3, 1, -2, -2, -2, -4, -5, -5, //26752
-6, -5, -5, -8, -6, -6, -5, -1, 5, 8, 9, 7, 3, 0, 2, -2, //26768
-5, -4, -5, -2, 2, 1, -1, 3, 7, 4, 2, 1, -2, -2, 4, 6, //26784
4, 6, 6, 4, 2, 4, 2, 0, 2, 4, 4, 5, 4, 4, 3, -2, //26800
0, 1, -1, 1, 5, 4, 5, 5, 2, -5, -6, -2, -4, -4, -5, -6, //26816
-7, -5, -1, -1, -4, -5, -8, -11, -12, -11, -11, -14, -8, -3, -3, 1, //26832
4, 5, 5, 7, 11, 12, 8, 5, 2, -3, -6, -7, -6, -6, -10, -8, //26848
-4, -1, 2, 3, 0, 1, 3, 0, -1, 4, 6, 2, -3, -4, -3, -4, //26864
-4, -3, -3, -4, 2, 2, -3, -2, 0, -4, -3, 0, -2, -5, -5, -3, //26880
-3, -4, -7, -9, -11, -13, -12, -7, -7, -10, -4, 0, 1, 1, 0, -1, //26896
-1, 2, 3, 1, 3, 8, 5, 5, 8, 10, 9, 8, 7, 7, 10, 11, //26912
9, 12, 10, 7, 8, 8, 6, 9, 14, 17, 14, 14, 18, 17, 17, 17, //26928
14, 12, 12, 12, 12, 9, 7, 6, 6, 8, 7, 7, 7, 6, 5, 3, //26944
1, 2, 3, 3, 2, 0, -2, -4, -6, -8, -7, -2, -1, 0, 3, 3, //26960
3, 1, -1, 0, -2, -2, 0, -2, -6, -6, -3, 1, 1, 2, 5, 2, //26976
1, 1, 0, -1, 2, 7, 4, 1, 1, -1, -4, -4, -5, -2, 1, 1, //26992
2, -1, -1, 2, 2, 2, 1, 3, 6, 5, 5, 3, 2, 4, 4, 0, //27008
-1, 1, -2, -6, -5, -2, -2, 2, 2, -1, -3, -3, -5, -5, -6, -8, //27024
-11, -13, -15, -14, -14, -14, -13, -11, -12, -12, -9, -9, -10, -9, -10, -11, //27040
-12, -12, -11, -12, -12, -11, -11, -12, -9, -9, -10, -8, -5, -5, -5, -6, //27056
-5, -5, -3, 2, 3, 1, -3, -7, -7, -8, -6, -5, -7, -10, -9, -5, //27072
-4, -4, -3, -2, -1, 3, 2, 0, -1, -2, -2, -2, -3, -2, -2, -5, //27088
-4, 0, -1, -1, 0, 0, -1, 1, 3, 1, 0, 2, 4, 7, 7, 6, //27104
7, 6, 6, 6, 5, 5, 6, 5, 1, -1, -1, -4, -6, -5, -6, -11, //27120
-14, -16, -14, -11, -12, -12, -12, -12, -10, -12, -12, -12, -12, -12, -11, -9, //27136
-6, -5, -7, -9, -8, -7, -3, 0, 1, 1, 1, 2, 4, 6, 7, 4, //27152
4, 5, 4, 1, -3, -3, -5, -7, -5, -3, -3, -1, -2, -3, 0, 5, //27168
6, 8, 11, 11, 11, 7, 5, 7, 7, 7, 7, 5, 4, 3, 4, 4, //27184
4, 4, 2, 3, 3, 2, 4, 2, 2, 2, 2, 2, 5, 6, 5, 4, //27200
4, 2, 4, 6, 6, 7, 9, 10, 10, 11, 11, 12, 15, 16, 16, 15, //27216
15, 14, 9, 9, 8, 6, 6, 8, 4, 4, 5, 6, 6, 6, 8, 8, //27232
7, 5, 3, 3, 5, 7, 6, 3, 1, 2, 3, 2, 1, -1, -1, -3, //27248
-2, -1, -4, -4, 0, 0, 0, -1, -2, -2, -3, 0, 0, -1, 0, -2, //27264
-2, 0, 2, 3, 0, 0, 0, -3, -3, 0, 2, -2, -2, 2, 5, 4, //27280
5, 4, 2, 2, 3, 2, -1, 1, 4, 1, -4, -3, 1, 1, 0, 0, //27296
2, 0, 3, 5, 2, 0, 0, -2, -5, -6, -4, -5, -7, -6, -6, -7, //27312
-10, -10, -8, -8, -7, -4, -4, -6, -6, -7, -9, -9, -7, -7, -8, -7, //27328
-4, -5, -6, -3, -6, -8, -7, -5, -5, -5, -4, -5, -5, -4, -2, -3, //27344
-2, 0, 2, 2, 2, 1, -1, -3, -3, -3, -6, -5, -3, -4, -4, -5, //27360
-4, -5, -5, -4, -4, -5, -5, -3, -4, -6, -3, 0, -1, -2, -2, -2, //27376
-4, -4, -3, -4, -6, -3, -1, 1, 1, 0, -3, -4, -1, 1, 1, 0, //27392
-2, -4, -3, 0, 0, -1, -3, -7, -9, -8, -5, -5, -5, -4, -3, -1, //27408
0, 1, -1, -5, -5, -5, -5, -2, -2, -4, -6, -6, -3, -1, -1, -2, //27424
-3, -3, -3, -3, -2, -1, -1, -1, 0, -1, -3, -3, -3, -3, -3, -1, //27440
0, 0, 0, -3, -5, -3, -3, -3, -3, -2, -1, -3, -3, -5, -7, -5, //27456
-4, -4, -5, -7, -6, -7, -6, -1, 3, 3, 1, 3, 5, 6, 7, 6, //27472
4, 4, 5, 5, 5, 5, 4, 5, 5, 4, 4, 4, 5, 5, 5, 3, //27488
-1, 1, 1, 1, 2, 2, 2, -1, -2, -1, 0, 2, 2, 0, 2, 2, //27504
-1, 0, -1, -2, -1, 1, 1, 2, 2, 2, 2, 2, 5, 4, 2, 2, //27520
0, -2, -1, -1, 0, 0, 1, 1, 1, 3, 1, 1, 1, 1, 3, 4, //27536
1, 2, 2, 1, 0, 1, 2, 3, 4, 4, 7, 7, 6, 5, 4, 3, //27552
5, 5, 4, 2, 0, -2, -1, 1, 0, -1, -1, -1, -1, 0, 2, 2, //27568
1, 2, 1, 2, 3, 3, 6, 5, 3, 1, 1, 1, 2, 3, 2, 2, //27584
5, 4, 3, 5, 4, 3, 2, 3, 3, 3, 3, 3, 4, 3, 2, 1, //27600
-1, -1, -1, -2, 0, -1, -1, -1, -1, -1, -2, -3, -5, -6, -5, -5, //27616
-4, -3, -4, -4, -3, -2, -3, -3, -2, -1, 0, 2, 1, 0, -1, -2, //27632
-3, -3, -2, -1, -3, -5, -4, -2, 0, 0, 2, 2, 1, 2, 3, 3, //27648
3, 2, 1, 0, -2, -2, -3, -4, -3, -2, -3, -4, -3, -2, -2, 0, //27664
2, 3, 5, 3, -1, 0, -2, -4, -3, -3, -4, -5, -7, -6, -6, -5, //27680
-3, -5, -6, -5, -4, -2, -3, -1, 0, 1, 2, 2, 1, 1, 2, 2, //27696
2, 3, 3, 2, 3, 3, 2, 2, 3, 5, 5, 4, 5, 4, -3, -2, //27712
1, 1, 1, 2, 2, 1, -1, -2, -2, 1, 5, 6, 5, 3, 1, 0, //27728
0, 0, 3, 5, 3, 0, -3, -4, -4, -5, -6, -6, -6, -5, -3, -4, //27744
-8, -5, -3, -1, 4, 4, -1, -1, -2, -2, 2, 3, 2, 1, 1, 1, //27760
-2, -5, -3, -4, -4, -2, -2, 0, 0, -2, -2, -1, 0, 0, -2, -5, //27776
-3, -2, -2, 0, 2, 3, 3, 3, 2, 3, 5, 5, 3, 6, 8, 4, //27792
1, 2, 3, 5, 7, 7, 4, 3, 4, 4, 5, 6, 6, 5, 4, 4, //27808
2, 3, 4, 2, 4, 5, 4, 3, 3, 1, 0, 0, 1, 1, 4, 4, //27824
2, 0, -1, 0, 1, 0, 0, 1, 0, -3, -3, -4, -5, -3, -2, -7, //27840
-6, -7, -9, -8, -6, -5, -3, -4, -5, -5, -6, -5, -6, -7, -7, -8, //27856
-9, -11, -11, -12, -12, -12, -10, -10, -10, -9, -10, -10, -10, -9, -8, -6, //27872
-3, -3, -5, -5, -5, -4, -3, -1, -3, -4, -5, -8, -8, -9, -10, -12, //27888
-13, -13, -16, -15, -16, -17, -14, -12, -12, -10, -10, -9, -9, -9, -7, -7, //27904
-5, -6, -6, -4, -4, -5, -7, -8, -7, -5, -4, -3, -4, -3, -1, -2, //27920
-1, 3, 6, 5, 4, 4, 4, 4, 1, 0, 2, 3, 2, 0, 0, 1, //27936
3, 2, 2, 2, 2, 2, -1, -2, -1, 1, 1, 2, 0, 0, 1, 2, //27952
3, 5, 7, 7, 8, 9, 9, 9, 11, 13, 13, 12, 11, 8, 8, 9, //27968
10, 10, 10, 12, 12, 10, 7, 7, 10, 12, 13, 11, 10, 10, 7, 3, //27984
4, 7, 7, 6, 6, 6, 5, 2, 1, 6, 6, 7, 9, 9, 7, 8, //28000
9, 9, 10, 11, 12, 11, 10, 10, 10, 9, 7, 7, 8, 9, 9, 6, //28016
6, 6, 7, 8, 8, 6, 4, 3, 3, 3, 5, 6, 5, 4, 3, 1, //28032
-1, -3, -3, -3, -4, -5, -4, -4, -4, -1, 1, 1, 4, 3, 4, 4, //28048
1, 5, 7, 6, 7, 7, 7, 7, 7, 7, 7, 10, 11, 10, 11, 10, //28064
9, 8, 10, 10, 9, 10, 10, 8, 8, 7, 6, 7, 8, 9, 9, 8, //28080
7, 6, 5, 4, 4, 6, 6, 5, 3, 4, 4, 5, 8, 7, 4, 4, //28096
3, 1, 1, 1, 3, 1, 0, 1, 2, 1, 2, 2, 1, 1, 1, 0, //28112
0, -1, -3, -6, -6, -7, -8, -9, -11, -12, -12, -15, -15, -15, -15, -15, //28128
-16, -17, -17, -16, -17, -19, -19, -19, -20, -22, -25, -25, -24, -25, -26, -26, //28144
-26, -25, -25, -25, -24, -22, -22, -22, -22, -23, -23, -23, -22, -20, -22, -22, //28160
-22, -22, -23, -25, -25, -23, -25, -26, -24, -24, -25, -26, -26, -25, -24, -24, //28176
-23, -24, -25, -23, -23, -22, -22, -23, -22, -18, -19, -19, -17, -17, -18, -19, //28192
-18, -18, -19, -19, -18, -17, -16, -13, -12, -13, -7, -4, -4, -3, -1, 0, //28208
-2, -3, -4, -5, -5, -4, -4, -3, -2, -1, 2, 5, 8, 11, 13, 15, //28224
15, 15, 14, 12, 10, 9, 9, 9, 10, 11, 12, 13, 11, 11, 13, 15, //28240
15, 18, 20, 19, 19, 20, 21, 19, 21, 26, 25, 23, 23, 22, 22, 22, //28256
23, 23, 23, 25, 24, 21, 21, 22, 21, 20, 20, 19, 19, 17, 14, 15, //28272
17, 18, 18, 19, 19, 21, 22, 23, 25, 28, 27, 22, 20, 18, 14, 13, //28288
14, 14, 12, 11, 12, 8, 8, 11, 12, 11, 13, 13, 11, 9, 10, 10, //28304
10, 12, 13, 10, 7, 7, 5, 5, 7, 8, 8, 10, 10, 8, 5, 5, //28320
4, 2, 2, 1, 0, -1, -5, -7, -6, -3, -3, 0, 1, 0, 0, 1, //28336
1, 0, 0, -1, -3, -3, -3, -4, -3, -2, -3, -4, -3, 1, 0, 0, //28352
4, 4, 2, 5, 7, 6, 4, 4, 0, -5, -5, -6, -10, -11, -10, -13, //28368
-13, -9, -5, -6, -3, -2, -4, -4, -4, -8, -11, -10, -9, -10, -10, -7, //28384
-7, -7, -6, -4, -3, -4, -5, -6, -7, -8, -8, -8, -9, -9, -7, -6, //28400
-9, -9, -8, -9, -12, -10, -10, -13, -16, -15, -15, -18, -17, -17, -17, -16, //28416
-13, -11, -10, -7, -7, -10, -9, -8, -9, -9, -9, -10, -9, -6, -2, -1, //28432
0, 2, 0, -3, -4, -6, -8, -8, -9, -11, -11, -10, -9, -8, -6, -6, //28448
-7, -8, -9, -13, -13, -12, -11, -9, -8, -8, -6, -6, -9, -10, -6, -7, //28464
-8, -7, -6, -7, -5, -3, -4, -5, -4, -4, -7, -7, -7, -9, -11, -10, //28480
-10, -10, -7, -3, -1, 2, 3, 2, -1, 0, -1, -1, 0, -1, -1, 0, //28496
2, 5, 8, 11, 11, 10, 6, 2, -2, -4, -6, -10, -10, -9, -8, -7, //28512
-4, 0, 1, 2, 1, -1, 1, 1, 0, 1, 4, 4, 4, 6, 7, 6, //28528
7, 7, 4, 2, 1, 0, 0, 3, 5, 4, 5, 6, 6, 6, 7, 8, //28544
8, 9, 9, 8, 8, 9, 10, 10, 8, 8, 7, 5, 2, 1, 2, 2, //28560
3, 5, 5, 4, 6, 7, 7, 7, 8, 8, 6, 4, 4, 3, 3, 3, //28576
3, 4, 6, 9, 9, 9, 9, 8, 7, 5, 3, 1, -2, -2, -1, 0, //28592
2, 6, 8, 9, 10, 11, 11, 10, 10, 9, 6, 4, 3, 2, 2, 2, //28608
3, 4, 3, 2, 0, 0, 1, 0, 1, 2, 1, 0, -3, -4, -6, -7, //28624
-8, -9, -11, -11, -11, -10, -9, -10, -5, -2, 1, 3, 4, 4, 3, 2, //28640
1, -2, -2, -3, -5, -7, -7, -6, -6, -4, -2, -1, 0, 2, 3, 1, //28656
1, 2, 1, -1, 0, -1, -3, -4, -4, -4, -4, -2, -1, -2, -2, -2, //28672
-2, -1, -2, -2, -2, -4, -5, -7, -10, -10, -9, -8, -8, -6, -4, -5, //28688
-4, -1, 0, 0, 1, 2, 0, -1, -1, -2, -3, -5, -7, -7, -8, -8, //28704
-7, -9, -8, -7, -6, -5, -5, -2, -1, -1, 0, 1, 0, -3, -5, -7, //28720
-7, -6, -5, -4, -3, -1, -1, 0, 5, 8, 8, 7, 6, 2, -1, -3, //28736
-5, -6, -5, -5, -4, -2, -1, 0, 1, 4, 3, 2, 3, 3, 3, 4, //28752
7, 7, 7, 6, 4, 2, 2, 2, 0, -2, -2, 0, 2, 4, 7, 11, //28768
13, 13, 12, 10, 9, 3, 0, -1, -4, -6, -6, -7, -8, -7, -5, -6, //28784
-3, 0, -1, -1, 1, 5, 3, 3, 3, 1, -2, -2, -3, -3, -3, -3, //28800
-3, 0, 5, 8, 12, 14, 14, 12, 12, 10, 7, 5, 3, 1, -1, -3, //28816
-4, -3, 1, 3, 4, 5, 5, 4, 3, 2, 0, 0, 0, -5, -9, -10, //28832
-11, -12, -12, -10, -9, -8, -5, -5, -5, -5, -5, -5, -4, -3, -3, -2, //28848
-3, -5, -8, -7, -5, -5, -5, -4, -4, -4, -2, -1, 0, 2, 3, 2, //28864
1, 0, -1, -3, -5, -6, -7, -7, -7, -7, -7, -5, -3, -1, 1, 0, //28880
0, 1, 1, 1, 0, -2, -6, -6, -7, -9, -10, -9, -7, -7, -6, -5, //28896
-3, -2, -2, -2, -2, -3, -3, -5, -6, -5, -4, -4, -3, -3, -2, -1, //28912
0, 2, 3, 2, 1, 0, 0, 2, 2, 2, 1, 0, -2, -3, -3, -4, //28928
-4, -5, -6, -6, -6, -5, -4, -2, -2, -3, -4, -4, -5, -5, -4, -4, //28944
-4, -6, -6, -6, -5, -3, -1, 2, 3, 4, 5, 6, 7, 8, 8, 7, //28960
6, 4, 1, 0, 0, -1, -1, 0, 1, 3, 5, 8, 8, 8, 8, 6, //28976
4, 4, 3, 1, 0, 0, -1, -1, -2, -4, -3, -2, -1, 1, 2, 2, //28992
1, 2, 3, 4, 3, 0, -1, -2, -4, -6, -6, -7, -8, -9, -7, -6, //29008
-5, -4, -3, -1, 1, 3, 2, 2, 4, 4, 3, 1, 1, -1, -3, -3, //29024
-2, -1, 0, 1, 1, 1, 2, 3, 3, 2, 2, 1, 0, -2, -2, 0, //29040
1, 2, 3, 4, 5, 6, 7, 9, 9, 9, 8, 10, 10, 9, 8, 8, //29056
7, 6, 5, 3, 1, 2, 2, 2, 4, 4, 4, 6, 6, 5, 5, 5, //29072
5, 3, 4, 4, 2, 0, -3, -4, -4, -4, -4, -6, -7, -6, -6, -5, //29088
-4, -3, -1, 0, -1, -1, 1, 3, 4, 5, 5, 5, 5, 6, 6, 5, //29104
5, 5, 3, 2, 1, 0, -1, -2, -1, 0, 2, 2, 2, 2, 2, 1, //29120
0, -2, -2, -4, -6, -8, -8, -7, -6, -6, -5, -3, -2, -2, -2, -2, //29136
-1, 0, 0, 0, 0, -1, -1, -1, -2, -2, -1, -1, -3, -4, -6, -7, //29152
-7, -8, -9, -9, -9, -7, -7, -6, -5, -4, -3, -4, -3, -4, -5, -5, //29168
-5, -8, -8, -7, -6, -6, -5, -4, -4, -4, -3, -2, -3, -3, -4, -5, //29184
-5, -3, -4, -5, -4, -5, -5, -3, -2, -3, -3, -3, -4, -3, -5, -6, //29200
-5, -6, -7, -7, -6, -6, -6, -6, -3, 0, 0, 0, 0, 0, 0, 0, //29216
-1, -1, -2, -2, -3, -3, -4, -5, -4, -5, -6, -6, -6, -6, -7, -6, //29232
-5, -5, -5, -4, -4, -1, -1, 0, 1, 2, 3, 2, 1, 1, 2, 1, //29248
-1, -1, -1, -1, -1, -1, -1, -3, -3, -2, -3, -2, -2, -2, -1, 0, //29264
1, 1, 2, 2, 2, 1, 1, 1, 1, 0, 0, -1, -4, -4, -4, -4, //29280
-3, -3, -3, -3, -3, -2, -2, -1, 0, 1, 1, 2, 3, 4, 3, 2, //29296
1, 0, 0, 1, 0, -1, -2, -1, -1, 0, 1, 0, 1, 1, 2, 3, //29312
4, 4, 4, 4, 3, 3, 3, 2, 0, 0, 1, 2, 3, 5, 5, 5, //29328
5, 6, 7, 8, 8, 6, 6, 6, 6, 6, 6, 5, 6, 6, 5, 5, //29344
5, 6, 5, 4, 5, 5, 4, 4, 3, 3, 4, 5, 5, 5, 6, 6, //29360
4, 4, 3, 3, 3, 3, 4, 3, 2, 2, 1, -1, -1, -3, -3, -2, //29376
0, 0, 0, 0, 1, 2, 3, 3, 2, 1, 1, 0, 0, 0, -2, -3, //29392
-4, -4, -3, -3, -3, -3, -4, -4, -3, -3, -2, 0, 1, 3, 4, 4, //29408
3, 2, 2, 0, -1, -1, 0, 0, -1, 0, 1, 2, 3, 3, 4, 4, //29424
3, 3, 2, 1, -1, -2, -3, -3, -3, -4, -3, -2, -2, -1, 0, 1, //29440
1, 1, -1, -1, 0, 1, 1, 0, -1, -2, -2, -3, -3, -3, -3, -3, //29456
-3, -2, -1, 1, 1, 0, 1, -1, -2, -2, -3, -3, -2, -3, -5, -4, //29472
-4, -5, -7, -6, -5, -4, -3, -3, -4, -3, -3, -3, -3, -1, -1, -2, //29488
-2, -1, -2, -1, 1, 0, -1, -1, -1, -3, -2, -2, -2, -1, -1, -1, //29504
0, 1, 1, 1, 0, 1, 0, -1, -1, -1, -1, 1, 1, 1, 3, 2, //29520
1, 2, 1, 1, 1, -1, -1, -1, 0, 1, 2, 2, 2, 2, 2, 2, //29536
1, 1, 2, 2, 1, -1, -4, -5, -5, -6, -6, -3, -1, 0, 0, 0, //29552
0, 1, 3, 2, 1, 1, 1, 0, -1, -2, -5, -5, -5, -4, -3, -3, //29568
-4, -4, -3, -2, -1, 0, 3, 3, 1, 1, -1, -1, 0, 0, 0, -1, //29584
-3, -2, -2, -4, -1, 1, 2, 3, 3, 2, 5, 7, 6, 6, 9, 7, //29600
4, 4, 3, 3, 4, 2, 3, 3, 1, 2, 1, 0, 0, 0, 0, 2, //29616
1, 1, 2, 2, 0, -2, -1, -1, -1, -2, -2, -3, -3, -1, 2, 3, //29632
1, 0, -1, -1, -1, -4, -5, -3, -4, -2, 1, 0, -2, -2, -2, -1, //29648
1, -4, -5, -5, -6, -7, -8, -8, -7, -6, -4, -2, -3, -7, -5, -3, //29664
-4, -5, -3, -2, -3, -3, -2, 1, 2, 1, 2, 4, 4, 3, 1, 1, //29680
3, 3, 3, 4, 2, 1, 2, 3, 2, 1, 1, 2, 1, -3, -5, -3, //29696
-5, -6, -6, -6, -6, -6, -7, -7, -4, -3, -4, -3, -2, -1, -2, -4, //29712
-2, -4, -5, -2, -4, -5, -3, -4, -5, -5, -7, -6, -4, -5, -7, -6, //29728
-7, -8, -9, -11, -11, -9, -10, -11, -12, -12, -11, -9, -9, -10, -9, -9, //29744
-9, -9, -10, -9, -8, -9, -12, -13, -13, -13, -13, -13, -13, -13, -13, -14, //29760
-15, -15, -13, -14, -14, -13, -13, -13, -12, -11, -11, -10, -8, -8, -10, -8, //29776
-6, -6, -6, -4, -2, -3, -5, -6, -6, -6, -4, -3, -2, -1, -1, 0, //29792
1, 1, 1, 2, 1, 0, 1, 1, 0, -2, -3, -4, -3, -3, -4, -4, //29808
-2, -2, -1, 0, 2, 3, 3, 2, 1, 1, 2, 3, 4, 6, 6, 6, //29824
6, 6, 7, 9, 10, 10, 11, 10, 11, 11, 10, 10, 12, 12, 11, 12, //29840
13, 13, 12, 13, 17, 18, 16, 15, 14, 14, 15, 16, 16, 18, 18, 18, //29856
19, 20, 17, 16, 17, 16, 16, 17, 19, 19, 17, 17, 17, 18, 18, 18, //29872
18, 17, 17, 15, 16, 16, 15, 15, 16, 16, 15, 15, 15, 16, 17, 17, //29888
18, 19, 19, 19, 17, 17, 17, 18, 18, 16, 15, 14, 13, 13, 13, 12, //29904
13, 11, 11, 11, 10, 9, 8, 10, 10, 9, 8, 7, 6, 7, 7, 6, //29920
5, 6, 4, 3, 4, 5, 5, 6, 7, 6, 5, 7, 5, 4, 4, 3, //29936
3, 6, 3, 0, 1, 3, 2, -1, -1, 0, 0, 0, -1, 1, 2, 1, //29952
0, 0, 2, 3, 0, -1, -2, -3, 2, 2, -1, -2, -2, -2, -5, -4, //29968
-3, -4, -4, -5, -4, -4, -4, -3, -4, -3, -3, -3, -4, -7, -8, -8, //29984
-7, -7, -8, -9, -10, -9, -10, -11, -11, -13, -16, -16, -16, -17, -18, -19, //30000
-21, -22, -21, -22, -25, -27, -28, -27, -28, -28, -29, -30, -30, -30, -30, -29, //30016
-28, -26, -28, -30, -30, -31, -33, -34, -34, -32, -32, -32, -31, -31, -30, -30, //30032
-30, -29, -30, -30, -32, -33, -33, -33, -34, -34, -32, -30, -31, -32, -31, -31, //30048
-32, -34, -34, -29, -28, -27, -26, -26, -24, -24, -24, -22, -19, -19, -22, -23, //30064
-25, -25, -26, -26, -21, -23, -25, -25, -25, -24, -23, -22, -20, -18, -16, -14, //30080
-15, -15, -14, -13, -10, -8, -7, -5, -3, -4, -5, -4, 0, 2, -1, 0, //30096
3, 3, 3, 4, 7, 6, 2, 2, 1, -1, -1, 1, 3, 3, 4, 5, //30112
5, 8, 7, 6, 12, 14, 13, 14, 14, 15, 15, 16, 17, 17, 18, 16, //30128
12, 9, 10, 9, 6, 4, 8, 8, 6, 8, 11, 12, 13, 16, 16, 17, //30144
19, 19, 18, 20, 20, 22, 24, 24, 20, 19, 19, 18, 18, 18, 19, 19, //30160
20, 20, 20, 24, 31, 31, 32, 32, 32, 31, 28, 27, 25, 22, 22, 16, //30176
12, 9, 5, 4, 7, 5, 6, 11, 12, 12, 14, 18, 23, 22, 19, 20, //30192
21, 20, 18, 16, 14, 10, 9, 8, 3, 5, 7, 4, 6, 8, 9, 10, //30208
9, 8, 7, 6, 7, 6, 4, 5, 5, 5, 2, 0, -1, -3, -1, -1, //30224
-3, -5, -5, -4, -5, -9, -7, -6, -6, -3, 1, 4, 6, 11, 11, 10, //30240
12, 14, 12, 11, 10, 8, 5, 1, -1, -3, -7, -6, -3, -5, -6, -5, //30256
-4, -2, -1, 0, -1, -4, -4, -5, -8, -9, -9, -9, -9, -8, -7, -7, //30272
-8, -7, -3, -4, -4, 1, -1, -5, -5, -5, -6, -8, -9, -10, -9, -10, //30288
-12, -9, -5, -3, -2, -1, -1, 1, 3, 1, -1, 2, 1, 0, 2, 1, //30304
-2, 1, 1, 2, 5, 4, 5, 7, 4, 3, 0, -1, 3, -1, -3, -3, //30320
-3, -1, -7, -10, -7, 1, 2, -1, 2, 3, 2, 2, 2, 2, 3, 5, //30336
4, 0, 0, 1, -5, -9, -8, -9, -12, -11, -8, -5, -5, -2, 0, 0, //30352
2, 6, 7, 5, 2, -1, -4, -5, -7, -9, -6, -7, -10, -11, -9, -7, //30368
-7, -7, -5, -4, -5, 0, 1, -3, -4, -1, -2, -6, -4, -2, -2, -1, //30384
4, 3, 2, 3, 4, 3, 6, 7, 5, 4, 5, 6, 4, 3, 6, 8, //30400
6, 6, 9, 11, 13, 14, 11, 8, 8, 8, 5, 3, 4, 3, 0, -1, //30416
0, 0, 4, 4, 1, 1, 2, 4, 8, 8, 8, 8, 5, 1, 0, 0, //30432
-2, -6, -7, -7, -10, -10, -10, -10, -9, -9, -8, -8, -7, -7, -6, -5, //30448
-7, -8, -11, -16, -15, -16, -20, -21, -17, -12, -11, -9, -4, 3, 7, 6, //30464
7, 6, 1, -2, -3, -7, -8, -8, -9, -10, -11, -16, -17, -12, -8, -8, //30480
-10, -8, -2, 0, -3, -3, 1, 2, 0, -3, -4, -5, -4, -4, -4, -3, //30496
-3, -3, -1, -1, -1, 0, 1, 3, 4, 4, 5, 8, 9, 7, 4, 3, //30512
2, 3, 1, -4, -9, -9, -8, -9, -8, -6, -4, -4, -6, -8, -7, -4, //30528
0, 0, -2, 0, 1, -1, -2, -1, 1, -2, 0, 1, 1, 1, 1, 5, //30544
6, 7, 8, 6, 5, 5, 5, 5, 4, 5, 6, 5, 5, 5, 4, 4, //30560
6, 7, 5, 3, 3, 5, 3, 3, 3, 1, -1, 1, 0, 1, 2, 1, //30576
0, 0, 4, 9, 10, 12, 13, 12, 11, 9, 7, 6, 6, 4, 1, 2, //30592
1, -5, -2, 3, 4, 6, 9, 10, 11, 13, 14, 13, 11, 10, 7, 7, //30608
6, 6, 5, 3, 5, 6, 7, 7, 8, 11, 10, 6, 7, 7, 8, 7, //30624
3, 4, 5, 1, 0, 1, 1, 1, 1, -1, 0, 1, 2, 5, 6, 2, //30640
2, -2, -6, -6, -6, -7, -8, -6, -4, -3, 2, 3, 5, 6, 6, 7, //30656
6, 4, 1, -3, -5, -8, -11, -13, -12, -12, -12, -8, -6, -2, 2, 1, //30672
-1, -1, -3, -8, -11, -10, -8, -9, -12, -14, -13, -10, -6, -10, -9, -3, //30688
-1, -1, 0, 1, 2, 2, 1, 2, 0, -3, -3, -5, -9, -8, -10, -11, //30704
-10, -8, -7, -5, -1, -2, -2, 0, -3, 0, 0, -4, -5, -4, -6, -8, //30720
-9, -8, -8, -7, -7, -6, -5, -6, -7, -6, -6, -6, -6, -6, -4, -3, //30736
-2, -4, -6, -2, -3, -5, -4, -4, -3, 0, -2, -2, 0, -1, -4, -4, //30752
-4, -7, -9, -9, -9, -11, -11, -9, -6, -6, -8, -6, -4, -1, 3, 2, //30768
-3, -6, -4, -4, -7, -6, -2, -2, -3, -4, -4, -3, 0, -1, 0, 0, //30784
0, 1, 3, 3, 3, 4, 5, 2, 1, 0, -1, -1, -2, -3, -3, -4, //30800
-2, 0, 0, 3, 4, 4, 4, 5, 7, 6, 5, 3, 0, -2, -3, -4, //30816
-5, -5, -7, -8, -5, -5, -4, -1, 1, 1, 0, 1, 2, 2, 1, -1, //30832
2, 4, 1, 1, 2, 3, 1, 1, 2, 4, 5, 6, 7, 8, 9, 11, //30848
11, 14, 16, 12, 7, 8, 13, 13, 11, 12, 13, 9, 6, 7, 9, 10, //30864
8, 7, 7, 6, 4, 4, 2, 3, 4, 4, 5, 7, 7, 6, 6, 5, //30880
3, 2, -2, -1, -1, -2, -2, -3, -3, -1, 0, 1, 3, 4, 3, 1, //30896
0, 0, 0, 2, 1, -1, -2, -2, -1, -2, -2, -1, 1, 3, 4, 6, //30912
7, 8, 11, 11, 10, 9, 9, 10, 11, 10, 10, 12, 13, 13, 13, 13, //30928
14, 14, 13, 14, 15, 14, 13, 12, 11, 11, 11, 8, 5, 5, 6, 8, //30944
7, 7, 8, 7, 8, 8, 7, 5, 3, 2, 1, 1, 3, 2, 3, 5, //30960
2, 0, 0, 1, 1, -1, -1, 2, 2, 1, -1, -3, -4, -4, -5, -4, //30976
-4, -5, -8, -10, -8, -5, -5, -2, 0, -1, -3, -3, -2, -3, -3, -3, //30992
-4, -5, -6, -8, -9, -9, -7, -8, -11, -13, -11, -8, -7, -7, -6, -5, //31008
-5, -5, -4, -3, -3, -5, -5, -4, -2, -6, -6, -6, -7, -5, -3, -5, //31024
-4, -4, -4, -3, -3, -2, -4, -4, -3, -4, -5, -5, -6, -6, -6, -7, //31040
-9, -9, -9, -10, -11, -12, -13, -13, -13, -12, -10, -10, -12, -15, -15, -15, //31056
-13, -13, -14, -15, -15, -12, -11, -12, -12, -13, -13, -11, -10, -11, -12, -12, //31072
-11, -11, -9, -10, -10, -9, -7, -7, -7, -5, -5, -7, -10, -10, -10, -12, //31088
-13, -13, -13, -13, -12, -12, -12, -10, -8, -7, -5, -4, -4, -5, -5, -3, //31104
-3, -4, -5, -5, -4, -5, -5, -3, 0, 0, 3, 4, 6, 6, 4, 2, //31120
3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 7, 6, 4, //31136
3, 0, 0, 2, 3, 3, 3, 4, 6, 7, 7, 8, 10, 9, 10, 11, //31152
12, 13, 14, 15, 14, 11, 11, 9, 9, 10, 10, 7, 6, 7, 6, 4, //31168
4, 7, 6, 8, 9, 8, 8, 9, 10, 10, 10, 10, 8, 9, 8, 6, //31184
7, 7, 5, 9, 8, 6, 7, 8, 9, 9, 9, 10, 9, 7, 8, 7, //31200
5, 4, 4, 4, 4, 3, 0, 1, 2, 2, 2, 2, 3, 4, 4, 6, //31216
4, 2, 3, 4, 5, 5, 4, 4, 5, 5, 3, 1, 0, -4, -5, -2, //31232
-1, -1, 1, 1, 0, 1, 5, 5, 5, 4, 3, 1, -1, 1, 1, -1, //31248
-2, -2, 0, 2, 3, 3, 2, 0, 2, 1, 1, 1, 0, -4, -5, -5, //31264
-7, -9, -6, -5, -4, -4, -7, -7, -7, -8, -7, -4, -3, -3, -3, -4, //31280
-4, -4, -5, -7, -7, -6, -3, -4, -6, -9, -11, -9, -9, -8, -5, -9, //31296
-9, -8, -9, -10, -10, -8, -5, -5, -9, -12, -11, -11, -11, -10, -9, -10, //31312
-11, -10, -9, -7, -6, -7, -6, -5, -7, -7, -6, -8, -6, -3, 0, 0, //31328
-1, -1, -1, 1, 4, 4, 0, -3, -4, -8, -11, -9, -5, -5, -4, -3, //31344
-3, -3, -5, -5, -2, 1, 1, -2, -4, -5, -5, -4, -3, -1, 1, 0, //31360
-1, 0, 1, 0, 2, 6, 6, 7, 11, 11, 10, 7, 7, 9, 8, 9, //31376
9, 7, 7, 10, 15, 19, 18, 16, 16, 16, 17, 16, 15, 15, 12, 4, //31392
2, 3, 5, 5, 6, 8, 7, 6, 5, 3, 1, -1, -1, 1, 3, 2, //31408
-1, -3, -4, -4, -1, 2, 4, 4, 2, -2, -5, -3, 0, 2, 3, 5, //31424
4, -2, -4, -3, 1, 3, 1, 2, 1, -5, -8, -7, -4, -2, -5, -9, //31440
-8, -8, -9, -12, -13, -13, -14, -12, -11, -10, -11, -12, -12, -11, -11, -10, //31456
-11, -13, -12, -12, -13, -13, -14, -15, -14, -12, -13, -14, -12, -10, -11, -9, //31472
-9, -11, -11, -9, -10, -9, -8, -9, -12, -16, -15, -13, -11, -9, -9, -11, //31488
-11, -11, -8, -6, -5, -4, -4, -3, -3, -5, -4, -5, -4, -1, 0, 0, //31504
-2, -6, -8, -4, -2, -2, 1, 2, 0, -1, 1, 2, 3, 2, 2, 5, //31520
5, 5, 4, 5, 7, 7, 7, 6, 6, 6, 5, 5, 7, 9, 9, 9, //31536
10, 11, 12, 15, 16, 16, 17, 14, 12, 13, 12, 12, 13, 13, 11, 9, //31552
8, 8, 8, 10, 9, 10, 10, 6, 4, 7, 7, 8, 9, 11, 14, 12, //31568
11, 11, 12, 12, 8, 8, 11, 11, 8, 8, 9, 10, 12, 15, 18, 17, //31584
16, 17, 19, 20, 20, 18, 19, 17, 13, 10, 10, 11, 12, 12, 10, 7, //31600
7, 7, 9, 13, 14, 13, 12, 10, 9, 10, 11, 12, 11, 12, 12, 10, //31616
8, 8, 9, 11, 12, 13, 15, 15, 16, 17, 18, 20, 23, 24, 23, 19, //31632
17, 15, 12, 12, 12, 11, 10, 10, 9, 10, 11, 11, 10, 11, 12, 11, //31648
10, 7, 5, 4, 3, 3, 3, 3, 4, 1, 0, 1, 2, 2, 1, -1, //31664
-1, -1, -1, -2, -1, -1, -3, -5, -4, -7, -9, -8, -3, -1, -3, -4, //31680
-5, -5, -5, -4, -2, 0, -1, -5, -9, -8, -8, -13, -15, -14, -16, -21, //31696
-20, -18, -16, -16, -19, -18, -15, -16, -19, -20, -17, -16, -21, -28, -30, -28, //31712
-31, -36, -34, -31, -32, -32, -29, -24, -26, -29, -30, -29, -28, -34, -39, -38, //31728
-34, -34, -32, -25, -20, -19, -20, -22, -18, -20, -27, -32, -34, -33, -37, -40, //31744
-40, -37, -36, -38, -38, -34, -32, -34, -34, -33, -34, -35, -35, -35, -31, -30, //31760
-31, -31, -29, -28, -34, -35, -30, -28, -29, -27, -22, -19, -21, -21, -16, -9, //31776
-8, -9, -8, -5, -5, -13, -13, -12, -11, -10, -9, -2, 4, 6, 2, 0, //31792
4, 2, 1, 5, 5, 2, 5, 7, 8, 11, 13, 9, 10, 10, 7, 5, //31808
5, 6, 4, 2, 6, 6, 4, 4, 4, 8, 13, 15, 13, 15, 17, 17, //31824
18, 20, 22, 22, 21, 19, 20, 21, 23, 24, 25, 26, 29, 27, 25, 28, //31840
31, 29, 28, 27, 25, 23, 21, 19, 17, 17, 18, 19, 21, 24, 25, 26, //31856
26, 27, 26, 24, 24, 24, 20, 19, 21, 23, 26, 29, 32, 33, 33, 28, //31872
24, 25, 25, 20, 14, 13, 12, 10, 11, 12, 13, 15, 14, 12, 12, 12, //31888
8, 8, 9, 12, 14, 12, 11, 12, 10, 6, 5, 12, 12, 12, 14, 14, //31904
14, 16, 17, 19, 19, 20, 21, 20, 18, 17, 15, 13, 9, 6, 3, 0, //31920
2, 4, 4, 7, 10, 10, 7, 6, 7, 5, 3, 0, 0, -2, -2, -3, //31936
-5, -6, -8, -9, -9, -10, -10, -8, -6, -5, -5, -4, -3, -4, -4, -3, //31952
-3, -4, -6, -9, -9, -10, -13, -13, -10, -8, -7, -7, -6, -6, -6, -5, //31968
-3, -2, -3, -5, -2, 0, 0, 0, 1, 4, 4, 9, 14, 17, 17, 15, //31984
9, 3, 1, -1, -6, -8, -7, -9, -11, -9, -4, -3, -2, -2, -3, -6, //32000
-8, -8, -8, -10, -12, -14, -16, -17, -17, -17, -15, -12, -10, -11, -13, -12, //32016
-9, -9, -12, -12, -12, -13, -13, -13, -16, -16, -15, -13, -14, -14, -9, -9, //32032
-9, -6, -6, -9, -12, -15, -17, -21, -24, -26, -27, -28, -29, -26, -23, -21, //32048
-18, -13, -11, -11, -9, -9, -11, -11, -10, -14, -22, -24, -27, -28, -27, -22, //32064
-19, -17, -15, -15, -12, -6, -5, -4, -2, 0, 2, 2, 2, 1, -2, -5, //32080
-6, -5, -7, -8, -7, -5, -4, -3, -1, 1, 1, 2, 2, 1, 0, -1, //32096
-3, -6, -9, -12, -14, -15, -16, -14, -11, -11, -9, -5, -2, 0, 1, 3, //32112
6, 6, 5, 3, 1, -3, -6, -6, -3, -2, -1, 1, 5, 7, 11, 14, //32128
14, 12, 10, 8, 5, 2, 2, 3, 3, 4, 6, 7, 8, 9, 9, 9, //32144
12, 13, 13, 15, 17, 16, 17, 18, 18, 16, 14, 12, 7, 4, 2, 2, //32160
3, 5, 7, 8, 10, 12, 12, 11, 10, 8, 5, 1, 2, 1, -1, -1, //32176
-3, -2, 0, 2, 3, 4, 9, 7, 4, 3, 3, 2, -2, -2, -2, -3, //32192
-4, -4, -2, -1, 0, 2, 2, 2, 2, 1, 0, 0, 1, 1, 1, 0, //32208
-1, -2, -2, 0, 2, 3, 3, 4, 7, 6, 5, 5, 6, 8, 9, 9, //32224
8, 7, 7, 4, 2, 0, -1, -3, -4, -2, -1, 0, 1, 3, 4, 2, //32240
2, 3, 3, 2, 2, 3, 4, 4, 4, 4, 3, 2, 1, 0, -2, -1, //32256
-2, -1, 3, 6, 7, 6, 7, 6, 5, 5, 4, 5, 8, 9, 8, 8, //32272
8, 5, 3, 1, 1, 2, 3, 3, 4, 6, 8, 8, 7, 8, 6, 3, //32288
3, 1, -2, -4, -4, -2, 0, 0, 0, 2, 3, -1, -3, 0, 1, 2, //32304
4, 4, 4, 1, 0, 0, 1, 2, 1, 0, 0, 0, 1, 1, 2, 2, //32320
1, 0, -3, -3, -5, -5, -5, -7, -7, -4, -3, -5, -5, -5, -6, -7, //32336
-5, -6, -7, -6, -5, -3, -4, -5, -6, -7, -7, -8, -11, -13, -15, -15, //32352
-11, -10, -9, -8, -8, -8, -9, -9, -10, -11, -13, -17, -18, -17, -16, -15, //32368
-15, -12, -10, -7, -7, -8, -8, -7, -6, -7, -8, -7, -8, -9, -10, -10, //32384
-9, -9, -8, -7, -8, -8, -7, -6, -6, -7, -7, -7, -7, -10, -9, -8, //32400
-9, -9, -9, -10, -11, -12, -12, -12, -11, -10, -10, -10, -10, -10, -9, -9, //32416
-8, -8, -8, -6, -7, -7, -6, -4, -2, 0, 0, 0, -1, -3, -6, -6, //32432
-6, -6, -6, -6, -4, -4, -3, -2, -1, 0, 0, -1, -1, -2, -2, -1, //32448
-2, -2, -3, -3, -2, -2, -4, -4, -3, -1, -2, -3, -2, -1, 0, 0, //32464
1, 2, 2, 3, 2, 2, 1, -1, -1, -2, -2, 0, 2, 5, 7, 9, //32480
9, 9, 8, 7, 6, 6, 5, 6, 6, 7, 6, 3, 3, 3, 1, 0, //32496
1, 2, 3, 3, 4, 5, 5, 5, 5, 5, 6, 6, 5, 5, 6, 7, //32512
8, 8, 9, 9, 8, 8, 9, 9, 9, 13, 16, 18, 19, 19, 18, 15, //32528
13, 12, 11, 9, 7, 6, 5, 4, 4, 3, 3, 4, 4, 3, 3, 4, //32544
4, 4, 4, 5, 7, 9, 9, 10, 10, 9, 8, 5, 3, 2, 2, 2, //32560
3, 3, 5, 5, 5, 7, 10, 10, 9, 8, 7, 8, 6, 4, 4, 4, //32576
5, 6, 7, 9, 9, 8, 8, 8, 6, 7, 7, 8, 8, 7, 7, 7, //32592
8, 8, 8, 10, 9, 8, 9, 9, 9, 7, 6, 5, 4, 4, 4, 3, //32608
3, 2, 2, 4, 5, 5, 5, 6, 6, 6, 4, 4, 4, 4, 4, 5, //32624
5, 4, 4, 3, 1, 1, 2, 2, 2, 2, 1, 1, 0, 0, 0, 0, //32640
0, -1, -2, -3, -5, -4, -4, -5, -6, -9, -10, -12, -11, -11, -11, -11, //32656
-11, -11, -13, -14, -15, -16, -16, -14, -14, -14, -13, -11, -11, -10, -9, -10, //32672
-10, -10, -10, -11, -11, -12, -12, -12, -11, -10, -10, -11, -10, -11, -11, -10, //32688
-9, -8, -7, -8, -8, -9, -10, -10, -10, -11, -11, -11, -13, -13, -12, -10, //32704
-10, -11, -11, -11, -11, -10, -9, -9, -10, -11, -11, -11, -10, -9, -7, -7, //32720
-7, -8, -9, -9, -9, -6, -4, -3, -3, -3, -4, -3, -2, -1, -1, -3, //32736
-3, -3, -4, -3, 0, 0, 1, 2, 2, 2, 2, -1, -2, -1, 0, 0, //32752
-1, -3, -2, -2, -1, 1, 1, 4, 5, 4, 3, 2, 2, 3, 3, 4, //32768
4, 4, 2, 3, 3, 3, 2, 2, 3, 0, -2, -4, -4, -4, -4, -2, //32784
-1, 0, 1, 4, 4, 5, 5, 5, 5, 4, 3, 3, 2, 2, 1, 2, //32800
2, 3, 4, 4, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 1, 1, //32816
2, 2, 3, 5, 5, 4, 3, 4, 6, 6, 6, 3, 2, 3, 4, 6, //32832
9, 8, 10, 11, 9, 8, 10, 9, 8, 9, 9, 6, -1, -3, -3, -1, //32848
3, 7, 7, 7, 2, -1, 1, 6, 8, 8, 7, 6, 3, 1, 3, 7, //32864
12, 14, 11, 8, 3, 1, 2, 4, 9, 10, 7, 4, 1, 0, 3, 5, //32880
9, 11, 7, 1, -2, -5, -3, 3, 6, 9, 6, 1, -2, -2, 0, 9, //32896
12, 11, 7, 1, -6, -6, -1, 5, 9, 11, 5, 1, -2, -3, -1, 4, //32912
10, 9, 4, -1, -4, -3, -1, 4, 7, 7, 4, -2, -4, -5, -3, 1, //32928
7, 7, 5, 0, -4, -5, 0, 4, 7, 7, 4, 1, -3, -3, -2, 2, //32944
4, 3, 1, -1, -2, -5, -4, 4, 8, 8, 3, -1, -4, -5, -1, 4, //32960
7, 8, 6, 3, -1, -3, 1, 4, 10, 10, 6, 1, -2, -3, 0, 3, //32976
7, 7, 4, -2, -7, -8, -7, -5, -2, -1, -3, -5, -9, -11, -9, -9, //32992
-7, -5, -6, -8, -15, -17, -16, -13, -12, -11, -8, -11, -16, -20, -20, -17, //33008
-15, -14, -12, -13, -17, -21, -20, -18, -14, -12, -13, -14, -18, -23, -23, -23, //33024
-22, -17, -19, -20, -22, -26, -25, -25, -24, -21, -22, -25, -24, -25, -25, -23, //33040
-21, -19, -18, -18, -17, -18, -20, -15, -11, -11, -9, -7, -10, -13, -13, -14, //33056
-15, -14, -12, -10, -10, -11, -13, -13, -11, -8, -6, -4, -6, -10, -12, -11, //33072
-10, -10, -7, -3, -2, -2, -4, -6, -4, -2, 0, 3, 4, 5, 4, 0, //33088
1, 2, 3, 5, 1, 2, 5, 4, 3, 4, 4, 4, 3, 3, 6, 7, //33104
5, 3, 4, 7, 6, 7, 9, 9, 10, 10, 9, 13, 15, 14, 15, 17, //33120
18, 19, 19, 21, 22, 23, 24, 25, 24, 23, 23, 22, 24, 25, 27, 27, //33136
26, 27, 25, 27, 28, 26, 26, 26, 28, 30, 31, 30, 28, 29, 31, 31, //33152
32, 32, 28, 26, 27, 29, 33, 35, 34, 35, 33, 31, 32, 33, 35, 36, //33168
33, 30, 27, 23, 16, 17, 21, 25, 26, 24, 21, 19, 20, 21, 25, 27, //33184
23, 17, 13, 12, 12, 11, 13, 18, 18, 16, 13, 12, 14, 16, 20, 23, //33200
20, 18, 15, 11, 10, 11, 14, 16, 16, 13, 12, 14, 17, 22, 23, 22, //33216
19, 7, 2, 0, -3, -4, -4, -3, -1, 0, 2, 6, 14, 20, 25, 23, //33232
16, 8, -2, -8, -10, -6, -1, -3, -3, -2, -1, 1, 7, 12, 13, 13, //33248
10, 4, -2, -7, -11, -13, -12, -12, -9, -5, -3, -2, -3, -3, -1, -4, //33264
-7, -7, -7, -10, -19, -23, -24, -24, -24, -22, -21, -21, -23, -26, -27, -24, //33280
-23, -24, -26, -28, -26, -29, -28, -22, -17, -15, -16, -23, -32, -38, -39, -40, //33296
-39, -34, -30, -29, -29, -27, -22, -21, -21, -22, -27, -35, -42, -51, -56, -57, //33312
-56, -51, -47, -42, -34, -29, -24, -15, -13, -13, -16, -23, -33, -40, -47, -52, //33328
-55, -56, -50, -48, -44, -36, -32, -32, -27, -27, -27, -30, -34, -37, -38, -38, //33344
-37, -34, -29, -24, -22, -20, -20, -20, -24, -27, -25, -25, -27, -28, -28, -27, //33360
-25, -21, -14, -4, 8, 11, 13, 13, 12, 6, 3, -1, -8, -12, -18, -27, //33376
-27, -26, -19, -10, -3, 7, 7, 5, 6, 9, 10, 13, 13, 12, 10, 9, //33392
11, 12, 14, 16, 15, 12, 5, 1, -1, 0, 4, 10, 12, 15, 18, 17, //33408
16, 19, 20, 20, 17, 13, 11, 9, 10, 11, 13, 18, 24, 26, 29, 31, //33424
32, 31, 26, 23, 17, 13, 10, 7, 5, 9, 16, 21, 27, 37, 40, 40, //33440
38, 36, 35, 31, 27, 23, 20, 18, 17, 19, 25, 30, 33, 35, 32, 29, //33456
27, 23, 19, 16, 16, 17, 16, 12, 11, 13, 12, 13, 11, 7, 5, 4, //33472
5, 6, 10, 14, 13, 9, 7, 5, 3, 3, 1, 1, 1, 0, -1, -3, //33488
0, 4, 6, 8, 11, 13, 7, 4, 3, 4, 5, 8, 11, 12, 14, 15, //33504
15, 17, 18, 18, 18, 17, 14, 7, 4, 2, 4, 9, 16, 21, 24, 24, //33520
20, 15, 6, 2, -1, -1, 0, 2, 2, 3, 5, 8, 8, 9, 10, 9, //33536
6, 2, -3, -9, -9, -6, -2, 1, 6, 7, 5, 1, -2, -3, -1, -1, //33552
-2, -4, -8, -12, -12, -11, -10, -9, -9, -10, -15, -19, -20, -20, -20, -20, //33568
-20, -19, -20, -20, -19, -15, -14, -13, -13, -14, -15, -15, -17, -17, -15, -14, //33584
-12, -12, -11, -12, -14, -14, -14, -14, -13, -12, -10, -9, -11, -13, -13, -12, //33600
-9, -4, -1, 1, 2, 2, 3, 6, 5, 1, -5, -11, -14, -16, -13, -7, //33616
-1, 1, 3, 4, 2, 0, -1, -4, -7, -11, -18, -22, -22, -22, -17, -14, //33632
-12, -12, -13, -16, -17, -16, -13, -12, -12, -10, -9, -9, -10, -10, -9, -9, //33648
-8, -9, -10, -11, -9, -4, 0, 4, 8, 10, 11, 9, 5, 0, -3, -7, //33664
-9, -8, -5, -4, -5, -5, -5, -5, -4, -1, 0, -1, -2, -3, -4, -6, //33680
-7, -5, -4, -2, -2, -4, -7, -6, -3, 2, 5, 8, 6, 3, 1, -1, //33696
-5, -8, -8, -8, -7, -6, -3, 0, 4, 9, 12, 13, 14, 9, 6, 2, //33712
-1, -2, -4, -7, -8, -11, -15, -14, -10, -7, -2, 2, 6, 10, 10, 9, //33728
8, 7, 4, -3, -6, -7, -6, -3, -1, 1, 1, 0, -1, -2, -4, -6, //33744
-7, -8, -7, -5, -4, -3, 0, 4, 7, 9, 8, 6, 2, -3, -6, -9, //33760
-11, -11, -11, -11, -11, -7, -5, -1, 4, 7, 8, 12, 14, 13, 12, 12, //33776
12, 10, 8, 7, 8, 9, 11, 12, 14, 14, 13, 10, 4, 1, -1, -2, //33792
-1, 2, 7, 10, 12, 12, 12, 10, 7, 6, 8, 8, 5, 3, 2, 3, //33808
4, 7, 12, 16, 17, 17, 14, 11, 4, 0, -3, -7, -7, -5, -4, -3, //33824
-2, 0, 3, 7, 10, 13, 16, 17, 15, 12, 8, 4, 3, 0, -4, -10, //33840
-11, -11, -10, -8, -4, -2, 0, 1, 2, 4, 5, 4, 3, -1, -5, -8, //33856
-9, -7, -6, -5, -2, 2, 4, 6, 8, 10, 10, 9, 9, 8, 6, 3, //33872
0, -4, -5, -6, -6, -5, 2, 7, 10, 13, 15, 15, 13, 11, 9, 8, //33888
7, 4, 0, -3, -4, -3, -3, 0, 1, 3, 4, 5, 6, 6, 6, 6, //33904
4, 1, -2, -8, -11, -11, -10, -10, -11, -10, -10, -9, -7, -6, -4, -5, //33920
-6, -8, -12, -13, -13, -14, -15, -15, -14, -13, -11, -9, -7, -7, -5, -5, //33936
-7, -9, -11, -12, -12, -11, -9, -10, -11, -10, -11, -10, -9, -8, -8, -8, //33952
-9, -10, -10, -9, -7, -6, -6, -8, -9, -10, -10, -10, -8, -7, -8, -9, //33968
-10, -12, -13, -13, -13, -11, -8, -7, -7, -6, -5, -5, -6, -7, -9, -12, //33984
-14, -14, -11, -9, -6, -2, 2, 1, -1, -3, -4, -5, -4, -5, -6, -6, //34000
-6, -3, 1, 5, 6, 7, 6, 3, -1, -4, -4, -2, -1, 0, -1, -2, //34016
-2, -4, -4, -3, -4, -5, -5, -6, -7, -8, -8, -7, -4, -1, 1, 1, //34032
0, 0, 0, 1, 1, 1, 1, 0, -1, -2, -3, -2, -2, -1, 2, 5, //34048
10, 11, 12, 12, 12, 12, 10, 7, 1, -3, -5, -7, -6, -4, -3, -1, //34064
1, 3, 4, 4, 4, 4, 3, 0, -2, -3, -4, -3, 1, 4, 5, 5, //34080
5, 3, 4, 5, 6, 7, 7, 5, 5, 5, 4, 2, 2, -1, -4, -6, //34096
-6, -4, -4, -1, 0, -1, 0, 0, 0, 1, 2, 2, 2, 2, 0, -1, //34112
-2, -1, 0, 0, -1, 0, -1, 0, 0, 1, 3, 3, 3, 2, 1, 1, //34128
2, 1, 1, 2, 1, 2, 3, 3, 4, 4, 3, 1, 1, 1, 2, 3, //34144
5, 7, 8, 7, 5, 4, 4, 3, 4, 7, 7, 5, 4, 2, 1, 0, //34160
-1, -1, 0, 1, 1, 1, 2, 4, 4, 4, 5, 5, 2, 2, 1, 1, //34176
2, 4, 6, 6, 5, 3, 1, 1, 1, 2, 1, 0, -1, -6, -7, -7, //34192
-6, -5, -5, -6, -5, -4, -2, 2, 5, 8, 9, 8, 4, 0, -6, -7, //34208
-8, -6, -3, -2, 1, 3, 4, 6, 9, 11, 13, 12, 9, 8, 7, 8, //34224
9, 9, 9, 9, 8, 6, 4, 4, 6, 6, 6, 6, 5, 4, 2, 3, //34240
4, 6, 6, 3, 1, -1, -2, -2, -1, 3, 3, 3, 4, 3, 4, 5, //34256
6, 8, 7, 5, 2, 0, -2, -2, 0, 2, 1, 1, 1, 1, 1, 2, //34272
4, 5, 5, 4, 4, 3, 4, 6, 9, 9, 7, 4, 2, 0, -1, -1, //34288
1, 1, 0, -1, 0, 0, 0, 1, 2, 2, 1, -1, -3, -3, -2, -2, //34304
-4, -5, -8, -11, -10, -9, -7, -7, -9, -11, -10, -9, -11, -10, -7, -7, //34320
-7, -8, -10, -10, -8, -5, -3, -1, -1, -4, -6, -6, -7, -7, -7, -8, //34336
-11, -15, -19, -18, -16, -16, -12, -12, -12, -9, -10, -11, -13, -13, -9, -10, //34352
-10, -12, -14, -13, -13, -11, -9, -12, -12, -12, -13, -13, -12, -12, -12, -11, //34368
-10, -11, -11, -10, -10, -10, -9, -7, -7, -9, -11, -11, -11, -12, -12, -10, //34384
-10, -11, -13, -14, -14, -11, -8, -6, -5, -4, -4, -6, -6, -4, -5, -4, //34400
-2, -2, -3, -2, 2, 4, 6, 6, 4, 3, 3, 3, 2, 0, 0, -2, //34416
-1, -2, -4, -4, -4, -4, -3, -4, -6, -6, -4, -5, -7, -7, -7, -7, //34432
-5, -5, -6, -6, -5, -5, -4, -6, -6, -5, -6, -7, -7, -9, -9, -9, //34448
-6, -4, -5, -5, -6, -5, -4, -6, -5, -4, -5, -7, -9, -12, -11, -10, //34464
-11, -13, -11, -13, -13, -11, -9, -9, -8, -8, -8, -6, -7, -10, -12, -12, //34480
-11, -12, -14, -14, -14, -12, -12, -13, -13, -14, -12, -10, -10, -9, -7, -6, //34496
-6, -6, -6, -6, -6, -4, -2, -3, -4, -4, -4, -2, 1, 4, 6, 7, //34512
10, 10, 10, 11, 11, 9, 7, 5, 3, 0, 1, 6, 7, 7, 8, 10, //34528
12, 14, 11, 8, 7, 7, 7, 7, 6, 6, 7, 8, 12, 15, 16, 18, //34544
20, 20, 18, 16, 17, 17, 15, 14, 14, 15, 15, 16, 18, 19, 21, 21, //34560
20, 20, 20, 21, 23, 25, 26, 24, 23, 22, 21, 22, 22, 22, 23, 22, //34576
23, 24, 25, 27, 29, 29, 29, 29, 28, 28, 27, 27, 27, 25, 24, 23, //34592
25, 26, 26, 25, 26, 26, 27, 25, 22, 22, 20, 20, 21, 22, 22, 21, //34608
19, 20, 21, 21, 21, 22, 22, 22, 22, 23, 23, 21, 19, 19, 19, 17, //34624
16, 12, 10, 9, 7, 7, 4, 2, 2, 3, 4, 7, 7, 9, 9, 9, //34640
8, 7, 7, 6, 5, 4, 3, 3, 3, 3, 4, 4, 5, 4, 2, 1, //34656
1, 1, 1, 3, 2, 2, 2, 1, 1, 4, 6, 10, 10, 8, 7, 6, //34672
4, 3, 3, 3, 1, -4, -9, -13, -15, -15, -15, -14, -15, -17, -17, -21, //34688
-20, -19, -21, -20, -18, -19, -19, -19, -18, -15, -12, -10, -9, -9, -8, -8, //34704
-9, -9, -10, -11, -13, -20, -22, -25, -26, -23, -21, -19, -18, -19, -20, -22, //34720
-25, -29, -31, -33, -34, -33, -31, -29, -23, -18, -13, -9, -10, -14, -17, -22, //34736
-27, -32, -38, -41, -42, -42, -43, -39, -36, -31, -28, -28, -27, -24, -22, -19, //34752
-17, -15, -15, -18, -18, -19, -23, -26, -31, -35, -37, -39, -40, -40, -40, -39, //34768
-37, -33, -27, -21, -16, -15, -13, -14, -15, -12, -12, -12, -13, -14, -17, -23, //34784
-28, -33, -37, -40, -42, -39, -38, -38, -36, -34, -29, -25, -20, -15, -11, -7, //34800
-2, 0, -1, -3, -4, -5, -7, -11, -12, -11, -11, -9, -10, -10, -11, -12, //34816
-14, -15, -13, -9, -6, -4, -1, 1, 0, -1, -4, -4, -1, 0, 2, 2, //34832
2, 0, -6, -8, -10, -11, -11, -11, -11, -10, -7, -4, -2, 0, 2, 5, //34848
10, 15, 18, 17, 16, 15, 13, 11, 10, 12, 13, 12, 14, 17, 19, 21, //34864
24, 26, 26, 24, 21, 19, 16, 15, 16, 20, 24, 26, 27, 27, 27, 26, //34880
25, 26, 27, 27, 25, 20, 18, 19, 19, 20, 21, 21, 20, 20, 20, 19, //34896
23, 28, 30, 31, 32, 32, 29, 27, 26, 26, 27, 28, 28, 28, 30, 31, //34912
32, 38, 42, 43, 42, 40, 37, 32, 27, 22, 17, 14, 12, 11, 11, 11, //34928
12, 13, 14, 13, 13, 13, 11, 9, 8, 6, 3, 1, -1, -3, -2, 0, //34944
3, 6, 8, 7, 6, 6, 5, 3, 3, 4, 4, 3, 2, 0, 1, 1, //34960
2, 4, 5, 5, 4, 7, 9, 13, 16, 17, 19, 16, 10, 6, 1, -3, //34976
-4, -3, -2, -1, 0, 4, 5, 6, 7, 7, 6, 4, 3, 2, 1, 0, //34992
-2, -4, -4, -3, -1, -1, 1, 1, 1, 1, 2, 3, 3, 2, 0, -3, //35008
-4, -4, -3, -2, -1, 0, 1, 0, 0, -1, -4, -5, -5, -5, -6, -7, //35024
-8, -10, -10, -9, -10, -10, -8, -8, -8, -12, -15, -16, -19, -19, -18, -18, //35040
-18, -18, -21, -24, -22, -21, -18, -16, -16, -16, -17, -17, -16, -13, -11, -11, //35056
-13, -18, -21, -23, -27, -28, -28, -26, -23, -22, -18, -14, -9, -4, -2, 0, //35072
1, 1, 0, -4, -6, -9, -10, -13, -17, -20, -21, -22, -23, -23, -22, -20, //35088
-15, -13, -11, -7, -5, -2, 0, 0, -1, -2, -5, -8, -12, -15, -16, -16, //35104
-16, -13, -11, -10, -8, -7, -5, -2, 1, 4, 5, 7, 9, 9, 8, 8, //35120
8, 5, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, -1, -3, -3, -3, //35136
-3, -2, 0, 0, 0, -1, -1, 0, 1, 3, 2, 2, 3, 3, 3, 2, //35152
2, 2, 1, 0, 1, 1, 1, 2, 3, 4, 4, 4, 4, 4, 5, 5, //35168
5, 5, 4, 3, 3, 2, 3, 3, 2, 2, 2, 0, 0, 0, 1, 2, //35184
3, 5, 5, 6, 9, 10, 10, 11, 10, 9, 8, 6, 3, 2, 2, 2, //35200
2, 2, 3, 5, 9, 10, 12, 14, 12, 11, 10, 8, 7, 8, 7, 7, //35216
7, 8, 9, 11, 13, 15, 17, 18, 17, 15, 11, 7, 4, 1, -1, -2, //35232
-2, -2, -2, -1, 2, 4, 5, 8, 10, 10, 9, 7, 4, 2, 0, -2, //35248
-4, -6, -7, -7, -4, -1, 0, 2, 5, 6, 6, 7, 8, 8, 6, 4, //35264
0, -2, -3, -6, -8, -8, -7, -5, -4, -2, 0, 2, 3, 5, 5, 4, //35280
1, 1, 0, -2, -3, -5, -8, -11, -11, -11, -11, -9, -6, -5, -4, -2, //35296
-1, 1, 1, -1, -3, -4, -6, -7, -7, -7, -6, -4, -2, 0, 0, 1, //35312
0, -2, -5, -8, -10, -10, -9, -8, -3, 0, 2, 5, 6, 8, 9, 9, //35328
8, 4, 1, -3, -7, -10, -12, -13, -13, -12, -12, -11, -10, -10, -10, -8, //35344
-6, -6, -6, -6, -6, -7, -8, -8, -7, -6, -5, -4, -2, -1, -2, -4, //35360
-6, -7, -8, -9, -10, -11, -11, -11, -11, -10, -8, -6, -5, -4, -4, -3, //35376
-3, -3, -2, -3, -4, -4, -7, -8, -8, -9, -9, -7, -5, -5, -4, -3, //35392
-2, -1, 0, 0, 0, 1, 0, 0, -1, -2, -3, -4, -5, -6, -7, -8, //35408
-8, -8, -8, -3, -1, 0, 3, 5, 8, 8, 7, 7, 4, 2, 0, -2, //35424
-2, -3, -3, 1, 5, 8, 10, 11, 11, 10, 8, 7, 7, 4, 2, 0, //35440
0, 1, 2, 3, 6, 8, 8, 7, 6, 5, 3, 2, 0, -4, -6, -6, //35456
-6, -5, -4, -1, 2, 4, 6, 5, 3, 2, 1, -1, -3, -5, -5, -6, //35472
-8, -5, -4, -3, -2, 0, 2, 3, 4, 5, 5, 3, 2, -1, -4, -7, //35488
-7, -8, -7, -6, -5, -4, -2, -1, 0, 0, 1, 1, 0, -3, -3, -3, //35504
-2, -2, -2, -3, -3, -3, -4, -7, -7, -8, -7, -6, -6, -6, -4, -3, //35520
-1, 1, 2, 3, 6, 6, 6, 6, 7, 8, 9, 8, 7, 6, 6, 6, //35536
7, 7, 7, 8, 10, 7, 7, 6, 6, 7, 7, 8, 7, 6, 7, 7, //35552
8, 8, 7, 6, 5, 4, 1, 1, 2, 3, 4, 5, 6, 6, 7, 8, //35568
10, 12, 13, 11, 12, 13, 10, 11, 11, 11, 11, 11, 9, 7, 5, 5, //35584
4, 4, 4, 3, 2, 1, 1, 3, 3, 4, 7, 7, 7, 10, 7, 7, //35600
9, 8, 9, 11, 10, 11, 11, 11, 10, 8, 7, 6, 5, 6, 6, 5, //35616
5, 5, 6, 7, 6, 6, 6, 6, 6, 4, 0, 0, 0, 0, 0, 0, //35632
-3, -5, -4, -3, -1, 0, -2, -2, -2, -3, -1, -1, -1, 1, -1, -4, //35648
-6, -8, -7, -6, -5, -3, -3, -5, -5, -4, -4, -3, -1, -2, -4, -5, //35664
-8, -7, -5, -5, -6, -8, -8, -7, -6, -4, -4, -3, -5, -6, -7, -12, //35680
-13, -12, -11, -7, -8, -10, -8, -9, -5, -3, -3, -1, -2, -7, -8, -8, //35696
-9, -10, -10, -10, -11, -12, -15, -17, -17, -15, -14, -14, -14, -17, -17, -16, //35712
-16, -11, -8, -9, -7, -10, -9, -10, -13, -9, -10, -9, -8, -11, -12, -14, //35728
-13, -8, -9, -10, -10, -13, -11, -8, -6, -6, -8, -8, -8, -7, -7, -6, //35744
-5, -7, -7, -9, -11, -8, -9, -3, 1, 1, 2, -1, -3, -3, -2, 0, //35760
0, 1, 1, -2, -3, -4, -5, -3, -4, -2, -1, -4, -5, -7, -7, -6, //35776
-3, 0, -2, -3, -5, -5, -4, -5, -4, -6, -8, -7, -9, -9, -9, -10, //35792
-6, -7, -12, -15, -16, -16, -18, -19, -20, -22, -20, -19, -20, -17, -13, -10, //35808
-8, -12, -15, -16, -16, -14, -12, -14, -17, -17, -17, -16, -11, -7, -4, -5, //35824
-6, -8, -12, -13, -13, -12, -9, -10, -10, -10, -12, -8, -5, -4, -1, -2, //35840
-6, -8, -7, -5, -4, -3, -2, -2, -1, -2, -3, 0, 1, 2, 1, 0, //35856
0, 0, -1, 0, 4, 7, 8, 6, 3, 3, 5, 9, 12, 12, 11, 8, //35872
5, 5, 7, 9, 11, 13, 13, 13, 12, 13, 16, 18, 19, 19, 17, 16, //35888
13, 11, 13, 14, 14, 14, 10, 8, 11, 16, 18, 18, 19, 22, 20, 20, //35904
20, 20, 21, 21, 20, 19, 19, 20, 21, 22, 26, 27, 26, 25, 26, 26, //35920
26, 26, 27, 28, 27, 24, 25, 26, 26, 27, 30, 30, 29, 28, 26, 26, //35936
26, 30, 32, 29, 28, 26, 18, 18, 18, 18, 18, 15, 17, 18, 18, 22, //35952
25, 26, 26, 21, 17, 14, 11, 9, 8, 9, 11, 14, 15, 18, 20, 21, //35968
22, 21, 17, 14, 8, 4, 2, 2, 5, 8, 9, 9, 9, 9, 11, 13, //35984
12, 9, 6, 0, -5, -7, -7, -4, 2, 6, 5, 3, 2, 0, -1, -1, //36000
-2, -3, -7, -11, -11, -8, -5, -2, 0, 1, -1, -3, -3, -4, -5, -5, //36016
-4, -4, -3, -3, -3, 2, 5, 5, 4, 1, -1, -4, -8, -8, -6, -6, //36032
-9, -10, -11, -8, -4, -2, 5, 5, 3, -1, -4, -6, -7, -7, -8, -8, //36048
-8, -12, -13, -11, -10, -8, -8, -11, -15, -21, -24, -22, -19, -12, -9, -11, //36064
-14, -17, -21, -22, -23, -24, -25, -27, -30, -31, -33, -34, -33, -31, -31, -31, //36080
-33, -36, -39, -38, -37, -35, -34, -36, -40, -42, -41, -40, -41, -42, -43, -43, //36096
-40, -37, -33, -27, -23, -23, -23, -24, -28, -31, -34, -38, -39, -37, -38, -36, //36112
-34, -35, -33, -29, -26, -23, -23, -26, -27, -27, -30, -30, -28, -28, -27, -25, //36128
-25, -19, -17, -13, -9, -7, -7, -9, -11, -12, -12, -13, -13, -15, -16, -13, //36144
-13, -15, -14, -15, -16, -17, -16, -8, -3, 4, 10, 14, 19, 21, 20, 19, //36160
17, 15, 13, 10, 9, 8, 6, 6, 11, 15, 19, 25, 29, 31, 31, 30, //36176
31, 31, 31, 29, 23, 18, 17, 15, 14, 18, 21, 22, 21, 20, 20, 19, //36192
20, 22, 23, 21, 19, 17, 16, 16, 16, 14, 11, 12, 15, 18, 19, 22, //36208
26, 25, 24, 23, 23, 21, 20, 19, 16, 13, 11, 12, 13, 15, 17, 20, //36224
23, 23, 23, 23, 22, 22, 21, 20, 19, 18, 15, 11, 9, 12, 15, 19, //36240
22, 24, 26, 29, 30, 31, 33, 31, 29, 24, 19, 15, 13, 12, 11, 7, //36256
3, 0, 0, 1, 4, 7, 8, 9, 8, 8, 8, 8, 7, 5, 4, 3, //36272
2, -2, -4, -4, -4, -2, 0, 1, 2, 1, 1, 1, 2, 3, 2, 0, //36288
-2, -6, -7, -7, -8, -9, -12, -13, -14, -15, -16, -14, -12, -10, -7, -5, //36304
1, 1, 1, 1, -1, -4, -7, -10, -14, -16, -16, -14, -11, -10, -9, -7, //36320
-6, -2, 1, 3, 4, 4, 4, 2, 0, -2, -5, -7, -8, -8, -8, -7, //36336
-5, -3, 1, 3, 4, 4, 4, 1, -1, -3, -3, -3, -3, -8, -12, -14, //36352
-14, -12, -10, -7, -4, -2, -2, -2, -5, -8, -10, -13, -17, -21, -28, -31, //36368
-31, -29, -29, -27, -24, -24, -22, -20, -20, -18, -20, -22, -23, -24, -25, -22, //36384
-20, -17, -13, -10, -8, -7, -8, -9, -10, -12, -14, -14, -15, -15, -13, -10, //36400
-8, -7, -5, -6, -6, -6, -8, -6, -6, -7, -7, -6, -5, -5, -5, -6, //36416
-7, -10, -12, -13, -12, -12, -10, -7, -4, -1, -2, -2, -3, -2, -1, -1, //36432
-1, -1, -3, -3, -4, -4, -2, 0, 1, 2, 3, 2, 2, 2, 2, 3, //36448
4, 5, 7, 7, 7, 8, 8, 8, 9, 8, 8, 8, 9, 9, 8, 9, //36464
10, 11, 11, 12, 15, 15, 16, 16, 13, 10, 9, 9, 10, 10, 8, 6, //36480
5, 4, 5, 6, 7, 8, 7, 7, 8, 8, 6, 7, 6, 6, 7, 9, //36496
12, 12, 13, 14, 14, 13, 13, 11, 10, 9, 9, 11, 13, 13, 13, 12, //36512
11, 12, 13, 14, 14, 13, 13, 13, 13, 12, 9, 6, 2, 1, 0, -1, //36528
-1, 1, 4, 6, 8, 8, 8, 8, 7, 7, 6, 4, 4, 2, 1, 1, //36544
2, 3, 4, 6, 5, 3, 0, -1, -2, -2, -1, -1, -2, -3, -4, -4, //36560
-3, -2, 0, 1, 1, 1, 1, 2, 3, 5, 4, 5, 5, 3, 4, 2, //36576
2, 2, 0, 0, 2, 1, 2, 4, 5, 6, 6, 5, 4, 2, 2, 2, //36592
2, 1, 1, 1, 2, 2, 2, 4, 5, 6, 7, 5, 5, 4, 3, 3, //36608
3, 1, 2, 4, 5, 6, 6, 8, 9, 10, 10, 9, 7, 4, 2, 1, //36624
-2, -2, -3, -5, -6, -7, -6, -6, -5, -5, -5, -2, -2, -2, -1, 0, //36640
1, 0, -2, -6, -9, -11, -10, -10, -10, -8, -7, -6, -6, -6, -4, -4, //36656
-5, -6, -7, -9, -11, -11, -10, -9, -9, -9, -8, -8, -6, -4, -5, -7, //36672
-8, -9, -10, -10, -8, -4, -2, -1, -1, -4, -6, -7, -7, -6, -6, -7, //36688
-7, -6, -5, -5, -5, -5, -5, -5, -4, -4, -7, -9, -9, -8, -7, -7, //36704
-8, -9, -8, -7, -4, -3, -3, -2, -3, -3, -3, -4, -5, -4, -4, -3, //36720
-3, -3, -2, -1, -1, -1, -2, -2, -1, -2, -3, -4, -4, -2, -1, -1, //36736
-2, -5, -7, -7, -7, -6, -7, -8, -10, -10, -9, -8, -7, -6, -5, -5, //36752
-7, -9, -9, -10, -10, -11, -11, -11, -11, -11, -10, -11, -12, -14, -15, -15, //36768
-15, -13, -13, -12, -10, -8, -9, -10, -10, -11, -12, -13, -14, -13, -12, -11, //36784
-5, -2, 1, 2, 2, 2, 1, 1, 0, -2, -2, -2, -2, -2, -2, -1, //36800
-1, 0, 1, -1, -2, -2, -3, -5, -5, -5, -6, -7, -7, -5, -4, -4, //36816
-4, -4, -4, -4, -5, -5, -3, -1, -1, 0, 1, 2, 3, 4, 6, 6, //36832
5, 4, 3, 2, 4, 4, 6, 10, 13, 16, 17, 18, 18, 16, 16, 13, //36848
11, 10, 10, 8, 8, 10, 12, 16, 19, 19, 18, 18, 17, 17, 17, 15, //36864
10, 9, 9, 9, 11, 14, 14, 14, 14, 14, 14, 15, 17, 19, 20, 20, //36880
20, 17, 17, 19, 21, 21, 19, 18, 16, 15, 15, 16, 17, 18, 18, 17, //36896
17, 18, 20, 21, 23, 23, 21, 18, 17, 19, 21, 22, 25, 24, 22, 19, //36912
16, 16, 19, 20, 20, 19, 16, 14, 15, 17, 19, 19, 17, 14, 9, 7, //36928
5, 4, 5, 8, 8, 6, 5, 2, 0, 5, 7, 9, 9, 5, 1, 0, //36944
0, 1, 4, 4, 2, 0, 1, 2, 3, 5, 8, 8, 6, 5, 4, 2, //36960
4, 5, 7, 6, 4, 0, -4, -6, -7, -6, -4, -8, -10, -14, -17, -15, //36976
-15, -8, -7, -10, -10, -12, -14, -12, -14, -14, -13, -14, -11, -13, -14, -13, //36992
-13, -13, -11, -10, -11, -14, -16, -18, -16, -12, -11, -10, -11, -13, -14, -14, //37008
-13, -11, -10, -9, -12, -14, -16, -18, -16, -17, -18, -18, -18, -16, -13, -10, //37024
-8, -7, -3, -2, -1, -3, -5, -4, -4, -1, 0, 0, -1, -5, -8, -4, //37040
-5, -4, -4, -7, -10, -12, -12, -11, -11, -11, -11, -15, -18, -19, -20, -20, //37056
-21, -22, -23, -25, -28, -28, -29, -28, -23, -19, -18, -18, -20, -21, -22, -24, //37072
-25, -23, -26, -29, -31, -33, -31, -28, -26, -24, -22, -22, -24, -28, -29, -29, //37088
-29, -28, -27, -27, -27, -27, -28, -25, -21, -20, -19, -19, -19, -21, -21, -20, //37104
-22, -24, -23, -21, -22, -23, -25, -26, -25, -23, -23, -23, -24, -26, -24, -24, //37120
-23, -21, -22, -23, -23, -21, -19, -18, -16, -14, -12, -10, -7, -6, -5, -1, //37136
1, 3, 6, 8, 8, 2, 1, 2, 4, 8, 12, 12, 10, 8, 10, 13, //37152
14, 17, 17, 15, 16, 17, 15, 12, 13, 14, 14, 18, 18, 14, 11, 10, //37168
12, 17, 19, 19, 17, 17, 20, 25, 30, 32, 32, 31, 28, 27, 27, 28, //37184
29, 29, 31, 31, 31, 30, 29, 33, 38, 42, 43, 41, 40, 36, 35, 37, //37200
38, 38, 37, 33, 30, 27, 29, 33, 39, 42, 43, 42, 39, 37, 36, 37, //37216
38, 36, 32, 26, 21, 21, 22, 26, 32, 33, 33, 30, 26, 24, 23, 24, //37232
24, 24, 23, 20, 18, 19, 23, 28, 32, 33, 28, 25, 22, 20, 22, 22, //37248
22, 21, 19, 15, 12, 13, 15, 17, 20, 20, 16, 11, 10, 11, 13, 16, //37264
17, 13, 13, 12, 12, 13, 13, 12, 10, 7, 4, 0, 1, 5, 9, 15, //37280
20, 19, 14, 12, 11, 12, 15, 15, 10, 6, 2, -1, -2, 2, 6, 11, //37296
15, 15, 13, 10, 9, 10, 10, 9, 7, 3, 0, -4, -6, -4, 0, 3, //37312
5, 5, 3, 0, -2, -3, -3, -3, -4, -6, -9, -10, -11, -10, -8, -8, //37328
-9, -11, -12, -13, -15, -17, -18, -18, -19, -22, -22, -23, -22, -21, -19, -16, //37344
-14, -15, -18, -20, -21, -23, -24, -26, -28, -33, -37, -38, -39, -39, -38, -38, //37360
-37, -36, -37, -37, -37, -37, -38, -38, -36, -36, -37, -38, -42, -43, -44, -45, //37376
-46, -47, -51, -53, -54, -53, -51, -50, -49, -48, -46, -45, -44, -45, -47, -48, //37392
-48, -46, -45, -45, -46, -44, -41, -39, -38, -36, -35, -35, -34, -33, -33, -33, //37408
-35, -36, -36, -35, -32, -30, -26, -24, -21, -19, -18, -19, -20, -20, -20, -22, //37424
-23, -23, -24, -23, -19, -11, -6, -1, 3, 5, 5, 3, 1, -1, -2, -3, //37440
-2, -1, 0, 2, 6, 10, 17, 19, 18, 16, 14, 11, 8, 9, 11, 14, //37456
15, 16, 17, 18, 20, 23, 23, 20, 17, 13, 10, 9, 11, 14, 18, 22, //37472
23, 23, 21, 20, 21, 23, 26, 26, 25, 25, 25, 24, 26, 32, 35, 35, //37488
34, 31, 28, 24, 25, 28, 30, 31, 31, 32, 32, 32, 33, 33, 30, 29, //37504
27, 23, 20, 18, 18, 20, 23, 25, 25, 25, 24, 25, 25, 24, 24, 19, //37520
16, 16, 17, 20, 24, 26, 27, 26, 24, 21, 19, 20, 22, 22, 21, 19, //37536
14, 11, 9, 9, 12, 15, 18, 18, 16, 14, 14, 12, 12, 11, 9, 5, //37552
2, -3, -3, -2, 3, 7, 10, 13, 14, 13, 12, 10, 8, 5, 2, -1, //37568
-4, -6, -5, -2, 2, 6, 7, 7, 5, 4, 4, 4, 4, 4, 1, 1, //37584
0, -2, -2, 0, 1, 2, 1, 0, -2, -4, -1, 3, 5, 8, 9, 7, //37600
5, 3, 2, 0, -2, -4, -7, -9, -10, -12, -11, -9, -6, -3, -3, -4, //37616
-4, -6, -9, -10, -11, -14, -16, -17, -17, -17, -16, -12, -12, -12, -10, -8, //37632
-7, -6, -4, -3, -4, -4, -6, -8, -10, -12, -15, -16, -19, -20, -21, -21, //37648
-21, -19, -18, -19, -20, -20, -20, -21, -22, -22, -24, -27, -29, -33, -34, -34, //37664
-32, -29, -25, -22, -20, -17, -15, -15, -15, -15, -15, -17, -20, -21, -21, -20, //37680
-19, -18, -17, -12, -8, -7, -7, -6, -7, -7, -9, -12, -14, -15, -16, -17, //37696
-17, -16, -16, -13, -9, -6, -1, 0, -1, 0, -1, -1, -2, -3, -3, -1, //37712
-1, 0, 1, 2, 4, 7, 8, 9, 9, 5, 3, 2, -1, -4, -5, -4, //37728
-3, -2, 0, 4, 6, 5, 4, 2, 0, -1, -2, -2, -1, -1, -1, -1, //37744
0, 2, 4, 8, 10, 11, 13, 10, 9, 9, 8, 7, 7, 6, 4, 4, //37760
5, 5, 8, 11, 13, 14, 13, 11, 8, 4, 3, 3, 1, -1, -4, -4, //37776
-4, -3, 1, 5, 9, 10, 11, 11, 11, 10, 11, 12, 13, 13, 12, 9, //37792
8, 8, 7, 7, 6, 6, 6, 6, 6, 7, 7, 8, 10, 10, 10, 10, //37808
8, 8, 7, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 6, 5, //37824
4, 4, 4, 4, 4, 3, 3, 5, 6, 6, 6, 7, 6, 4, 3, 3, //37840
4, 4, 8, 10, 9, 9, 9, 8, 6, 5, 4, 3, 3, 2, 3, 5, //37856
9, 12, 15, 18, 19, 18, 18, 18, 17, 15, 14, 11, 8, 6, 4, 5, //37872
7, 9, 12, 13, 13, 14, 14, 14, 15, 16, 16, 15, 12, 10, 9, 7, //37888
7, 8, 9, 8, 7, 8, 10, 11, 12, 12, 12, 14, 14, 11, 9, 9, //37904
5, 3, 1, 1, 0, 1, 4, 4, 6, 6, 4, 4, 3, 4, 7, 8, //37920
9, 7, 6, 6, 5, 4, 2, 0, 0, 0, 0, 0, -1, 1, 1, 1, //37936
4, 4, 4, 3, 3, 3, 2, 3, 1, -1, -3, -4, -4, -6, -4, -2, //37952
0, 2, 4, 5, 3, 1, 0, -2, -4, -5, -6, -7, -8, -10, -9, -7, //37968
-6, -7, -8, -8, -7, -7, -6, -5, -3, 0, -1, -3, -5, -5, -5, -7, //37984
-8, -10, -11, -12, -14, -13, -13, -14, -13, -11, -12, -13, -12, -13, -15, -16, //38000
-17, -18, -17, -15, -15, -14, -10, -11, -14, -14, -11, -11, -12, -13, -13, -13, //38016
-14, -17, -17, -18, -19, -19, -18, -17, -17, -19, -20, -18, -15, -14, -14, -15, //38032
-15, -16, -19, -20, -20, -20, -20, -20, -18, -18, -18, -16, -15, -12, -10, -10, //38048
-11, -12, -12, -13, -12, -9, -8, -6, -6, -4, -3, -4, -4, -3, -5, -6, //38064
-6, -8, -8, -8, -9, -11, -11, -8, -6, -6, -5, -3, 0, 1, 3, 1, //38080
0, 0, 1, 3, 5, 6, 6, 7, 7, 7, 10, 11, 11, 12, 11, 5, //38096
1, 4, 6, 8, 8, 8, 9, 7, 7, 9, 9, 8, 8, 9, 10, 10, //38112
7, 5, 7, 10, 11, 8, 7, 12, 14, 16, 17, 18, 18, 19, 19, 20, //38128
20, 20, 15, 11, 12, 13, 10, 10, 13, 11, 10, 11, 12, 13, 14, 16, //38144
16, 16, 14, 10, 8, 7, 9, 12, 11, 9, 8, 5, 6, 9, 9, 7, //38160
3, 1, 3, 2, 4, 6, 6, 5, 4, 4, 1, 1, 3, 4, 5, 3, //38176
-1, -2, -4, -3, 0, 3, 0, -1, -2, -3, -4, -5, -4, -3, -1, 1, //38192
-2, -4, -3, -1, 3, 5, 3, 4, 4, 1, -1, -2, 0, 4, 3, 3, //38208
3, -1, -2, -5, -8, -7, -7, -10, -10, -11, -10, -8, -7, -5, -3, -3, //38224
-3, -3, -2, -1, -1, -1, 2, 6, 1, 1, 1, -1, -3, -4, -1, 2, //38240
1, 1, 1, 1, 3, 1, -3, -4, -6, -10, -14, -15, -12, -10, -14, -16, //38256
-18, -21, -23, -22, -17, -14, -15, -20, -22, -21, -22, -20, -17, -17, -16, -19, //38272
-19, -21, -22, -21, -21, -20, -18, -21, -24, -24, -24, -22, -21, -20, -18, -20, //38288
-24, -25, -25, -26, -28, -28, -27, -28, -29, -30, -30, -30, -31, -32, -30, -25, //38304
-25, -27, -25, -24, -23, -21, -21, -20, -22, -23, -23, -23, -24, -26, -25, -23, //38320
-21, -20, -24, -22, -19, -21, -21, -20, -14, -11, -17, -20, -16, -14, -11, -12, //38336
-10, -4, -4, -6, -5, -6, -3, 1, 1, 4, 4, 5, 8, 9, 12, 13, //38352
14, 18, 20, 17, 10, 10, 12, 12, 12, 13, 16, 16, 13, 11, 15, 19, //38368
18, 17, 14, 15, 16, 14, 17, 20, 22, 26, 30, 29, 29, 28, 26, 27, //38384
30, 29, 28, 29, 31, 32, 33, 36, 38, 40, 40, 37, 32, 32, 32, 32, //38400
32, 35, 36, 36, 36, 36, 35, 35, 36, 35, 31, 28, 26, 21, 20, 23, //38416
27, 30, 32, 35, 37, 38, 43, 45, 41, 40, 40, 38, 35, 33, 34, 34, //38432
30, 25, 21, 21, 23, 24, 23, 22, 24, 23, 23, 23, 20, 19, 21, 19, //38448
17, 16, 14, 11, 11, 12, 11, 11, 14, 16, 16, 16, 16, 19, 22, 20, //38464
14, 9, 8, 8, 7, 7, 7, 7, 6, 3, -1, 0, 1, 2, 4, 5, //38480
5, 8, 9, 11, 14, 15, 14, 11, 6, -1, -8, -11, -12, -14, -14, -10, //38496
-7, -3, 1, 3, 6, 8, 8, 8, 6, 4, 4, 2, -1, -2, -3, -2, //38512
0, -1, -4, -7, -11, -11, -10, -14, -16, -15, -15, -15, -14, -10, -4, -3, //38528
-3, -4, -6, -4, -7, -7, -7, -7, -6, -10, -16, -19, -21, -24, -25, -27, //38544
-28, -29, -31, -33, -33, -32, -27, -23, -21, -22, -23, -22, -23, -26, -30, -31, //38560
-33, -37, -43, -49, -50, -46, -47, -49, -49, -48, -48, -51, -52, -48, -46, -45, //38576
-44, -45, -43, -42, -45, -46, -43, -43, -45, -46, -46, -47, -52, -54, -53, -54, //38592
-55, -56, -54, -50, -48, -47, -47, -44, -41, -38, -37, -34, -29, -23, -23, -23, //38608
-19, -17, -18, -19, -19, -21, -23, -24, -24, -26, -26, -22, -20, -18, -12, -11, //38624
-10, -7, -5, -3, -1, 2, 5, 7, 9, 8, 6, 4, 3, 3, 4, 9, //38640
9, 8, 9, 12, 14, 19, 23, 25, 25, 24, 20, 16, 12, 10, 10, 13, //38656
17, 18, 21, 23, 24, 26, 28, 28, 26, 23, 20, 16, 15, 15, 16, 18, //38672
21, 24, 26, 26, 26, 26, 27, 29, 29, 30, 29, 26, 22, 19, 14, 11, //38688
11, 9, 9, 9, 11, 12, 15, 18, 18, 21, 22, 22, 21, 19, 16, 11, //38704
8, 8, 7, 7, 10, 12, 15, 16, 19, 20, 22, 24, 24, 22, 20, 19, //38720
18, 18, 18, 19, 19, 17, 15, 13, 11, 8, 6, 7, 7, 7, 10, 14, //38736
18, 20, 19, 17, 15, 12, 10, 8, 4, 1, -3, -3, -2, -1, 1, 4, //38752
11, 15, 17, 18, 19, 18, 16, 15, 11, 9, 8, 3, 1, 1, 2, 6, //38768
9, 10, 12, 13, 13, 13, 11, 10, 9, 8, 9, 9, 8, 7, 7, 8, //38784
9, 9, 12, 11, 10, 11, 12, 12, 13, 14, 15, 16, 16, 13, 10, 5, //38800
5, 6, 5, 4, 4, 4, 3, 3, 3, 4, 3, 3, 2, 0, 0, -3, //38816
-3, -1, 0, 0, 2, 1, 2, 2, 1, 3, 4, 5, 4, 1, 0, 0, //38832
-2, -3, -4, -5, -6, -10, -13, -15, -17, -19, -18, -15, -12, -11, -10, -10, //38848
-7, -8, -11, -14, -16, -21, -25, -25, -25, -26, -27, -26, -25, -24, -22, -22, //38864
-20, -16, -17, -19, -20, -19, -15, -12, -10, -7, -7, -8, -10, -11, -11, -11, //38880
-11, -11, -12, -14, -17, -18, -17, -17, -15, -13, -11, -8, -7, -8, -9, -10, //38896
-11, -14, -16, -18, -19, -18, -17, -18, -17, -17, -17, -16, -15, -13, -11, -10, //38912
-8, -7, -7, -8, -9, -10, -12, -14, -16, -16, -15, -14, -13, -11, -8, -3, //38928
-1, -1, -1, 0, 0, -2, -3, -4, -5, -7, -7, -6, -4, -3, -3, 0, //38944
4, 6, 8, 9, 12, 15, 15, 13, 12, 10, 6, 3, 2, 0, -1, -1, //38960
2, 6, 9, 10, 11, 14, 16, 20, 23, 24, 24, 21, 13, 10, 9, 11, //38976
11, 11, 14, 16, 18, 20, 20, 21, 21, 21, 21, 19, 19, 16, 12, 11, //38992
11, 10, 10, 9, 7, 7, 8, 9, 10, 13, 14, 13, 12, 9, 5, 2, //39008
0, -3, -6, -6, -6, -5, -3, 0, 1, 1, 4, 6, 8, 8, 8, 8, //39024
5, 4, 4, 3, 2, 1, 0, 1, -1, -3, -2, -1, 1, 4, 4, 5, //39040
6, 6, 8, 7, 7, 6, 5, 5, 3, 3, 5, 5, 7, 7, 7, 8, //39056
9, 10, 12, 14, 14, 14, 14, 13, 13, 13, 12, 10, 11, 11, 11, 10, //39072
9, 10, 10, 11, 11, 11, 11, 11, 10, 9, 9, 8, 7, 7, 4, 1, //39088
0, 0, 0, 0, 0, -1, -2, -2, -2, 1, 2, 2, 2, 3, 2, 1, //39104
0, -1, -3, -5, -7, -9, -9, -10, -12, -10, -7, -5, -4, -4, -5, -7, //39120
-9, -9, -10, -10, -9, -9, -8, -8, -9, -10, -12, -13, -14, -13, -12, -12, //39136
-11, -11, -11, -11, -12, -12, -11, -12, -12, -13, -16, -18, -22, -25, -25, -25, //39152
-26, -22, -20, -19, -17, -17, -15, -12, -11, -10, -11, -12, -12, -15, -13, -10, //39168
-8, -5, -4, -5, -7, -8, -9, -10, -12, -14, -17, -19, -20, -20, -14, -13, //39184
-11, -8, -8, -8, -7, -8, -8, -9, -12, -15, -14, -15, -17, -17, -16, -17, //39200
-15, -12, -12, -13, -14, -15, -14, -11, -9, -7, -5, -4, -3, -2, -2, -4, //39216
-4, -1, 0, 1, 1, -1, -1, -2, -2, -1, -1, -2, -1, 1, 2, 2, //39232
5, 5, 5, 6, 4, 3, 1, 0, 2, 1, -1, 0, 0, 2, 1, 1, //39248
4, 5, 8, 10, 11, 11, 9, 6, 5, 3, 4, 6, 5, 5, 6, 6, //39264
7, 7, 8, 11, 11, 8, 6, 6, 5, 8, 8, 8, 9, 10, 11, 13, //39280
13, 11, 11, 9, 6, 4, 5, 7, 7, 11, 10, 8, 7, 6, 7, 7, //39296
6, 6, 2, 0, -3, -4, -1, 0, 0, -1, -2, -3, -4, -2, -2, -5, //39312
-6, -9, -7, -5, -5, 4, 3, 6, 8, 2, 2, 1, 2, 6, 5, 5, //39328
1, -3, -4, -6, -3, -3, 0, 1, -5, -6, -10, -12, -10, -14, -14, -14, //39344
-18, -20, -25, -23, -18, -16, -15, -18, -19, -18, -15, -12, -12, -11, -14, -15, //39360
-13, -14, -11, -5, -7, -2, -2, -5, -1, -4, -1, 5, 4, 2, 0, -2, //39376
-4, -4, -1, -2, -2, -1, -4, -5, -3, -3, 2, 4, 3, 3, -1, -6, //39392
-7, -8, -6, -3, -3, -4, -5, -7, -7, -3, -4, -6, -7, -9, -10, -10, //39408
-13, -12, -11, -9, -8, -14, -15, -18, -19, -19, -22, -24, -26, -28, -28, -28, //39424
-27, -23, -22, -21, -19, -20, -20, -19, -19, -18, -18, -21, -21, -24, -24, -19, //39440
-17, -17, -16, -18, -18, -19, -20, -20, -20, -21, -23, -25, -27, -29, -28, -24, //39456
-23, -24, -21, -17, -19, -21, -21, -21, -19, -17, -16, -16, -13, -12, -10, -8, //39472
-7, -6, -6, -6, -6, -5, -3, -1, 0, 4, 4, 4, 6, 7, 9, 11, //39488
10, 10, 10, 8, 5, 7, 9, 9, 9, 10, 7, 8, 13, 15, 15, 22, //39504
23, 20, 22, 21, 20, 24, 23, 22, 22, 20, 17, 17, 22, 28, 32, 33, //39520
35, 38, 40, 43, 43, 40, 36, 31, 29, 29, 30, 34, 40, 43, 44, 44, //39536
44, 42, 40, 39, 39, 38, 35, 30, 26, 26, 28, 31, 35, 43, 46, 50, //39552
53, 54, 53, 48, 42, 39, 34, 29, 25, 22, 20, 21, 23, 24, 27, 29, //39568
28, 29, 29, 26, 22, 20, 17, 16, 16, 18, 21, 22, 24, 24, 21, 19, //39584
18, 15, 15, 19, 21, 21, 18, 14, 13, 16, 20, 25, 28, 29, 25, 19, //39600
10, 4, 0, 0, 0, 2, 4, 5, 10, 12, 10, 12, 12, 12, 10, 6, //39616
2, 1, 3, 5, 6, 7, 9, 5, 3, 3, 6, 7, 7, 5, 2, -1, //39632
-2, -4, -6, -6, -6, -6, -9, -10, -10, -10, -8, -6, -6, -6, -6, -9, //39648
-14, -14, -14, -18, -18, -18, -17, -14, -11, -4, -4, -3, 0, -1, -4, -7, //39664
-10, -12, -13, -13, -15, -16, -16, -15, -12, -8, -9, -12, -17, -23, -29, -32, //39680
-30, -26, -22, -18, -17, -20, -21, -22, -22, -22, -23, -28, -31, -35, -39, -36, //39696
-34, -31, -25, -25, -27, -27, -27, -28, -30, -34, -37, -40, -41, -41, -38, -36, //39712
-37, -35, -39, -44, -45, -47, -48, -45, -45, -47, -48, -47, -44, -43, -41, -39, //39728
-38, -39, -41, -41, -42, -43, -44, -42, -40, -40, -38, -34, -32, -30, -28, -29, //39744
-30, -33, -36, -37, -36, -34, -30, -26, -25, -23, -22, -24, -26, -26, -26, -26, //39760
-25, -24, -25, -24, -20, -17, -13, -8, -2, 1, 3, 3, 2, 1, 1, 5, //39776
4, 5, 9, 9, 9, 9, 9, 11, 13, 16, 19, 23, 24, 24, 22, 21, //39792
22, 22, 22, 23, 23, 22, 24, 29, 33, 36, 36, 35, 32, 28, 25, 23, //39808
24, 24, 25, 28, 30, 31, 34, 40, 40, 39, 38, 36, 33, 30, 29, 26, //39824
23, 22, 19, 19, 22, 28, 33, 36, 38, 38, 38, 37, 35, 34, 32, 29, //39840
25, 21, 19, 17, 19, 19, 19, 21, 22, 25, 30, 35, 40, 43, 44, 38, //39856
28, 21, 15, 11, 8, 7, 7, 8, 8, 9, 15, 20, 24, 25, 24, 20, //39872
16, 15, 15, 14, 12, 9, 7, 5, 4, 6, 9, 13, 15, 14, 10, 8, //39888
10, 12, 12, 12, 13, 13, 13, 15, 15, 15, 16, 16, 13, 12, 11, 11, //39904
12, 14, 15, 15, 14, 14, 12, 10, 10, 10, 9, 6, 4, 2, 1, -1, //39920
-4, -5, -5, -4, -2, 0, 0, 0, 4, 7, 9, 12, 14, 15, 14, 12, //39936
12, 10, 6, 3, 2, 3, 6, 9, 12, 12, 13, 13, 11, 9, 9, 6, //39952
3, 2, 0, -3, -4, -4, -2, -2, -4, -4, -7, -8, -6, -5, -5, -2, //39968
0, 2, 2, 0, 0, -2, -1, -1, -3, -5, -8, -11, -11, -11, -9, -7, //39984
-6, -6, -6, -8, -11, -12, -15, -17, -18, -18, -17, -18, -18, -16, -13, -10, //40000
-7, -4, -5, -7, -8, -10, -13, -18, -21, -22, -24, -24, -24, -20, -18, -17, //40016
-13, -12, -13, -15, -17, -18, -19, -20, -22, -26, -30, -33, -33, -33, -32, -31, //40032
-29, -28, -26, -25, -24, -25, -24, -21, -20, -18, -15, -14, -13, -12, -13, -18, //40048
-20, -21, -23, -25, -30, -32, -31, -29, -26, -24, -20, -18, -18, -17, -17, -17, //40064
-15, -16, -15, -15, -15, -14, -16, -17, -17, -18, -19, -17, -16, -16, -14, -10, //40080
-7, -3, -2, -2, -2, -3, -1, 2, 5, 6, 5, 3, 0, -3, -5, -6, //40096
-6, -5, -1, 0, 1, 4, 5, 7, 6, 4, 4, 3, 1, -3, -5, -5, //40112
-5, -5, -3, 1, 2, 3, 5, 5, 5, 6, 6, 5, 2, 1, 0, -2, //40128
-2, -2, 1, 2, 3, 5, 6, 7, 8, 7, 5, 3, 0, 0, -2, -5, //40144
-7, -7, -5, -2, 1, 3, 4, 4, 5, 5, 4, 4, 5, 6, 6, 6, //40160
10, 10, 11, 12, 13, 13, 10, 7, 6, 4, 4, 6, 7, 8, 8, 10, //40176
11, 12, 13, 13, 13, 12, 8, 7, 5, 3, 4, 6, 7, 9, 11, 12, //40192
13, 14, 16, 19, 18, 16, 14, 11, 11, 12, 13, 15, 15, 15, 16, 14, //40208
11, 11, 11, 10, 9, 6, 3, 0, -4, -5, -4, -2, 2, 4, 5, 8, //40224
11, 12, 12, 12, 10, 8, 7, 3, 0, 0, 2, 4, 6, 8, 11, 14, //40240
14, 15, 17, 18, 17, 13, 10, 7, 5, 2, -2, -3, -3, -2, 0, -1, //40256
0, 3, 5, 4, 3, 2, 1, -1, -3, -4, -4, 1, 3, 2, 1, -1, //40272
-1, -3, -5, -5, -5, -5, -5, -7, -6, -5, -4, -4, -6, -5, -5, -7, //40288
-9, -12, -11, -12, -12, -10, -9, -4, -2, 0, 0, -2, -2, -4, -6, -7, //40304
-8, -8, -8, -11, -12, -13, -14, -14, -13, -13, -12, -10, -10, -7, -5, -5, //40320
-4, -6, -10, -9, -6, -5, -5, -7, -7, -8, -8, -6, -4, -2, 0, 0, //40336
0, 0, 1, 2, 3, 8, 9, 10, 12, 12, 13, 12, 10, 10, 10, 8, //40352
6, 6, 5, 1, 0, -2, -6, -2, 1, 1, 2, 1, -1, -3, -1, 4, //40368
6, 3, 6, 7, 6, 3, 4, 5, 4, 3, 0, -2, 0, 2, 2, 1, //40384
1, 1, 3, 1, 0, 2, 2, -1, -6, -8, -8, -9, -9, -7, -7, -7, //40400
-3, 0, -2, -3, -4, -5, -6, -8, -11, -9, -4, -3, -4, 0, 1, 2, //40416
2, -2, 0, 1, -4, -6, -15, -19, -13, -12, -11, -13, -11, -7, -9, -8, //40432
-10, -10, -6, -4, -4, -10, -14, -14, -14, -12, -10, -6, -6, -8, -6, -4, //40448
-4, -6, -7, -4, -1, 0, 0, 2, 5, 6, 7, 5, 6, 8, 7, 6, //40464
10, 13, 14, 11, 5, 0, -2, -1, 0, 1, 1, -1, -5, -6, -8, -10, //40480
-10, -10, -11, -15, -17, -17, -19, -21, -18, -18, -16, -17, -22, -21, -21, -17, //40496
-14, -16, -17, -20, -19, -20, -23, -21, -19, -21, -23, -26, -25, -24, -25, -22, //40512
-18, -17, -18, -22, -28, -32, -34, -31, -30, -32, -32, -26, -24, -26, -27, -25, //40528
-27, -28, -28, -29, -30, -30, -32, -33, -33, -29, -23, -24, -25, -24, -27, -30, //40544
-34, -36, -37, -36, -33, -28, -23, -23, -23, -24, -21, -20, -19, -15, -14, -15, //40560
-15, -15, -15, -14, -13, -11, -9, -4, -5, -9, -11, -8, -4, -2, 0, 1, //40576
2, 3, 10, 15, 19, 21, 17, 11, 9, 8, 5, 1, -1, 5, 9, 10, //40592
11, 15, 21, 27, 32, 33, 28, 22, 17, 11, 10, 14, 19, 20, 19, 23, //40608
24, 26, 32, 37, 38, 38, 38, 34, 29, 28, 33, 35, 36, 40, 44, 46, //40624
47, 48, 49, 50, 51, 49, 43, 43, 47, 47, 43, 39, 38, 38, 39, 38, //40640
36, 38, 41, 41, 37, 34, 39, 38, 35, 33, 32, 36, 41, 48, 54, 54, //40656
56, 52, 44, 40, 37, 39, 38, 32, 32, 31, 31, 33, 34, 42, 44, 45, //40672
41, 31, 22, 16, 6, 2, 3, 5, 7, 11, 14, 17, 24, 29, 30, 28, //40688
28, 27, 20, 8, 0, -5, -5, -8, -8, -2, 0, 2, 4, 7, 10, 8, //40704
7, 2, -3, -6, -9, -8, -8, -8, -7, -4, -3, -5, -6, -5, -5, -8, //40720
-8, -9, -11, -13, -12, -9, -4, 2, 4, 4, 7, 10, 8, 7, 11, 11, //40736
2, -5, -13, -18, -23, -26, -29, -29, -23, -18, -16, -16, -18, -18, -18, -19, //40752
-20, -20, -18, -19, -19, -16, -14, -14, -13, -12, -11, -10, -11, -17, -20, -23, //40768
-25, -24, -23, -22, -22, -23, -23, -24, -26, -28, -29, -30, -31, -33, -32, -34, //40784
-35, -36, -38, -35, -36, -38, -37, -36, -40, -46, -49, -48, -48, -48, -46, -46, //40800
-45, -43, -44, -42, -35, -34, -36, -37, -37, -36, -41, -42, -41, -42, -43, -42, //40816
-40, -37, -39, -42, -44, -44, -42, -44, -49, -51, -53, -52, -50, -51, -48, -44, //40832
-40, -36, -37, -39, -42, -41, -34, -35, -35, -31, -27, -22, -22, -24, -23, -22, //40848
-25, -30, -28, -26, -27, -28, -25, -15, -11, -5, 1, 6, 7, 4, -1, -6, //40864
-7, -8, -7, -4, 0, 6, 9, 12, 19, 24, 29, 30, 28, 22, 9, 7, //40880
8, 13, 21, 32, 38, 40, 38, 37, 35, 30, 27, 24, 22, 16, 12, 8, //40896
9, 15, 18, 21, 28, 31, 31, 30, 28, 27, 30, 32, 31, 29, 30, 31, //40912
30, 27, 25, 27, 28, 28, 29, 29, 27, 28, 28, 26, 29, 31, 29, 26, //40928
24, 21, 19, 19, 19, 17, 19, 19, 15, 11, 11, 15, 16, 15, 14, 13, //40944
10, 6, 6, 7, 8, 10, 10, 9, 11, 13, 16, 15, 14, 16, 15, 14, //40960
11, 7, 5, 4, 4, 3, 3, 5, 4, 4, 6, 8, 10, 10, 8, 6, //40976
0, -5, -9, -12, -11, -5, -2, 1, 5, 7, 7, 8, 9, 10, 10, 7, //40992
4, 0, -1, 0, 2, 4, 5, 5, 3, 0, -2, -1, 1, 1, 0, -1, //41008
-2, 1, 5, 7, 10, 12, 10, 6, 2, 2, 2, 4, 6, 9, 12, 12, //41024
14, 17, 19, 22, 26, 27, 22, 21, 21, 20, 18, 16, 13, 13, 12, 11, //41040
12, 14, 14, 11, 11, 11, 9, 6, 1, -2, -3, -6, -8, -10, -7, -4, //41056
-3, -1, 3, 3, 1, 1, 1, 0, -2, 0, 2, 6, 6, 5, 7, 7, //41072
7, 5, 1, -1, -7, -11, -14, -18, -18, -17, -19, -22, -25, -27, -26, -24, //41088
-23, -23, -23, -21, -22, -23, -25, -26, -26, -27, -30, -30, -29, -27, -27, -25, //41104
-23, -23, -23, -21, -21, -22, -20, -18, -16, -14, -12, -10, -14, -15, -16, -17, //41120
-17, -22, -24, -24, -26, -28, -29, -25, -22, -23, -23, -24, -22, -21, -21, -20, //41136
-18, -17, -12, -10, -8, -4, -1, 2, 3, 4, 4, 3, 4, 2, 3, 5, //41152
4, 4, 5, 1, 2, 3, 3, 5, 8, 9, 8, 6, 5, 2, 0, -1, //41168
-3, -3, -2, -1, 4, 7, 11, 16, 20, 24, 26, 26, 26, 24, 21, 19, //41184
18, 16, 13, 12, 12, 8, 7, 6, 6, 7, 7, 6, 8, 9, 8, 6, //41200
7, 7, 5, 4, 1, -2, -4, -5, -4, -2, 1, 3, 2, 2, 3, 3, //41216
4, 4, 4, 4, 1, 1, 1, -2, -2, -1, 1, 1, -3, -1, 1, 2, //41232
2, 3, 3, 2, 1, 0, -2, -4, -7, -10, -10, -6, -3, 1, 3, 6, //41248
7, 8, 9, 7, 6, 6, 5, 4, 3, 1, 2, 1, 2, 5, 4, 2, //41264
1, 2, 4, 4, 4, 5, 6, 5, 2, 0, -1, 0, 1, 3, 3, 5, //41280
7, 7, 8, 10, 10, 14, 14, 12, 8, 5, 5, 2, 2, 4, 5, 8, //41296
12, 12, 12, 9, 7, 7, 2, 0, -1, -2, -5, -5, -7, -7, -3, 0, //41312
3, 4, 4, 3, 1, 0, -2, -3, -3, -4, -5, -6, -7, -7, -6, -2, //41328
1, 3, 2, 1, 0, -2, -4, -6, -7, -5, -5, -6, -6, -6, -5, -4, //41344
-4, -5, -6, -6, -8, -10, -12, -13, -13, -12, -12, -11, -9, -8, -5, -4, //41360
-5, -5, -2, 1, 1, 1, 2, 3, 5, 4, 1, 1, 0, -2, -6, -12, //41376
-14, -15, -15, -13, -14, -13, -15, -16, -16, -17, -15, -12, -11, -9, -8, -5, //41392
-6, -6, -3, -2, -1, 2, 0, 1, 2, 3, 3, 2, 5, 9, 11, 11, //41408
10, 8, 8, 9, 9, 7, 8, 14, 15, 16, 15, 13, 11, 5, 1, -1, //41424
-1, -2, -3, -4, -3, -1, 3, 6, 10, 13, 14, 13, 10, 10, 7, 5, //41440
5, 5, 4, -4, -3, 0, 0, 2, 5, 6, 7, 8, 9, 9, 9, 9, //41456
9, 9, 5, -1, -4, -3, -3, -4, -6, -5, -4, -4, -3, -3, -2, 2, //41472
3, 4, 6, 6, 5, 5, 3, 0, -3, -3, -1, 1, 5, 4, 2, 4, //41488
3, 3, 4, 6, 9, 7, 3, 1, 0, 1, 1, 2, 0, 2, 7, 7, //41504
5, 2, 3, 5, 6, 8, 8, 6, 4, 1, 1, 1, 0, -1, -4, -4, //41520
-2, -3, -6, -8, -8, -9, -11, -9, -10, -11, -10, -8, -10, -13, -16, -19, //41536
-21, -21, -20, -19, -23, -24, -24, -20, -15, -14, -15, -18, -18, -16, -17, -19, //41552
-20, -20, -22, -27, -29, -29, -30, -32, -33, -32, -29, -29, -26, -27, -26, -21, //41568
-18, -20, -22, -27, -30, -32, -33, -34, -36, -38, -38, -32, -28, -27, -25, -23, //41584
-21, -17, -16, -17, -18, -19, -21, -22, -24, -26, -26, -27, -27, -25, -25, -24, //41600
-24, -23, -20, -17, -12, -9, -10, -12, -14, -15, -15, -14, -11, -12, -10, -4, //41616
-2, -2, -1, 2, 11, 16, 18, 17, 12, 13, 11, 8, 9, 11, 14, 16, //41632
17, 21, 20, 19, 19, 17, 14, 14, 13, 9, 10, 13, 13, 13, 14, 19, //41648
24, 27, 31, 31, 32, 33, 33, 35, 38, 40, 49, 47, 40, 36, 37, 38, //41664
35, 33, 36, 38, 39, 33, 28, 28, 29, 30, 33, 35, 35, 35, 35, 35, //41680
35, 36, 37, 38, 37, 37, 39, 38, 38, 40, 42, 43, 40, 36, 33, 33, //41696
35, 36, 38, 37, 33, 29, 26, 27, 27, 30, 33, 33, 36, 41, 41, 44, //41712
49, 54, 56, 53, 50, 40, 31, 25, 13, 10, 8, 8, 9, 11, 15, 17, //41728
19, 20, 19, 18, 18, 18, 19, 20, 22, 25, 27, 29, 28, 25, 19, 7, //41744
6, 5, -1, -8, -16, -13, -11, -13, -10, -4, 6, 10, 10, 10, 10, 11, //41760
12, 12, 11, 7, 2, -5, -12, -16, -20, -23, -26, -32, -33, -32, -29, -27, //41776
-25, -20, -15, -10, -5, -3, -5, -9, -15, -19, -22, -24, -25, -29, -31, -32, //41792
-33, -34, -38, -41, -40, -38, -40, -44, -45, -45, -43, -42, -43, -40, -40, -40, //41808
-38, -38, -36, -33, -33, -32, -28, -26, -33, -39, -44, -51, -57, -61, -60, -58, //41824
-58, -57, -56, -52, -42, -39, -36, -30, -26, -28, -30, -33, -37, -42, -47, -49, //41840
-48, -43, -41, -41, -39, -37, -37, -40, -43, -41, -42, -43, -45, -49, -51, -48, //41856
-45, -43, -39, -36, -35, -34, -34, -36, -36, -33, -30, -28, -29, -31, -34, -33, //41872
-32, -34, -30, -26, -24, -25, -27, -27, -28, -28, -25, -20, -13, -15, -17, -15, //41888
-13, -12, -6, -3, 1, 0, -2, -4, -3, 0, 3, 7, 11, 11, 10, 7, //41904
2, -1, -1, 4, 7, 9, 9, 10, 11, 12, 14, 19, 22, 24, 21, 17, //41920
15, 14, 13, 14, 17, 20, 20, 21, 22, 23, 25, 28, 32, 35, 34, 32, //41936
31, 28, 27, 23, 22, 25, 25, 28, 29, 27, 31, 32, 32, 34, 34, 35, //41952
34, 32, 27, 20, 16, 16, 18, 21, 22, 23, 26, 30, 32, 34, 37, 38, //41968
36, 32, 29, 24, 21, 22, 24, 23, 25, 29, 33, 36, 37, 39, 43, 44, //41984
43, 40, 35, 31, 27, 25, 23, 23, 22, 26, 28, 28, 26, 28, 32, 34, //42000
36, 36, 33, 28, 23, 18, 18, 19, 20, 23, 23, 25, 25, 24, 25, 25, //42016
27, 27, 25, 25, 20, 17, 14, 11, 9, 7, 8, 8, 7, 8, 8, 8, //42032
7, 6, 8, 11, 13, 13, 10, 5, 1, -4, -10, -11, -10, -6, -4, -3, //42048
3, 7, 13, 17, 20, 22, 21, 18, 11, 6, 3, -5, -7, -9, -12, -14, //42064
-15, -13, -13, -15, -15, -16, -16, -17, -18, -15, -12, -9, -6, -7, -7, -8, //42080
-9, -12, -16, -15, -11, -10, -13, -13, -12, -14, -18, -21, -18, -14, -15, -15, //42096
-11, -6, -3, 0, 1, -2, -7, -12, -18, -24, -26, -26, -27, -29, -28, -28, //42112
-28, -26, -24, -23, -23, -23, -21, -19, -19, -18, -21, -21, -21, -23, -24, -21, //42128
-20, -21, -21, -17, -13, -13, -13, -13, -14, -15, -18, -22, -21, -18, -18, -19, //42144
-19, -19, -21, -20, -17, -16, -14, -15, -17, -18, -20, -22, -22, -21, -20, -20, //42160
-20, -17, -13, -11, -8, -4, 1, 5, 7, 9, 9, 8, 5, 4, 4, 4, //42176
2, -2, -4, -6, -5, -5, -5, -5, -5, -5, -4, -1, 0, 3, 5, 5, //42192
6, 7, 5, 2, 0, -2, -3, -2, -2, -5, -2, 2, 6, 10, 13, 16, //42208
16, 13, 13, 10, 9, 8, 4, 2, 1, 0, 1, 2, 7, 11, 11, 12, //42224
12, 13, 13, 11, 10, 10, 10, 10, 10, 7, 5, 6, 5, 5, 6, 8, //42240
11, 13, 16, 18, 19, 16, 14, 13, 11, 9, 7, 4, -1, -5, -6, -3, //42256
-3, -2, -3, -2, -2, -4, -3, 1, 3, 4, 3, 1, 0, -5, -6, -8, //42272
-8, -6, -6, -8, -8, -4, 0, 3, 8, 11, 10, 6, 3, -1, -1, -3, //42288
-7, -10, -10, -9, -8, -7, -5, -5, -5, -7, -12, -14, -16, -16, -15, -14, //42304
-12, -11, -10, -10, -10, -8, -6, -5, -5, -7, -9, -10, -9, -8, -9, -9, //42320
-8, -6, -3, -3, -2, -1, -1, -1, -2, -4, -5, -3, -4, -7, -8, -9, //42336
-9, -6, -5, -4, -1, -1, -6, -7, -6, -5, -3, -3, -2, -3, 0, 4, //42352
4, 9, 11, 9, 8, 6, 4, 6, 4, 1, 0, -1, -1, -1, -3, -1, //42368
2, 4, 5, 1, 0, 3, 6, 5, 1, 2, 3, 5, 4, 1, 3, 6, //42384
6, 4, 3, 5, 10, 12, 10, 8, 11, 10, 12, 13, 13, 14, 14, 14, //42400
10, 6, 7, 8, 8, 5, 0, -2, 0, 4, 6, 6, 11, 14, 11, 7, //42416
4, 6, 8, 8, 6, 8, 6, 5, 6, 6, 6, 10, 11, 8, 4, 4, //42432
3, 4, 5, 5, 6, 2, -4, -3, -3, 0, 1, -3, -4, -6, -6, -7, //42448
-9, -9, -16, -17, -18, -20, -16, -9, -7, -7, -8, -9, -9, -7, -8, -7, //42464
-6, -7, -10, -15, -15, -11, -9, -10, -8, -6, -4, -4, -8, -12, -4, -1, //42480
-2, -2, -2, -3, -6, -4, 0, 3, 8, 5, 4, 3, 2, 4, 4, 4, //42496
7, 5, 8, 9, 0, 1, 1, 3, 6, 6, 8, 6, 1, 1, 1, 0, //42512
1, 3, 4, 1, -3, -1, -5, -6, -6, -8, -8, -10, -14, -13, -11, -12, //42528
-12, -14, -17, -20, -19, -17, -18, -15, -15, -20, -22, -22, -21, -21, -21, -21, //42544
-23, -25, -25, -26, -26, -25, -23, -17, -14, -13, -16, -18, -17, -14, -12, -13, //42560
-13, -15, -21, -20, -19, -21, -21, -23, -26, -25, -26, -25, -23, -20, -16, -15, //42576
-13, -15, -17, -13, -11, -14, -16, -16, -17, -22, -22, -18, -15, -12, -8, -8, //42592
-7, -3, -3, -2, -2, -4, -4, -6, -7, -9, -13, -10, -12, -15, -11, -8, //42608
-3, 0, 5, 11, 16, 20, 19, 17, 14, 11, 11, 6, 7, 10, 10, 10, //42624
10, 15, 20, 24, 25, 24, 24, 26, 22, 18, 18, 15, 12, 12, 14, 19, //42640
25, 31, 37, 36, 36, 33, 29, 29, 28, 26, 29, 31, 29, 28, 28, 29, //42656
31, 36, 39, 35, 35, 35, 32, 31, 34, 36, 36, 36, 39, 45, 55, 58, //42672
54, 49, 46, 41, 33, 34, 35, 37, 40, 34, 33, 33, 33, 35, 36, 40, //42688
41, 38, 31, 22, 16, 16, 20, 25, 29, 30, 30, 28, 28, 31, 35, 35, //42704
27, 21, 15, 11, 12, 17, 22, 27, 31, 28, 24, 22, 23, 25, 23, 19, //42720
16, 10, 7, 1, -5, -4, -1, 2, 2, 0, 0, 1, -1, -4, -5, -4, //42736
-3, -4, -7, -6, -5, -6, -6, -5, 1, 9, 11, 11, 12, 12, 15, 16, //42752
13, 14, 12, 4, -3, -9, -10, -14, -17, -12, -8, -3, 0, -1, -2, -6, //42768
-7, -8, -11, -11, -11, -13, -12, -10, -8, -8, -11, -12, -13, -13, -12, -10, //42784
-8, -7, -8, -8, -10, -12, -11, -11, -12, -12, -18, -24, -29, -30, -29, -29, //42800
-27, -26, -26, -25, -27, -29, -25, -25, -28, -29, -29, -34, -35, -36, -37, -37, //42816
-38, -39, -40, -39, -35, -33, -31, -31, -35, -38, -40, -42, -44, -43, -42, -45, //42832
-51, -55, -57, -55, -52, -50, -50, -52, -54, -56, -57, -54, -47, -44, -45, -49, //42848
-55, -56, -56, -56, -51, -49, -46, -44, -48, -49, -47, -46, -45, -45, -43, -48, //42864
-53, -56, -59, -59, -54, -51, -48, -47, -46, -41, -36, -31, -29, -30, -32, -41, //42880
-43, -41, -37, -30, -24, -19, -18, -18, -15, -10, -5, 4, 4, 1, -1, -4, //42896
-9, -11, -11, -8, -2, 3, 10, 10, 11, 11, 7, 4, -1, -2, -1, -3, //42912
-7, -5, -3, 0, 4, 9, 15, 24, 30, 31, 28, 27, 24, 21, 22, 22, //42928
20, 21, 21, 20, 23, 29, 36, 42, 47, 48, 46, 42, 37, 31, 30, 30, //42944
29, 27, 25, 20, 21, 25, 31, 36, 39, 37, 35, 33, 34, 38, 42, 44, //42960
42, 37, 33, 29, 27, 29, 31, 34, 36, 37, 38, 33, 32, 36, 37, 40, //42976
39, 38, 35, 30, 26, 26, 25, 25, 27, 27, 25, 21, 21, 22, 26, 28, //42992
25, 24, 24, 25, 26, 27, 30, 31, 30, 27, 24, 22, 26, 26, 23, 23, //43008
22, 16, 13, 10, 12, 16, 16, 16, 14, 13, 13, 12, 15, 25, 28, 29, //43024
26, 21, 17, 17, 16, 15, 16, 17, 20, 23, 25, 26, 27, 28, 30, 29, //43040
29, 26, 26, 25, 23, 23, 24, 23, 21, 20, 20, 20, 20, 18, 16, 12, //43056
14, 16, 17, 19, 23, 23, 19, 14, 10, 10, 7, 6, 5, 3, -1, -8, //43072
-11, -12, -10, -7, -8, -10, -15, -20, -21, -25, -27, -25, -23, -24, -28, -27, //43088
-20, -18, -16, -15, -17, -20, -28, -32, -34, -33, -30, -30, -34, -36, -39, -40, //43104
-37, -31, -28, -24, -25, -28, -34, -36, -34, -34, -32, -33, -36, -38, -40, -40, //43120
-41, -42, -38, -38, -37, -37, -40, -36, -31, -32, -33, -34, -32, -35, -40, -40, //43136
-41, -39, -37, -38, -38, -39, -36, -32, -32, -26, -26, -26, -24, -26, -25, -21, //43152
-23, -24, -25, -26, -27, -30, -29, -26, -25, -22, -17, -16, -16, -16, -16, -17, //43168
-15, -13, -13, -12, -12, -10, -9, -8, -5, -6, -6, 0, 3, 3, 2, 2, //43184
3, 4, 7, 9, 10, 12, 14, 15, 16, 17, 20, 22, 23, 23, 22, 22, //43200
20, 19, 23, 26, 28, 28, 26, 22, 19, 19, 19, 17, 18, 19, 18, 19, //43216
21, 24, 27, 30, 29, 26, 23, 20, 15, 10, 11, 12, 13, 14, 15, 16, //43232
16, 15, 15, 12, 11, 10, 9, 9, 7, 5, 4, 3, 3, 4, 7, 12, //43248
13, 14, 14, 15, 17, 14, 12, 9, 8, 7, 2, 1, 2, 3, 4, 5, //43264
6, 7, 5, 5, 7, 6, 4, 3, 0, -4, -7, -12, -12, -11, -8, -4, //43280
-1, 3, 3, 4, 4, 3, 2, 2, 2, 0, -2, -1, -1, 1, 3, 6, //43296
8, 8, 6, 3, 2, 3, 3, 2, 1, -1, -1, -2, -2, 4, 8, 13, //43312
15, 15, 16, 14, 13, 13, 13, 11, 11, 11, 10, 11, 12, 13, 13, 12, //43328
13, 13, 14, 14, 8, 6, 4, 3, 3, 2, 3, 1, -1, 0, -1, 0, //43344
1, 0, 1, 2, 1, -1, -3, -2, -1, 0, 0, -2, -4, -6, -6, -4, //43360
-4, -3, -4, -5, -5, -5, -3, -1, 0, -1, -4, -2, -2, -1, -1, -1, //43376
-1, -5, -8, -9, -12, -14, -12, -9, -5, -7, -6, -3, -7, -8, -8, -11, //43392
-15, -18, -20, -20, -20, -19, -20, -19, -15, -14, -14, -12, -9, -11, -14, -13, //43408
-12, -14, -14, -14, -15, -15, -15, -15, -15, -14, -16, -18, -16, -17, -17, -14, //43424
-13, -9, -8, -7, -1, -3, -2, -3, -6, -2, -3, -2, -1, -4, -4, -5, //43440
-4, -4, -7, -6, -7, -6, -7, -10, -10, -11, -12, -10, -9, -6, -4, -5, //43456
-5, -6, -8, -9, -11, -9, -6, -8, -8, -9, -10, -14, -15, -8, -4, -1, //43472
1, -2, -3, -4, -9, -11, -14, -20, -18, -21, -28, -30, -28, -25, -21, -21, //43488
-20, -17, -13, -11, -10, -9, -8, -9, -14, -14, -13, -14, -14, -15, -16, -16, //43504
-16, -17, -18, -16, -16, -17, -19, -23, -26, -24, -25, -25, -25, -26, -28, -31, //43520
-32, -31, -31, -31, -29, -32, -32, -30, -31, -28, -29, -31, -29, -29, -33, -35, //43536
-34, -35, -38, -40, -38, -37, -34, -29, -25, -21, -22, -19, -19, -20, -19, -21, //43552
-21, -22, -27, -28, -27, -29, -25, -22, -16, -9, -8, 1, 6, 4, 2, 1, //43568
-2, -7, -9, -6, -2, -3, -2, 2, 6, 12, 15, 19, 25, 24, 27, 26, //43584
22, 20, 19, 20, 21, 24, 30, 37, 41, 43, 43, 40, 39, 36, 36, 39, //43600
42, 43, 40, 31, 31, 32, 30, 29, 29, 27, 27, 24, 26, 31, 41, 48, //43616
54, 55, 51, 46, 49, 50, 52, 56, 54, 47, 36, 30, 34, 39, 43, 54, //43632
59, 60, 58, 55, 53, 54, 54, 56, 52, 46, 44, 36, 32, 28, 28, 34, //43648
36, 38, 40, 43, 48, 49, 48, 50, 50, 47, 43, 37, 31, 27, 29, 30, //43664
32, 35, 37, 38, 40, 42, 43, 46, 46, 41, 40, 40, 35, 32, 31, 35, //43680
33, 29, 31, 27, 23, 22, 15, 11, 13, 11, 6, 0, -1, 5, 8, 14, //43696
21, 26, 29, 29, 31, 34, 34, 33, 32, 23, 15, 8, 3, -3, -9, -8, //43712
-4, -2, -1, 4, 7, 9, 12, 11, 9, 9, 4, 1, -2, -5, -5, -6, //43728
-7, -8, -8, -3, -2, -3, -2, -4, -5, -5, -7, -8, -9, -11, -13, -13, //43744
-15, -18, -17, -16, -14, -12, -11, -9, -11, -14, -13, -11, -13, -16, -17, -21, //43760
-27, -34, -37, -37, -35, -33, -29, -23, -18, -14, -14, -14, -12, -13, -15, -15, //43776
-15, -18, -26, -31, -32, -31, -32, -30, -21, -18, -18, -21, -27, -33, -42, -43, //43792
-44, -45, -44, -43, -43, -47, -49, -46, -45, -51, -55, -58, -60, -61, -59, -54, //43808
-47, -40, -36, -35, -35, -39, -46, -56, -60, -62, -68, -66, -62, -58, -56, -48, //43824
-43, -38, -35, -37, -42, -49, -50, -51, -53, -52, -48, -45, -42, -38, -35, -31, //43840
-29, -26, -23, -25, -28, -31, -36, -39, -38, -33, -27, -22, -15, -9, -7, -11, //43856
-13, -18, -22, -24, -26, -27, -27, -22, -18, -17, -14, -10, -9, -5, -5, -6, //43872
-6, -8, -8, -3, 1, 3, 10, 18, 18, 18, 17, 13, 10, 11, 10, 9, //43888
7, 5, 6, 6, 9, 14, 19, 25, 26, 22, 22, 21, 19, 17, 17, 12, //43904
6, 3, 3, 4, 13, 17, 20, 22, 22, 21, 15, 15, 17, 21, 25, 25, //43920
21, 20, 21, 21, 22, 25, 27, 29, 32, 32, 28, 28, 28, 28, 29, 31, //43936
32, 32, 31, 28, 28, 28, 25, 24, 19, 14, 8, 6, 11, 15, 22, 27, //43952
27, 29, 31, 31, 30, 31, 31, 18, 12, 9, 9, 10, 12, 17, 21, 22, //43968
21, 19, 20, 18, 15, 15, 15, 14, 10, 13, 15, 15, 16, 18, 17, 16, //43984
14, 12, 13, 17, 19, 18, 17, 17, 15, 14, 14, 13, 14, 14, 13, 14, //44000
14, 16, 18, 18, 19, 19, 17, 14, 14, 12, 13, 13, 9, 5, 5, 6, //44016
6, 8, 11, 12, 11, 9, 11, 12, 11, 9, 10, 7, 2, -4, -10, -13, //44032
-15, -17, -16, -12, -8, -1, 10, 15, 18, 18, 15, 12, 4, -1, -3, -4, //44048
-5, -6, -6, -9, -10, -8, -6, -2, -2, -4, -6, -9, -11, -14, -15, -12, //44064
-8, -7, -8, -8, -9, -11, -14, -18, -22, -25, -29, -32, -32, -30, -27, -24, //44080
-18, -13, -10, -6, -2, 0, 2, 0, -5, -18, -21, -25, -31, -33, -32, -30, //44096
-29, -26, -24, -24, -23, -21, -21, -22, -23, -22, -17, -15, -16, -17, -17, -17, //44112
-18, -19, -19, -17, -13, -10, -9, -8, -9, -9, -9, -8, -10, -11, -10, -9, //44128
-9, -7, -9, -11, -12, -16, -18, -15, -12, -9, -8, -11, -15, -15, -15, -11, //44144
-8, -5, -2, -2, -4, -8, -10, -7, -5, -4, -4, -5, -6, -7, -7, -5, //44160
-2, -1, 0, -1, -1, 1, 2, 4, 8, 10, 13, 12, 8, 5, 1, -1, //44176
0, 3, 4, 6, 8, 9, 9, 10, 11, 12, 11, 10, 8, 5, 6, 5, //44192
6, 9, 11, 12, 13, 13, 13, 15, 16, 13, 11, 10, 8, 8, 8, 7, //44208
7, 6, 7, 10, 11, 14, 17, 18, 18, 16, 10, 7, 7, 6, 6, 3, //44224
-1, -3, -6, -7, -4, 0, 3, 7, 7, 8, 8, 9, 9, 9, 9, 8, //44240
5, 2, -2, -2, -1, 2, 5, 5, 5, 6, 5, 3, 6, 6, 5, 6, //44256
5, 2, 1, -3, -3, 2, 5, 6, 10, 12, 14, 13, 13, 15, 18, 18, //44272
14, 12, 14, 13, 11, 13, 14, 16, 17, 19, 19, 18, 20, 21, 21, 19, //44288
17, 15, 16, 16, 14, 13, 12, 10, 12, 14, 14, 19, 19, 17, 19, 19, //44304
20, 20, 20, 20, 17, 15, 14, 16, 18, 21, 23, 20, 19, 19, 15, 10, //44320
8, 7, 5, 5, 6, 4, 3, 7, 8, 11, 11, 10, 13, 12, 12, 13, //44336
13, 13, 12, 12, 9, 5, 6, 4, 0, 0, -2, -6, -10, -10, -9, -10, //44352
-7, -5, -7, -6, -5, -3, -2, -1, 4, 6, 7, 7, 6, 3, -3, -5, //44368
-8, -9, -9, -12, -16, -19, -18, -13, -10, -10, -9, -9, -9, -11, -13, -14, //44384
-16, -15, -14, -16, -16, -17, -19, -21, -21, -22, -23, -21, -20, -20, -20, -21, //44400
-25, -27, -30, -33, -37, -40, -42, -44, -45, -45, -43, -40, -41, -42, -40, -37, //44416
-34, -32, -34, -34, -33, -34, -32, -34, -36, -32, -31, -32, -32, -33, -32, -31, //44432
-34, -38, -47, -46, -45, -46, -42, -39, -41, -40, -40, -40, -38, -35, -35, -37, //44448
-39, -40, -38, -37, -38, -36, -31, -27, -26, -26, -28, -29, -29, -26, -25, -31, //44464
-36, -39, -42, -43, -40, -38, -39, -40, -40, -42, -41, -38, -36, -33, -32, -33, //44480
-35, -41, -45, -41, -35, -28, -27, -28, -24, -21, -17, -7, -4, -2, -2, -3, //44496
-5, -8, -10, -13, -12, -10, -12, -10, -2, 5, 10, 14, 22, 24, 23, 19, //44512
16, 27, 32, 29, 23, 14, 10, 10, 8, 10, 11, 11, 13, 8, 3, 4, //44528
7, 10, 17, 22, 28, 31, 29, 26, 36, 41, 43, 47, 47, 43, 48, 49, //44544
50, 53, 55, 60, 57, 51, 49, 49, 48, 47, 50, 52, 46, 38, 34, 31, //44560
32, 36, 39, 40, 44, 51, 61, 69, 77, 83, 83, 79, 73, 68, 61, 52, //44576
48, 41, 37, 34, 30, 34, 36, 39, 47, 49, 49, 55, 51, 48, 51, 54, //44592
55, 54, 52, 51, 47, 43, 34, 29, 32, 32, 29, 26, 22, 25, 29, 29, //44608
32, 42, 49, 48, 42, 42, 42, 41, 46, 49, 50, 48, 43, 36, 30, 25, //44624
21, 16, 11, 4, 2, 4, 0, -1, -1, -1, 4, 12, 14, 12, 19, 21, //44640
18, 17, 12, 7, 9, 3, -1, 2, 2, -2, -6, -7, -7, -8, -11, -14, //44656
-14, -15, -15, -14, -11, -11, -13, -15, -14, -16, -21, -19, -18, -16, -15, -21, //44672
-27, -31, -33, -34, -38, -40, -35, -28, -24, -23, -21, -14, -11, -8, -6, -4, //44688
-5, -9, -13, -14, -11, -11, -12, -10, -7, -3, -2, -2, -4, -8, -13, -17, //44704
-21, -27, -29, -29, -32, -35, -35, -33, -29, -26, -22, -16, -16, -18, -23, -29, //44720
-27, -25, -24, -23, -26, -28, -29, -31, -35, -36, -29, -24, -30, -34, -34, -39, //44736
-44, -44, -42, -39, -39, -44, -50, -49, -47, -45, -38, -36, -36, -34, -34, -36, //44752
-36, -34, -30, -26, -22, -23, -26, -32, -38, -42, -39, -35, -32, -31, -30, -29, //44768
-31, -33, -33, -29, -25, -24, -24, -25, -29, -33, -33, -32, -31, -30, -30, -29, //44784
-28, -27, -26, -26, -24, -19, -16, -15, -14, -15, -18, -20, -18, -15, -12, -12, //44800
-9, -7, -5, -3, -2, 0, 5, 10, 14, 13, 5, -3, -7, -13, -14, -13, //44816
-12, -12, -14, -11, -6, -4, -2, 1, 1, 1, 0, 0, 2, 5, 5, 3, //44832
5, 9, 10, 9, 10, 9, 9, 9, 11, 19, 20, 19, 18, 18, 19, 20, //44848
21, 24, 25, 24, 18, 17, 20, 21, 21, 19, 17, 15, 12, 10, 10, 11, //44864
17, 21, 25, 29, 31, 31, 33, 34, 32, 30, 31, 29, 26, 25, 25, 24, //44880
21, 14, 13, 13, 13, 15, 21, 24, 22, 18, 17, 19, 23, 22, 22, 21, //44896
17, 12, 4, 1, 2, 3, 5, 7, 11, 16, 20, 22, 24, 25, 26, 26, //44912
23, 20, 18, 14, 10, 5, 3, 3, 0, -3, -5, -8, -10, -10, -7, -5, //44928
0, 4, 6, 8, 7, 7, 8, 10, 12, 7, 2, 0, -1, -3, -6, -5, //44944
-2, 1, 2, 3, 8, 12, 10, 9, 9, 10, 13, 13, 12, 10, 8, 7, //44960
6, 5, 5, 7, 10, 9, 8, 10, 10, 9, 6, 3, 4, 3, 2, 0, //44976
0, 5, 7, 7, 6, 5, 2, 2, 4, 6, 9, 13, 15, 12, 8, 5, //44992
4, 3, 2, 0, -1, -1, 0, 4, 6, 5, 2, 1, 1, -1, 0, 1, //45008
-1, -5, -8, -9, -8, -7, -6, -5, -4, -2, -1, 0, 4, 7, 7, 7, //45024
4, 1, -1, -2, -3, -3, -1, -1, -2, -4, -7, -8, -9, -13, -16, -17, //45040
-18, -20, -24, -24, -24, -23, -24, -24, -22, -21, -16, -15, -14, -13, -14, -15, //45056
-14, -12, -10, -9, -10, -10, -9, -9, -9, -7, -5, -5, -5, -7, -6, -4, //45072
-4, -3, -3, -2, -2, -2, 1, 5, 4, 1, -1, -1, -3, -2, -2, -2, //45088
-1, -1, 0, 1, 2, 3, 2, 0, -2, -4, -5, -6, -6, -5, -5, -6, //45104
-7, -7, -7, -7, -6, -5, -2, 2, 4, 4, 2, 1, 0, -3, -7, -8, //45120
-10, -8, -5, -3, 0, 0, -1, -1, 0, 0, -1, 2, 7, 7, 8, 8, //45136
10, 14, 17, 19, 19, 18, 20, 21, 21, 18, 17, 21, 20, 16, 16, 19, //45152
21, 18, 15, 13, 8, 7, 10, 11, 13, 17, 19, 18, 16, 16, 16, 17, //45168
19, 16, 11, 6, 4, 4, 4, 8, 12, 13, 12, 10, 9, 12, 13, 13, //45184
13, 9, 3, 2, 1, 1, 5, 10, 11, 11, 12, 13, 15, 17, 16, 14, //45200
11, 9, 6, 3, 3, 5, 9, 12, 12, 11, 9, 9, 13, 16, 17, 15, //45216
13, 9, 9, 11, 12, 14, 14, 11, 8, 4, 1, 1, 3, 6, 8, 10, //45232
14, 18, 23, 23, 23, 22, 20, 17, 13, 12, 15, 15, 19, 22, 18, 17, //45248
17, 16, 19, 22, 27, 27, 22, 25, 22, 18, 18, 17, 14, 8, 9, 12, //45264
5, 2, -1, -4, -3, -6, -7, -6, -5, -1, -3, -8, -8, -9, -7, -7, //45280
-5, -1, -3, -3, -3, -4, -5, -6, -4, -3, -3, -2, -2, -3, -2, -1, //45296
0, 2, 1, 1, -1, -4, -9, -13, -16, -21, -23, -28, -35, -38, -37, -36, //45312
-36, -36, -36, -36, -35, -36, -37, -35, -36, -39, -40, -42, -42, -43, -45, -48, //45328
-50, -48, -46, -42, -37, -34, -29, -28, -31, -33, -35, -35, -38, -40, -43, -48, //45344
-51, -51, -51, -49, -43, -36, -34, -36, -35, -39, -45, -47, -51, -55, -59, -59, //45360
-55, -53, -51, -46, -38, -30, -24, -19, -21, -25, -27, -30, -33, -29, -25, -21, //45376
-21, -24, -22, -22, -20, -15, -12, -9, -6, -7, -10, -12, -11, -10, -12, -10, //45392
-7, -5, -2, 2, 6, 10, 11, 11, 12, 10, 9, 11, 12, 11, 10, 11, //45408
12, 11, 11, 11, 7, 7, 6, 7, 9, 8, 8, 12, 17, 22, 24, 25, //45424
24, 19, 16, 12, 10, 11, 13, 17, 23, 26, 29, 34, 38, 42, 45, 46, //45440
47, 46, 44, 41, 37, 36, 39, 42, 46, 47, 47, 48, 48, 50, 50, 48, //45456
48, 42, 36, 33, 36, 40, 40, 43, 45, 40, 35, 33, 31, 27, 26, 28, //45472
30, 29, 26, 24, 21, 22, 23, 24, 27, 28, 30, 29, 27, 27, 23, 22, //45488
23, 22, 20, 16, 13, 10, 8, 8, 11, 17, 22, 24, 24, 24, 23, 22, //45504
21, 20, 17, 15, 14, 9, 2, -1, 0, 2, 6, 13, 19, 19, 17, 14, //45520
6, 2, 1, 2, 5, 5, 5, 4, 4, 4, 1, 1, 5, 4, 3, 3, //45536
3, 2, 2, 3, 1, -1, 0, -2, -2, -2, -5, -10, -12, -11, -10, -5, //45552
3, 9, 15, 17, 18, 18, 17, 11, 5, 1, -3, -5, -3, -10, -12, -11, //45568
-8, -3, 0, 4, 5, 3, 0, -3, -8, -11, -14, -17, -17, -18, -13, -12, //45584
-12, -11, -12, -11, -12, -13, -12, -10, -8, -7, -11, -14, -17, -20, -21, -20, //45600
-21, -24, -28, -29, -33, -33, -32, -30, -25, -22, -25, -29, -30, -29, -29, -33, //45616
-39, -47, -56, -62, -64, -60, -56, -50, -44, -41, -39, -34, -30, -25, -22, -22, //45632
-26, -33, -39, -43, -43, -43, -38, -34, -32, -31, -28, -24, -14, -8, -3, -2, //45648
-6, -10, -19, -24, -27, -30, -28, -24, -23, -21, -20, -20, -19, -22, -23, -23, //45664
-21, -20, -22, -22, -21, -22, -23, -23, -19, -17, -15, -13, -13, -11, -9, -7, //45680
-6, -5, 0, 5, 7, 9, 10, 10, 7, 3, 3, 2, 4, 7, 9, 15, //45696
20, 22, 21, 21, 21, 19, 21, 22, 23, 22, 19, 17, 13, 13, 16, 16, //45712
16, 16, 13, 8, 5, 5, 6, 8, 9, 9, 10, 11, 11, 11, 13, 12, //45728
9, 11, 12, 11, 12, 11, 7, 6, 8, 10, 14, 17, 22, 24, 24, 23, //45744
20, 19, 21, 20, 19, 19, 17, 15, 12, 12, 14, 17, 20, 20, 19, 16, //45760
11, 9, 7, 0, -3, -5, -6, -9, -9, -6, -4, 1, 4, 6, 10, 13, //45776
16, 16, 15, 12, 6, 3, 1, 1, 2, 5, 6, 9, 12, 14, 18, 26, //45792
26, 27, 27, 24, 21, 14, 12, 8, 6, 6, 4, 4, 5, 6, 7, 7, //45808
9, 10, 12, 14, 15, 16, 17, 16, 14, 14, 14, 10, 10, 9, 7, 8, //45824
10, 13, 16, 19, 21, 22, 22, 17, 11, 8, 6, 3, -5, -8, -8, -9, //45840
-9, -7, 2, 10, 13, 16, 17, 16, 11, 9, 9, 7, 4, 1, -2, -5, //45856
-6, -4, 1, 6, 8, 7, 6, 5, -1, -2, -3, -4, -4, -7, -11, -13, //45872
-14, -13, -13, -13, -12, -10, -9, -8, -7, -3, -3, -5, -7, -7, -7, -13, //45888
-17, -17, -16, -17, -19, -21, -21, -21, -20, -17, -13, -9, -5, -4, -3, -2, //45904
-6, -7, -10, -15, -19, -23, -21, -19, -16, -14, -11, -6, -5, -5, -6, -5, //45920
-5, -10, -15, -18, -21, -24, -24, -25, -26, -25, -23, -21, -19, -18, -15, -12, //45936
-12, -15, -18, -21, -23, -23, -24, -23, -16, -14, -13, -12, -11, -8, -5, -4, //45952
-6, -9, -8, -10, -12, -12, -11, -11, -13, -16, -18, -18, -17, -15, -10, -7, //45968
-6, -6, -7, -8, -8, -9, -8, -9, -11, -8, -8, -8, -6, -3, -2, -5, //45984
-5, -7, -10, -10, -8, -8, -6, -2, 1, 4, 6, 9, 11, 13, 13, 12, //46000
13, 12, 13, 13, 10, 10, 12, 10, 10, 9, 6, 6, 3, 3, 5, 7, //46016
9, 9, 11, 11, 11, 12, 12, 12, 10, 8, 8, 8, 8, 5, 3, 4, //46032
8, 10, 8, 11, 12, 8, 7, 7, 8, 8, 8, 8, 7, 9, 11, 13, //46048
16, 18, 19, 20, 21, 21, 20, 20, 18, 16, 16, 15, 16, 17, 16, 13, //46064
12, 14, 17, 20, 24, 24, 25, 25, 25, 28, 28, 27, 23, 19, 18, 18, //46080
18, 21, 23, 22, 23, 23, 24, 26, 28, 30, 26, 24, 24, 18, 15, 15, //46096
14, 16, 16, 18, 21, 18, 17, 15, 14, 17, 20, 22, 20, 19, 18, 14, //46112
17, 19, 15, 14, 12, 10, 8, 6, 6, 6, 6, 3, -1, 3, 2, 0, //46128
0, 1, 1, -3, -5, -5, -4, -5, -8, -6, -3, 1, 5, 3, -3, -5, //46144
-7, -8, -9, -8, -10, -12, -11, -10, -12, -13, -15, -17, -21, -23, -18, -16, //46160
-16, -14, -14, -15, -11, -14, -17, -19, -20, -18, -20, -22, -23, -21, -18, -17, //46176
-17, -17, -16, -16, -18, -22, -27, -31, -31, -32, -34, -39, -42, -42, -42, -42, //46192
-41, -40, -40, -42, -42, -43, -43, -46, -52, -55, -55, -57, -50, -44, -37, -34, //46208
-32, -22, -24, -27, -31, -38, -40, -49, -56, -59, -61, -60, -59, -59, -55, -51, //46224
-45, -38, -33, -35, -42, -50, -58, -62, -68, -70, -68, -66, -64, -61, -53, -48, //46240
-47, -44, -42, -36, -34, -37, -42, -43, -43, -41, -40, -38, -31, -22, -16, -9, //46256
-9, -8, -3, -2, 1, 6, 9, 10, 4, -3, -12, -17, -16, -19, -19, -14, //46272
-14, -12, -11, -9, 0, 9, 14, 15, 10, 7, 6, 8, 10, 12, 15, 15, //46288
14, 15, 17, 20, 25, 31, 38, 41, 34, 28, 29, 29, 37, 41, 42, 43, //46304
36, 29, 26, 26, 34, 40, 42, 40, 38, 39, 41, 45, 51, 59, 58, 53, //46320
48, 44, 43, 46, 47, 45, 42, 41, 40, 39, 42, 43, 43, 45, 39, 34, //46336
33, 36, 43, 50, 53, 56, 54, 46, 39, 35, 37, 40, 38, 33, 31, 29, //46352
25, 22, 29, 38, 45, 49, 49, 51, 54, 53, 51, 52, 53, 52, 47, 46, //46368
42, 36, 31, 26, 23, 19, 21, 23, 24, 26, 26, 23, 21, 22, 23, 21, //46384
20, 16, 9, 7, 6, 8, 16, 19, 23, 26, 24, 22, 15, 13, 12, 9, //46400
8, 8, 5, 3, 3, 4, 4, 9, 13, 15, 15, 15, 12, 5, 4, 2, //46416
2, 2, 1, 1, -1, -6, -9, -11, -9, -7, -6, -5, -4, -2, 1, 4, //46432
8, 11, 13, 12, 7, 5, 3, -1, -4, -11, -18, -20, -20, -20, -15, -10, //46448
-10, -11, -14, -20, -23, -23, -23, -23, -23, -25, -28, -27, -26, -24, -21, -22, //46464
-28, -29, -30, -30, -29, -24, -18, -12, -9, -10, -14, -23, -30, -33, -35, -35, //46480
-36, -38, -39, -40, -42, -42, -38, -38, -35, -32, -34, -41, -50, -52, -51, -47, //46496
-42, -38, -33, -34, -35, -34, -31, -27, -24, -24, -26, -28, -33, -39, -40, -36, //46512
-31, -29, -28, -26, -29, -34, -35, -37, -42, -45, -47, -44, -39, -36, -36, -36, //46528
-31, -28, -29, -29, -32, -33, -32, -33, -34, -31, -28, -19, -10, -4, -1, -5, //46544
-8, -10, -13, -12, -9, -7, -8, -10, -11, -9, 1, 7, 11, 15, 16, 12, //46560
6, 3, 1, 3, 7, 9, 8, 6, 6, 8, 14, 20, 21, 22, 22, 20, //46576
19, 20, 23, 24, 25, 26, 24, 21, 21, 22, 24, 26, 26, 26, 25, 25, //46592
25, 26, 24, 22, 21, 22, 23, 21, 22, 22, 20, 23, 26, 26, 25, 22, //46608
23, 26, 27, 30, 31, 33, 36, 34, 33, 34, 34, 33, 28, 24, 22, 19, //46624
18, 18, 20, 22, 20, 20, 18, 15, 13, 12, 12, 12, 10, 7, 5, 5, //46640
4, 1, 1, 3, 0, -5, -6, -5, 0, 3, 5, 7, 9, 10, 7, 3, //46656
3, 2, 2, 2, 0, -1, 2, 4, 5, 6, 7, 7, 4, 2, -2, -9, //46672
-11, -13, -16, -15, -15, -13, -8, -4, -4, -4, -5, -8, -11, -9, -6, -3, //46688
0, 0, -6, -7, -8, -9, -11, -10, -6, -5, -5, -3, 0, 2, 3, 3, //46704
2, -1, -3, -6, -6, -2, 0, 0, 1, -2, -6, -9, -11, -11, -12, -13, //46720
-13, -13, -12, -10, -6, -1, 3, 3, 2, 3, 5, 3, 0, -3, -8, -12, //46736
-13, -14, -15, -15, -14, -16, -16, -14, -12, -9, -4, -5, -7, -9, -15, -21, //46752
-29, -30, -33, -34, -30, -27, -23, -18, -14, -11, -9, -7, -8, -11, -13, -16, //46768
-16, -12, -11, -11, -12, -11, -10, -9, -7, -8, -9, -11, -16, -19, -22, -24, //46784
-24, -26, -28, -30, -31, -31, -29, -25, -19, -19, -19, -19, -19, -16, -12, -8, //46800
-7, -9, -11, -14, -11, -9, -8, -6, -5, -2, -3, -7, -8, -9, -7, -4, //46816
-5, -6, -8, -10, -9, -10, -7, -4, -2, 1, 7, 6, 5, 6, 7, 9, //46832
10, 8, 3, -2, -4, -6, -5, 0, 4, 8, 16, 20, 20, 22, 21, 20, //46848
22, 20, 19, 14, 8, 5, 0, 1, 4, 9, 11, 9, 8, 8, 8, 8, //46864
9, 10, 8, 8, 7, 4, 4, 4, 10, 18, 21, 22, 23, 27, 29, 27, //46880
25, 24, 18, 20, 20, 15, 11, 10, 8, 11, 12, 12, 15, 19, 18, 20, //46896
21, 20, 19, 18, 18, 19, 17, 12, 8, 3, 1, 2, 4, 11, 21, 24, //46912
26, 27, 25, 25, 30, 29, 27, 21, 15, 13, 13, 17, 21, 26, 29, 26, //46928
27, 27, 24, 24, 23, 22, 21, 13, 8, 7, 8, 17, 17, 15, 17, 19, //46944
17, 18, 18, 21, 24, 23, 21, 20, 18, 19, 20, 21, 21, 18, 16, 15, //46960
13, 17, 15, 14, 15, 11, 9, 9, 7, 8, 8, 9, 8, 5, 8, 6, //46976
4, 7, 8, 8, 6, 1, -1, -3, -1, 2, 1, 4, 7, 8, 17, 18, //46992
17, 18, 17, 12, 12, 10, 7, 8, 9, 4, 3, -2, -4, 0, -2, -5, //47008
-4, -7, -11, -13, -14, -20, -24, -24, -24, -22, -25, -26, -25, -22, -19, -21, //47024
-23, -17, -16, -14, -12, -17, -22, -26, -27, -32, -34, -33, -36, -33, -31, -36, //47040
-29, -29, -33, -28, -26, -32, -39, -44, -47, -47, -48, -49, -47, -46, -45, -44, //47056
-41, -31, -27, -25, -24, -28, -37, -46, -49, -47, -44, -42, -41, -44, -44, -41, //47072
-38, -35, -34, -37, -43, -55, -62, -65, -67, -66, -67, -74, -77, -72, -64, -56, //47088
-46, -42, -40, -35, -41, -45, -39, -30, -25, -26, -29, -36, -40, -39, -38, -30, //47104
-21, -18, -17, -18, -19, -19, -20, -17, -13, -10, -5, -13, -18, -15, -12, -7, //47120
4, 7, 9, 11, 11, 14, 19, 22, 22, 22, 19, 11, 5, 1, 1, 3, //47136
11, 14, 15, 20, 20, 20, 23, 23, 30, 38, 40, 49, 66, 76, 86, 90, //47152
89, 90, 81, 73, 66, 55, 43, 29, 21, 20, 22, 22, 31, 43, 46, 51, //47168
55, 57, 57, 58, 62, 63, 63, 67, 68, 73, 74, 72, 72, 66, 57, 51, //47184
41, 36, 34, 27, 25, 24, 29, 42, 51, 49, 47, 49, 50, 53, 58, 59, //47200
61, 58, 49, 38, 21, 13, 9, 6, 4, 5, 4, 2, 4, 4, 4, 13, //47216
24, 27, 27, 24, 27, 24, 18, 18, 16, 14, 11, 1, 1, 0, -1, 3, //47232
5, 7, 3, -3, -6, -8, -9, -11, -13, -12, -9, -9, -12, -11, -9, -7, //47248
-4, 1, 11, 18, 19, 15, 10, 0, -8, -15, -22, -26, -25, -23, -23, -22, //47264
-18, -15, -13, -9, -3, 1, 1, 0, -3, -2, -4, -11, -13, -10, -2, -2, //47280
-6, -5, -6, -9, -10, -14, -14, -15, -21, -18, -17, -16, -8, -5, -9, -5, //47296
-4, -4, -5, -11, -20, -27, -27, -26, -24, -23, -25, -23, -23, -25, -23, -17, //47312
-12, -14, -22, -29, -34, -44, -57, -54, -50, -44, -39, -37, -36, -34, -28, -22, //47328
-20, -22, -24, -30, -39, -45, -48, -48, -44, -43, -45, -43, -37, -43, -51, -52, //47344
-48, -44, -42, -44, -48, -51, -56, -63, -58, -51, -48, -46, -43, -40, -44, -46, //47360
-45, -44, -41, -37, -38, -37, -36, -37, -37, -35, -29, -25, -25, -26, -23, -25, //47376
-29, -33, -34, -33, -25, -22, -23, -23, -17, -11, -7, -2, 1, 5, 8, -1, //47392
-7, -9, -12, -13, -10, 0, 5, 6, 7, 9, 19, 26, 27, 27, 26, 23, //47408
15, 11, 9, 8, 11, 12, 13, 16, 18, 22, 28, 33, 36, 40, 47, 50, //47424
44, 34, 29, 24, 23, 24, 27, 39, 41, 37, 36, 41, 47, 49, 51, 52, //47440
51, 51, 44, 40, 42, 43, 45, 48, 45, 43, 44, 45, 45, 46, 45, 42, //47456
39, 35, 32, 38, 40, 38, 33, 27, 22, 19, 18, 18, 24, 30, 25, 23, //47472
26, 33, 36, 33, 29, 24, 17, 12, 6, 3, 5, 4, 3, 4, 7, 15, //47488
22, 26, 29, 34, 36, 29, 27, 23, 18, 13, 8, 3, -2, -5, -6, -10, //47504
-12, -12, -10, -6, -6, -5, 4, 9, 10, 10, 10, 4, 2, 2, -3, -12, //47520
-18, -22, -22, -19, -15, -9, -5, -5, -6, -5, -2, -1, -6, -8, -8, -3, //47536
2, 2, 1, 3, 4, 5, 5, 5, 7, 7, 6, 3, 0, -4, -2, -2, //47552
-5, -5, -4, 0, -1, -4, -3, 0, 2, 2, 1, 2, 5, 7, 7, 8, //47568
10, 10, 8, 5, 4, 2, 0, -4, -8, -9, -8, -5, -1, -1, -2, -4, //47584
-5, -5, -3, -3, -3, -2, -6, -9, -9, -9, -11, -13, -12, -13, -16, -16, //47600
-15, -12, -7, -8, -11, -13, -14, -16, -17, -17, -15, -14, -16, -19, -24, -26, //47616
-26, -26, -27, -29, -31, -35, -38, -39, -40, -41, -39, -39, -40, -37, -35, -33, //47632
-29, -27, -24, -23, -22, -23, -27, -29, -27, -27, -26, -24, -23, -17, -13, -12, //47648
-11, -10, -11, -11, -11, -13, -16, -16, -16, -15, -15, -11, -8, -8, -4, -5, //47664
-8, -10, -10, -10, -12, -13, -11, -9, -7, -4, -3, 0, 4, 4, 4, -1, //47680
0, 3, 4, 7, 8, 7, 9, 8, 8, 11, 16, 21, 23, 23, 23, 21, //47696
23, 24, 20, 20, 21, 22, 23, 24, 27, 31, 31, 29, 24, 23, 24, 26, //47712
25, 24, 25, 24, 25, 25, 23, 27, 28, 27, 27, 25, 24, 23, 22, 24, //47728
26, 26, 23, 19, 14, 15, 15, 12, 6, 3, 0, -3, -4, 2, 10, 14, //47744
19, 18, 18, 21, 18, 17, 13, 9, 4, -8, -11, -13, -16, -15, -15, -15, //47760
-10, -9, -7, -6, -5, -2, -2, -1, -1, -3, -1, -4, -7, -7, -7, -4, //47776
-3, -3, -4, -3, 1, 4, 4, 4, -1, -3, -3, -3, -1, 0, 0, -4, //47792
-8, -4, -5, -5, -2, -3, -3, 0, 2, 5, 4, 6, 12, 13, 16, 17, //47808
15, 18, 17, 17, 16, 13, 14, 14, 15, 17, 17, 17, 19, 21, 22, 24, //47824
25, 22, 19, 15, 9, 5, 2, 2, 3, 4, 6, 6, 5, 5, 4, 4, //47840
3, 2, -3, -12, -12, -15, -16, -11, -7, -6, -6, -8, -11, -11, -10, -13, //47856
-12, -13, -19, -24, -22, -20, -19, -19, -17, -16, -17, -17, -20, -23, -24, -25, //47872
-34, -41, -43, -44, -46, -44, -44, -44, -43, -46, -48, -50, -53, -51, -51, -53, //47888
-55, -61, -63, -62, -59, -51, -42, -38, -35, -36, -36, -33, -27, -29, -34, -38, //47904
-42, -44, -41, -41, -37, -35, -35, -35, -36, -36, -33, -27, -22, -21, -20, -21, //47920
-21, -17, -10, -5, -1, -1, -3, -6, -9, -7, -3, 1, 3, 4, 9, 7, //47936
2, 2, 6, 11, 14, 16, 18, 18, 18, 17, 14, 15, 19, 20, 23, 25, //47952
26, 27, 26, 25, 31, 32, 32, 28, 26, 27, 28, 32, 36, 40, 43, 46, //47968
46, 45, 44, 46, 46, 44, 45, 40, 35, 32, 30, 32, 38, 44, 46, 44, //47984
43, 37, 34, 32, 29, 31, 34, 29, 24, 24, 26, 29, 29, 33, 38, 40, //48000
45, 48, 47, 47, 43, 39, 31, 22, 20, 19, 16, 13, 13, 17, 21, 24, //48016
29, 33, 35, 27, 21, 17, 13, 12, 17, 19, 21, 24, 28, 30, 31, 31, //48032
32, 34, 34, 34, 33, 32, 31, 28, 24, 23, 22, 18, 17, 19, 15, 3, //48048
-1, -6, -9, -6, -2, 3, 7, 9, 8, 7, 6, 4, 4, 6, 5, 0, //48064
-3, -5, -6, -6, -4, -2, -5, -5, -3, 2, 8, 13, 13, 9, 3, 0, //48080
1, 0, -1, -1, -1, -3, -8, -12, -14, -13, -14, -15, -15, -12, -12, -17, //48096
-21, -24, -31, -34, -34, -33, -34, -36, -37, -41, -42, -37, -31, -23, -23, -25, //48112
-26, -28, -31, -37, -40, -43, -47, -50, -53, -53, -50, -47, -42, -40, -41, -41, //48128
-42, -44, -44, -41, -37, -38, -41, -43, -47, -53, -55, -56, -56, -54, -55, -58, //48144
-52, -47, -46, -45, -40, -37, -40, -42, -45, -49, -49, -51, -54, -55, -57, -59, //48160
-63, -64, -62, -60, -55, -51, -52, -54, -52, -52, -55, -53, -47, -45, -43, -42, //48176
-45, -50, -47, -42, -37, -33, -29, -22, -20, -18, -18, -16, -14, -16, -19, -23, //48192
-26, -29, -33, -33, -28, -21, -17, -16, -12, -11, -9, -4, 1, 5, 7, 6, //48208
6, 6, 5, 2, 3, 9, 11, 11, 13, 12, 15, 19, 19, 20, 18, 19, //48224
19, 19, 21, 22, 25, 25, 26, 29, 28, 26, 24, 21, 22, 23, 24, 30, //48240
29, 28, 30, 30, 31, 27, 24, 23, 22, 23, 25, 27, 29, 29, 31, 35, //48256
35, 38, 39, 39, 40, 39, 33, 27, 24, 21, 17, 16, 20, 24, 26, 27, //48272
28, 30, 34, 37, 38, 39, 38, 35, 32, 29, 30, 31, 33, 32, 32, 33, //48288
34, 36, 39, 41, 43, 42, 39, 38, 35, 33, 35, 36, 35, 34, 37, 39, //48304
41, 42, 42, 40, 38, 35, 37, 38, 38, 43, 43, 42, 40, 38, 33, 29, //48320
27, 25, 21, 19, 16, 17, 18, 20, 27, 33, 35, 36, 31, 23, 15, 8, //48336
6, 5, 5, 6, 7, 7, 9, 12, 16, 18, 20, 22, 20, 15, 11, 8, //48352
5, 2, 0, 4, 9, 13, 13, 13, 13, 12, 10, 8, 5, 2, -1, -4, //48368
-6, -3, -1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -3, -4, -4, -3, //48384
-2, -1, -4, -3, -2, -3, -6, -9, -10, -12, -17, -21, -22, -22, -21, -19, //48400
-16, -15, -15, -18, -20, -23, -26, -29, -31, -32, -31, -27, -23, -21, -19, -19, //48416
-19, -20, -25, -28, -29, -31, -32, -32, -31, -30, -24, -23, -23, -23, -23, -23, //48432
-23, -23, -23, -24, -26, -26, -25, -24, -23, -25, -25, -27, -29, -30, -31, -32, //48448
-29, -26, -24, -24, -23, -20, -17, -15, -14, -13, -13, -13, -11, -11, -10, -5, //48464
-1, 1, 2, 4, 3, 0, -3, -5, -6, -9, -11, -8, -7, -6, -4, 0, //48480
0, -2, 0, 1, 1, 0, -5, -9, -6, -6, -5, -3, -1, 1, -1, -2, //48496
0, 4, 7, 9, 12, 14, 10, 2, -1, 3, 7, 10, 10, 8, 2, 3, //48512
4, 6, 9, 10, 11, 12, 12, 8, 7, 8, 4, 3, 4, 6, 6, 3, //48528
3, 3, 2, 3, 4, 5, 7, 7, 6, 6, 6, 4, 3, 4, 6, 5, //48544
3, 6, 8, 7, 6, 9, 12, 14, 15, 14, 14, 14, 12, 11, 13, 12, //48560
8, 5, 2, -2, 1, 4, 4, 6, 3, -1, 0, 2, 2, 1, 2, 0, //48576
-4, -2, 3, 5, 8, 11, 13, 17, 21, 24, 22, 18, 17, 15, 11, 10, //48592
10, 10, 9, 12, 12, 11, 13, 16, 15, 11, 13, 12, 9, 8, 6, 9, //48608
13, 15, 17, 20, 22, 22, 22, 18, 10, 4, 3, 0, -2, -4, -4, -2, //48624
1, 1, -2, -6, -5, -2, -4, -4, -4, -5, -7, -3, -3, -2, 2, 4, //48640
6, 10, 6, 0, -7, -16, -27, -30, -30, -32, -33, -31, -28, -24, -21, -19, //48656
-13, -6, -3, -5, -12, -20, -25, -31, -30, -26, -24, -23, -24, -30, -30, -29, //48672
-29, -28, -23, -24, -30, -37, -39, -39, -42, -40, -38, -37, -33, -32, -27, -23, //48688
-21, -21, -22, -23, -26, -29, -30, -35, -39, -44, -47, -46, -46, -47, -44, -36, //48704
-32, -29, -26, -22, -12, -11, -12, -13, -15, -18, -20, -19, -18, -20, -23, -25, //48720
-29, -26, -22, -19, -14, -10, -10, -8, -7, -9, -9, -2, 3, 2, -1, -4, //48736
-8, -13, -16, -15, -8, -1, 4, 7, 11, 17, 22, 25, 30, 32, 26, 15, //48752
12, 14, 14, 17, 20, 24, 27, 30, 36, 40, 43, 44, 44, 43, 39, 35, //48768
34, 34, 35, 33, 33, 35, 34, 32, 31, 31, 37, 41, 41, 42, 44, 42, //48784
37, 34, 35, 35, 36, 36, 35, 36, 38, 38, 40, 44, 47, 50, 50, 43, //48800
41, 35, 30, 27, 19, 19, 21, 25, 29, 30, 38, 40, 38, 38, 37, 36, //48816
33, 31, 28, 28, 29, 29, 30, 30, 29, 29, 29, 27, 23, 20, 15, 9, //48832
7, 5, 5, 5, 2, 3, 2, 2, 4, 6, 9, 9, 8, 7, 7, 8, //48848
8, 8, 7, 8, 9, 5, 3, 4, 5, 5, 5, 6, 5, -3, -9, -13, //48864
-11, -8, -6, -1, -3, -6, -6, -7, -9, -11, -13, -14, -15, -16, -18, -18, //48880
-18, -18, -17, -16, -13, -13, -16, -18, -18, -22, -24, -23, -21, -20, -20, -22, //48896
-22, -23, -23, -24, -25, -22, -17, -14, -15, -18, -21, -24, -28, -29, -30, -30, //48912
-34, -37, -37, -37, -34, -30, -26, -23, -24, -24, -24, -29, -31, -29, -26, -24, //48928
-24, -28, -31, -32, -29, -24, -22, -21, -23, -26, -31, -35, -42, -44, -45, -47, //48944
-49, -52, -52, -51, -49, -48, -47, -43, -41, -43, -46, -46, -43, -42, -42, -41, //48960
-38, -35, -37, -42, -43, -44, -44, -44, -45, -44, -39, -35, -30, -29, -33, -38, //48976
-42, -46, -48, -48, -44, -42, -40, -39, -37, -32, -29, -23, -18, -15, -14, -22, //48992
-24, -24, -24, -25, -26, -24, -27, -29, -27, -21, -8, -2, 0, 2, 2, -1, //49008
-4, -5, -3, -2, -6, -8, -6, -4, 1, 7, 12, 14, 13, 13, 14, 15, //49024
16, 15, 15, 15, 14, 14, 12, 11, 13, 13, 16, 19, 16, 17, 17, 17, //49040
19, 20, 23, 26, 26, 26, 28, 28, 28, 26, 21, 17, 15, 8, 7, 9, //49056
15, 22, 28, 36, 38, 37, 37, 38, 35, 30, 29, 26, 21, 18, 22, 27, //49072
31, 33, 34, 35, 35, 34, 36, 38, 41, 43, 37, 34, 33, 31, 31, 27, //49088
28, 29, 25, 24, 26, 34, 37, 38, 40, 41, 40, 39, 36, 34, 32, 32, //49104
29, 27, 27, 25, 27, 31, 38, 42, 42, 40, 37, 33, 35, 35, 34, 34, //49120
32, 26, 22, 19, 17, 13, 12, 14, 15, 14, 14, 16, 23, 27, 30, 32, //49136
33, 31, 28, 26, 26, 26, 25, 22, 22, 23, 20, 16, 16, 16, 16, 13, //49152
9, 10, 10, 12, 17, 17, 17, 14, 9, 1, -2, -2, -4, -7, -8, -10, //49168
-11, -13, -13, -11, -8, -5, -2, 1, 2, 1, 5, 3, -1, -5, -10, -17, //49184
-21, -23, -24, -25, -25, -24, -23, -25, -28, -28, -29, -30, -29, -29, -31, -33, //49200
-34, -33, -31, -31, -30, -26, -24, -25, -25, -26, -26, -26, -20, -15, -12, -13, //49216
-17, -24, -28, -30, -30, -28, -28, -26, -27, -31, -34, -33, -30, -26, -23, -21, //49232
-23, -27, -31, -30, -27, -26, -25, -22, -21, -19, -13, -11, -11, -9, -9, -9, //49248
-11, -12, -13, -14, -14, -15, -15, -13, -13, -11, -9, -8, -4, -2, -3, 0, //49264
1, 0, -1, -4, -5, -6, -6, -4, -1, 2, 0, -4, -6, -6, -5, -4, //49280
-2, 1, 2, 1, -4, -5, 0, 1, 2, 5, 6, 4, 3, 3, 4, 4, //49296
4, 3, 1, 1, 1, 1, 2, 3, 5, 7, 8, 13, 16, 16, 19, 18, //49312
14, 9, 5, 3, 2, 1, -2, -3, -4, -5, -2, 1, 4, 13, 15, 15, //49328
18, 20, 16, 13, 12, 11, 8, 8, 10, 10, 13, 15, 20, 25, 24, 26, //49344
26, 22, 19, 14, 11, 9, 9, 8, 3, 6, 11, 13, 17, 22, 28, 34, //49360
33, 29, 26, 27, 21, 17, 14, 10, 8, 7, 3, 5, 8, 12, 16, 17, //49376
11, 8, 5, 2, 2, 3, 4, 7, 9, 8, 7, 14, 17, 15, 13, 13, //49392
11, 9, 4, -1, -4, -6, -10, -14, -14, -12, -12, -12, -10, -8, -5, -6, //49408
-6, -10, -10, -11, -14, -16, -18, -25, -29, -32, -30, -28, -28, -22, -25, -28, //49424
-25, -23, -14, -12, -13, -12, -15, -21, -20, -16, -15, -18, -20, -21, -25, -24, //49440
-26, -27, -27, -29, -29, -31, -37, -43, -46, -41, -37, -36, -40, -44, -40, -36, //49456
-29, -23, -20, -18, -28, -39, -42, -38, -30, -27, -32, -35, -39, -43, -42, -37, //49472
-27, -16, -7, -11, -18, -19, -23, -20, -12, -12, -12, -13, -21, -25, -23, -17, //49488
-10, 1, 3, 3, 4, 6, 7, 11, 14, 18, 23, 20, 9, 8, 6, 6, //49504
11, 11, 5, -1, -7, -7, -4, 3, 10, 15, 19, 24, 30, 44, 54, 55, //49520
51, 48, 44, 31, 20, 10, 2, -3, -4, -2, 3, 10, 13, 16, 28, 35, //49536
38, 37, 32, 27, 32, 39, 45, 50, 54, 59, 62, 61, 60, 62, 60, 53, //49552
47, 39, 32, 26, 21, 20, 26, 36, 47, 53, 53, 51, 52, 56, 60, 62, //49568
68, 66, 60, 54, 47, 35, 27, 24, 26, 25, 26, 31, 29, 35, 42, 47, //49584
57, 64, 63, 63, 64, 65, 53, 48, 44, 41, 41, 38, 36, 36, 32, 32, //49600
32, 30, 28, 19, 14, 12, 12, 9, 11, 16, 16, 12, 10, 8, 10, 12, //49616
13, 14, 16, 25, 25, 21, 20, 19, 8, 2, -4, -11, -15, -11, -7, -6, //49632
-2, 0, 1, 6, 8, 9, 11, 12, 11, 5, 6, 3, 0, 3, 4, 1, //49648
0, -3, -5, -4, -4, -10, -14, -16, -19, -18, -15, -19, -15, -8, -7, -6, //49664
1, 0, -2, -7, -17, -24, -24, -21, -18, -15, -12, -14, -17, -19, -19, -17, //49680
-10, -7, -17, -28, -33, -42, -53, -51, -50, -48, -42, -43, -49, -44, -37, -30, //49696
-23, -20, -24, -24, -27, -31, -33, -32, -31, -34, -37, -38, -36, -42, -53, -58, //49712
-61, -62, -59, -57, -55, -56, -63, -68, -65, -62, -60, -60, -60, -56, -57, -60, //49728
-59, -57, -56, -54, -54, -56, -61, -67, -69, -65, -60, -54, -51, -48, -43, -38, //49744
-38, -41, -41, -40, -41, -39, -43, -48, -48, -48, -48, -45, -41, -36, -30, -29, //49760
-43, -50, -54, -58, -59, -55, -42, -33, -29, -26, -23, -15, -12, -12, -11, -11, //49776
-17, -24, -27, -31, -30, -28, -28, -19, -10, -2, 2, 6, 8, 8, 10, 10, //49792
9, 5, -3, -8, -13, -14, -13, -8, 2, 6, 5, 6, 11, 19, 18, 16, //49808
16, 12, 5, 4, 3, 4, 9, 13, 17, 22, 21, 20, 23, 26, 27, 27, //49824
27, 24, 21, 23, 31, 33, 31, 26, 22, 15, 10, 10, 18, 26, 25, 23, //49840
23, 24, 29, 34, 38, 39, 32, 26, 19, 15, 17, 22, 30, 33, 34, 39, //49856
48, 53, 55, 57, 60, 58, 57, 53, 46, 42, 39, 39, 40, 38, 37, 35, //49872
34, 30, 28, 31, 33, 34, 35, 37, 42, 47, 48, 46, 46, 47, 44, 38, //49888
31, 25, 26, 26, 25, 28, 32, 34, 33, 35, 37, 36, 32, 27, 28, 32, //49904
35, 35, 34, 35, 33, 27, 24, 22, 21, 23, 23, 19, 18, 18, 16, 16, //49920
14, 13, 15, 18, 17, 15, 16, 20, 24, 27, 22, 17, 15, 14, 11, 6, //49936
3, 4, 6, 8, 10, 12, 11, 9, 7, 4, 1, 2, 1, -4, -10, -18, //49952
-21, -22, -23, -23, -21, -16, -14, -16, -16, -18, -20, -20, -20, -19, -18, -17, //49968
-19, -23, -24, -26, -30, -34, -36, -33, -34, -36, -37, -35, -30, -28, -27, -23, //49984
-20, -19, -22, -25, -29, -32, -34, -36, -41, -43, -39, -34, -31, -25, -23, -17, //50000
-15, -17, -18, -17, -18, -19, -24, -27, -28, -30, -31, -31, -28, -27, -28, -21, //50016
-17, -19, -19, -16, -14, -15, -18, -21, -18, -16, -18, -17, -14, -12, -8, -2, //50032
-2, -1, 2, 1, 2, -2, -5, -6, -9, -14, -13, -9, -8, -9, -12, -14, //50048
-10, -7, -7, -5, -5, -9, -7, -10, -9, -4, -2, -1, 1, 0, -1, -2, //50064
-2, -6, -6, -5, -5, -5, -6, -7, -8, -10, -8, -2, -1, -1, -2, 0, //50080
3, 4, 3, 3, 4, 8, 10, 9, 11, 12, 12, 12, 11, 10, 12, 11, //50096
10, 8, 4, 1, 2, 2, 1, -1, -5, -6, -8, -14, -15, -11, -5, 1, //50112
2, 6, 8, 8, 14, 14, 14, 14, 10, 3, -3, -6, -5, 0, 4, 9, //50128
11, 9, 6, 7, 8, 14, 13, 12, 11, 10, 9, 6, 9, 9, 9, 11, //50144
11, 11, 11, 8, 6, 7, 9, 10, 8, 5, 5, 9, 15, 17, 21, 22, //50160
18, 13, 9, 4, 1, -4, -11, -14, -14, -17, -16, -10, -6, -4, -3, -3, //50176
-4, -5, -7, -10, -12, -18, -23, -27, -33, -32, -26, -22, -19, -15, -11, -9, //50192
-7, -8, -9, -10, -16, -18, -21, -27, -32, -32, -23, -15, -17, -19, -16, -12, //50208
-14, -19, -23, -27, -38, -43, -47, -49, -48, -50, -53, -50, -49, -49, -46, -46, //50224
-47, -45, -44, -45, -43, -40, -40, -37, -32, -30, -28, -32, -37, -38, -39, -39, //50240
-36, -32, -30, -25, -21, -18, -11, -10, -9, -8, -8, -7, -5, -9, -12, -14, //50256
-17, -18, -14, -12, -9, -5, -2, -1, 2, 4, 6, 9, 11, 12, 10, 9, //50272
9, 8, 9, 11, 14, 17, 16, 16, 22, 26, 30, 32, 33, 34, 32, 31, //50288
30, 28, 29, 31, 33, 33, 34, 36, 40, 45, 49, 51, 48, 44, 41, 36, //50304
34, 34, 36, 39, 43, 51, 60, 66, 67, 66, 65, 64, 63, 60, 56, 52, //50320
45, 43, 46, 48, 52, 56, 57, 57, 55, 52, 50, 46, 43, 41, 38, 33, //50336
32, 31, 34, 38, 40, 45, 51, 49, 47, 42, 36, 34, 30, 25, 24, 24, //50352
22, 20, 14, 14, 14, 11, 8, 4, 3, 3, 5, 9, 12, 18, 20, 20, //50368
20, 19, 14, 10, 8, 8, 7, 2, -3, -3, -4, -6, -6, 0, 11, 15, //50384
17, 15, 13, 14, 7, 1, -2, -4, -3, -3, 0, 3, 6, 7, 7, 4, //50400
3, 2, -1, -3, -3, -7, -9, -10, -11, -13, -13, -12, -15, -16, -17, -23, //50416
-26, -25, -21, -18, -18, -18, -19, -22, -23, -25, -28, -31, -34, -35, -36, -36, //50432
-35, -32, -27, -24, -25, -28, -28, -29, -27, -25, -27, -28, -30, -31, -32, -32, //50448
-27, -23, -19, -16, -16, -16, -17, -17, -15, -16, -18, -20, -24, -30, -35, -38, //50464
-37, -36, -38, -41, -42, -42, -43, -45, -46, -45, -45, -47, -49, -50, -55, -61, //50480
-63, -64, -64, -60, -58, -56, -54, -55, -54, -53, -51, -46, -44, -42, -38, -39, //50496
-42, -44, -47, -50, -49, -50, -47, -45, -42, -37, -30, -27, -25, -27, -30, -33, //50512
-36, -35, -32, -29, -28, -28, -27, -26, -26, -26, -27, -24, -24, -25, -26, -27, //50528
-27, -28, -26, -22, -21, -18, -14, -12, -10, -8, -8, -6, -6, -5, -4, -3, //50544
-3, -5, -7, -3, 2, 5, 9, 11, 12, 14, 12, 9, 7, 7, 8, 8, //50560
8, 8, 8, 14, 17, 19, 23, 23, 22, 20, 17, 14, 12, 10, 8, 6, //50576
8, 12, 15, 18, 19, 19, 22, 24, 25, 25, 25, 27, 27, 24, 22, 21, //50592
21, 21, 22, 24, 27, 28, 30, 33, 35, 37, 40, 39, 41, 42, 41, 42, //50608
45, 47, 47, 46, 44, 43, 45, 45, 44, 43, 42, 46, 49, 53, 58, 61, //50624
63, 62, 58, 54, 50, 47, 46, 44, 44, 46, 47, 47, 46, 50, 54, 55, //50640
54, 52, 47, 46, 45, 42, 41, 41, 37, 36, 35, 33, 35, 40, 45, 50, //50656
51, 49, 46, 38, 35, 31, 27, 26, 26, 23, 24, 26, 26, 24, 25, 25, //50672
23, 23, 22, 19, 16, 15, 15, 14, 12, 10, 9, 8, 7, 7, 7, 9, //50688
7, 3, 3, 4, 6, 6, 6, 7, 7, 5, 4, -1, -2, -3, -6, -10, //50704
-15, -17, -17, -16, -15, -12, -6, -6, -7, -11, -17, -20, -21, -24, -25, -24, //50720
-22, -21, -19, -13, -10, -10, -10, -15, -19, -22, -25, -26, -29, -29, -26, -25, //50736
-23, -22, -21, -18, -16, -15, -15, -13, -14, -18, -20, -23, -26, -28, -28, -26, //50752
-22, -19, -17, -10, -6, -6, -7, -6, -7, -10, -12, -14, -17, -17, -16, -14, //50768
-9, -9, -12, -14, -16, -14, -11, -7, -5, -7, -10, -11, -12, -14, -13, -8, //50784
-9, -11, -13, -13, -12, -14, -14, -14, -14, -14, -14, -8, -5, -7, -8, -6, //50800
-7, -12, -16, -18, -19, -20, -18, -16, -15, -16, -18, -20, -17, -13, -14, -15, //50816
-11, -13, -17, -15, -13, -16, -17, -16, -15, -10, -6, -4, -4, -1, -2, -3, //50832
-2, -2, -5, -9, -11, -15, -18, -18, -17, -16, -13, -10, -12, -13, -8, -6, //50848
-5, -3, -1, -6, -9, -11, -13, -11, -7, -4, 0, 7, 11, 11, 12, 11, //50864
12, 14, 14, 14, 10, 5, 1, -4, -8, -10, -6, -4, -5, -6, -6, -8, //50880
-8, -9, -10, -8, -5, 0, 1, 0, 2, 1, -1, 4, 7, 9, 9, 7, //50896
3, 0, -1, -2, -6, -7, -7, -8, -8, -7, -4, -1, 4, 5, -1, -5, //50912
-7, -11, -15, -17, -19, -21, -18, -16, -17, -17, -14, -14, -13, -6, -3, -1, //50928
-2, -3, -8, -13, -13, -15, -20, -22, -21, -19, -15, -12, -11, -10, -6, -5, //50944
-5, -5, -6, -11, -17, -23, -26, -30, -33, -37, -40, -40, -38, -37, -37, -33, //50960
-29, -27, -29, -31, -33, -36, -38, -39, -36, -32, -28, -28, -28, -26, -25, -22, //50976
-16, -12, -8, -8, -11, -16, -18, -17, -14, -13, -12, -9, -10, -12, -12, -11, //50992
-7, -3, -2, -2, -2, 0, 4, 9, 11, 12, 13, 12, 10, 9, 6, 8, //51008
11, 9, 10, 12, 14, 14, 14, 20, 26, 30, 30, 27, 29, 34, 39, 42, //51024
44, 45, 43, 41, 41, 41, 41, 42, 41, 40, 42, 43, 44, 43, 42, 40, //51040
37, 38, 39, 42, 42, 43, 46, 52, 61, 66, 66, 64, 62, 58, 54, 50, //51056
47, 45, 45, 46, 45, 46, 50, 50, 47, 46, 47, 48, 49, 48, 46, 47, //51072
48, 49, 51, 54, 56, 54, 52, 51, 50, 48, 45, 38, 33, 29, 27, 26, //51088
23, 22, 21, 21, 23, 24, 29, 30, 30, 29, 26, 22, 20, 18, 12, 7, //51104
3, 0, 1, 1, 0, -2, -2, 0, 2, 6, 5, 6, 5, 2, 0, -2, //51120
-2, -1, -2, -3, -2, -1, 1, 2, 3, 6, 8, 7, 3, -2, -4, -6, //51136
-8, -11, -14, -14, -14, -15, -11, -8, -9, -9, -11, -11, -11, -9, -8, -6, //51152
0, 3, 3, 4, 2, -5, -9, -11, -13, -16, -17, -20, -21, -17, -13, -8, //51168
-2, -3, -9, -12, -12, -16, -18, -18, -20, -22, -22, -20, -20, -19, -17, -17, //51184
-17, -15, -16, -15, -12, -12, -15, -15, -15, -17, -17, -17, -22, -24, -24, -25, //51200
-27, -30, -33, -36, -35, -32, -33, -29, -29, -32, -37, -41, -43, -50, -54, -57, //51216
-60, -63, -64, -64, -62, -59, -54, -49, -42, -43, -47, -52, -60, -67, -71, -68, //51232
-66, -66, -67, -67, -62, -59, -56, -53, -50, -46, -48, -53, -58, -61, -66, -70, //51248
-74, -77, -77, -75, -74, -70, -65, -61, -57, -55, -57, -56, -54, -55, -58, -60, //51264
-61, -60, -57, -55, -54, -51, -45, -41, -36, -31, -27, -21, -19, -17, -17, -16, //51280
-14, -15, -17, -18, -18, -17, -17, -17, -14, -12, -10, -8, -9, -7, -5, -3, //51296
-2, 1, 10, 11, 12, 13, 13, 11, 9, 8, 10, 12, 16, 20, 22, 26, //51312
26, 26, 28, 25, 25, 27, 29, 29, 22, 20, 19, 20, 23, 25, 29, 32, //51328
32, 32, 31, 33, 38, 37, 37, 37, 34, 25, 21, 20, 19, 20, 21, 22, //51344
23, 26, 28, 31, 34, 34, 35, 36, 33, 31, 31, 33, 34, 31, 29, 28, //51360
28, 29, 28, 28, 30, 30, 27, 27, 27, 29, 33, 32, 32, 34, 33, 30, //51376
29, 28, 26, 28, 31, 30, 28, 29, 30, 30, 36, 44, 48, 50, 46, 40, //51392
35, 31, 24, 19, 17, 16, 13, 14, 14, 13, 15, 17, 18, 20, 23, 24, //51408
23, 23, 23, 23, 24, 21, 18, 18, 18, 18, 20, 21, 21, 19, 13, 9, //51424
7, 8, 11, 14, 19, 19, 17, 18, 18, 14, 9, 7, 5, 6, 6, 5, //51440
6, 5, 5, 5, 5, 8, 11, 12, 13, 12, 13, 11, 8, 7, 4, 3, //51456
9, 10, 12, 14, 16, 16, 18, 22, 23, 25, 27, 20, 15, 7, -4, -12, //51472
-16, -16, -11, -3, 0, -1, -2, 1, 4, 8, 10, 8, 5, 1, -4, -7, //51488
-3, 1, 5, 8, 8, 9, 12, 12, 9, 8, 9, 9, 4, -3, -10, -14, //51504
-12, -10, -7, 3, 5, 4, 2, -1, -1, 0, 1, 1, -2, -5, -9, -14, //51520
-18, -20, -19, -18, -17, -15, -16, -16, -16, -17, -16, -16, -18, -19, -21, -19, //51536
-17, -18, -18, -20, -23, -22, -23, -23, -21, -20, -18, -11, -8, -4, 0, 5, //51552
8, 7, 5, 4, 2, 0, 0, 2, 5, 6, 3, 0, -5, -8, -7, -8, //51568
-11, -12, -13, -12, -10, -9, -7, -9, -7, -4, -5, -3, 0, -3, -3, -5, //51584
-5, -3, -1, -1, -1, 0, -1, -6, -10, -11, -8, -3, -1, 0, -2, -5, //51600
-6, -7, -8, -8, -10, -11, -13, -12, -6, 2, 7, 13, 16, 20, 22, 18, //51616
10, 4, -3, -7, -11, -16, -20, -25, -29, -29, -26, -21, -20, -26, -31, -39, //51632
-39, -33, -29, -26, -23, -23, -24, -25, -27, -27, -28, -29, -32, -37, -40, -41, //51648
-38, -34, -28, -25, -24, -26, -29, -25, -17, -10, -5, -5, -17, -23, -29, -33, //51664
-35, -34, -38, -41, -45, -52, -52, -47, -42, -36, -32, -28, -30, -38, -42, -43, //51680
-37, -26, -20, -20, -24, -31, -36, -36, -32, -24, -19, -18, -19, -20, -18, -15, //51696
-11, -8, -6, -3, -1, -3, -5, -3, -4, -5, -8, -13, -16, -16, -14, -8, //51712
-3, 1, 2, 3, 5, 10, 22, 32, 39, 43, 41, 36, 29, 23, 19, 15, //51728
13, 9, 2, 0, 2, 6, 13, 17, 19, 20, 17, 15, 18, 26, 34, 41, //51744
45, 43, 41, 40, 39, 38, 38, 39, 38, 35, 31, 26, 29, 35, 40, 48, //51760
55, 58, 57, 53, 51, 53, 58, 69, 74, 78, 79, 75, 68, 51, 41, 34, //51776
28, 23, 17, 15, 16, 18, 24, 30, 40, 49, 54, 57, 62, 62, 59, 54, //51792
46, 40, 37, 36, 36, 35, 33, 33, 32, 35, 36, 37, 38, 34, 27, 20, //51808
17, 18, 21, 21, 19, 18, 19, 19, 18, 21, 27, 31, 33, 33, 33, 30, //51824
19, 9, 2, -2, -4, 1, 2, 2, 6, 9, 10, 18, 22, 24, 26, 26, //51840
24, 21, 22, 22, 20, 21, 23, 24, 25, 23, 19, 17, 15, 13, 10, 9, //51856
4, 0, 1, 0, 3, 10, 12, 16, 17, 18, 19, 16, 12, 4, 3, 5, //51872
8, 9, 10, 6, 6, 7, 8, 10, 12, 10, 5, -5, -16, -26, -34, -35, //51888
-33, -28, -20, -15, -14, -16, -19, -17, -12, -9, -8, -7, -8, -10, -13, -15, //51904
-16, -14, -11, -10, -7, -9, -13, -18, -25, -30, -30, -29, -28, -30, -33, -35, //51920
-36, -34, -33, -35, -36, -39, -42, -43, -41, -37, -33, -34, -38, -39, -40, -45, //51936
-48, -47, -48, -48, -49, -51, -53, -54, -52, -51, -52, -51, -51, -50, -47, -47, //51952
-48, -47, -46, -48, -48, -45, -42, -41, -48, -54, -60, -62, -65, -71, -67, -63, //51968
-61, -57, -54, -51, -48, -47, -46, -46, -48, -53, -60, -66, -68, -66, -57, -49, //51984
-42, -39, -37, -33, -32, -33, -33, -30, -26, -27, -30, -32, -34, -34, -34, -31, //52000
-23, -19, -17, -15, -12, -4, 0, 3, 2, 2, 4, 3, 1, -2, -3, -4, //52016
0, 3, 4, 4, 4, 6, 7, 7, 9, 11, 10, 9, 12, 14, 12, 7, //52032
2, -6, -7, -3, 1, 4, 8, 8, 10, 13, 17, 23, 28, 28, 23, 17, //52048
12, 8, 5, 7, 11, 12, 12, 18, 23, 29, 36, 43, 48, 51, 51, 48, //52064
43, 37, 33, 28, 27, 26, 23, 22, 18, 15, 15, 16, 17, 21, 24, 26, //52080
29, 35, 40, 42, 43, 43, 39, 34, 28, 18, 15, 13, 12, 13, 14, 20, //52096
21, 18, 17, 18, 19, 22, 25, 27, 28, 29, 28, 27, 28, 29, 27, 25, //52112
22, 21, 22, 22, 20, 19, 17, 13, 10, 6, 3, 3, 5, 5, 3, 4, //52128
7, 12, 15, 17, 21, 24, 24, 20, 18, 17, 15, 15, 16, 15, 13, 11, //52144
9, 8, 10, 14, 17, 17, 15, 13, 10, 9, 8, 7, 11, 15, 14, 14, //52160
16, 19, 21, 24, 26, 26, 24, 21, 17, 21, 24, 25, 27, 27, 27, 27, //52176
27, 26, 23, 21, 19, 18, 17, 15, 14, 16, 16, 13, 10, 8, 9, 7, //52192
3, 3, 4, 7, 13, 16, 12, 12, 13, 10, 11, 19, 23, 20, 17, 15, //52208
15, 16, 14, 10, 5, 0, -3, -2, -1, -1, -1, -3, -8, -8, -7, -9, //52224
-10, -10, -10, -10, -9, -8, -8, -12, -16, -19, -20, -16, -8, -4, -5, -9, //52240
-10, -9, -14, -16, -18, -21, -28, -35, -37, -34, -32, -28, -25, -26, -24, -24, //52256
-25, -23, -22, -19, -17, -18, -22, -23, -22, -21, -20, -19, -16, -13, -10, -15, //52272
-17, -16, -14, -13, -12, -17, -23, -23, -23, -23, -20, -17, -14, -9, -7, -8, //52288
-6, -9, -15, -18, -18, -17, -14, -9, -10, -12, -7, -4, -4, 0, 3, 6, //52304
6, 1, -2, -1, 0, 0, 1, 4, 7, 8, 10, 15, 19, 19, 15, 9, //52320
4, -8, -15, -24, -29, -26, -24, -23, -20, -17, -18, -19, -18, -18, -21, -26, //52336
-30, -34, -39, -40, -38, -32, -24, -20, -17, -18, -18, -15, -13, -17, -21, -24, //52352
-31, -38, -39, -33, -29, -25, -20, -14, -10, -5, -7, -12, -15, -19, -28, -29, //52368
-29, -29, -30, -33, -34, -33, -35, -37, -37, -35, -36, -42, -43, -41, -42, -42, //52384
-40, -34, -28, -25, -23, -20, -25, -28, -28, -28, -28, -30, -30, -28, -26, -23, //52400
-25, -24, -20, -17, -14, -12, -6, -7, -10, -13, -14, -15, -13, -10, -5, -1, //52416
4, 7, 6, 7, 11, 17, 21, 22, 21, 20, 19, 19, 19, 22, 22, 18, //52432
15, 12, 9, 9, 8, 9, 13, 12, 11, 9, 4, 5, 9, 14, 15, 16, //52448
18, 21, 23, 23, 22, 21, 18, 19, 20, 23, 25, 28, 34, 40, 44, 53, //52464
56, 60, 61, 59, 57, 54, 53, 49, 42, 40, 36, 32, 30, 30, 31, 34, //52480
38, 41, 44, 44, 41, 35, 28, 23, 26, 28, 29, 36, 42, 47, 53, 59, //52496
62, 62, 59, 55, 53, 51, 43, 37, 34, 30, 26, 26, 31, 31, 29, 25, //52512
18, 9, 8, 9, 12, 19, 23, 25, 28, 29, 31, 34, 33, 28, 25, 19, //52528
15, 14, 13, 16, 22, 29, 33, 36, 42, 42, 39, 39, 35, 29, 21, 13, //52544
10, 7, 6, 10, 14, 20, 20, 19, 23, 22, 19, 15, 12, 9, 5, -1, //52560
-5, -7, -9, -10, -3, 1, 5, 8, 7, 5, 9, 10, 12, 13, 14, 10, //52576
-2, -6, -11, -16, -19, -18, -18, -17, -15, -15, -16, -15, -15, -16, -16, -14, //52592
-13, -10, -9, -10, -12, -16, -20, -21, -20, -20, -21, -20, -15, -13, -11, -8, //52608
-1, 5, 9, 7, 1, -5, -12, -23, -28, -32, -36, -37, -36, -33, -31, -27, //52624
-24, -25, -28, -32, -34, -37, -41, -42, -46, -49, -50, -51, -50, -48, -43, -44, //52640
-48, -48, -46, -42, -39, -34, -30, -29, -30, -34, -37, -38, -40, -45, -49, -50, //52656
-48, -47, -46, -42, -32, -25, -18, -15, -17, -21, -31, -37, -40, -41, -39, -40, //52672
-43, -44, -44, -40, -35, -26, -25, -28, -33, -37, -41, -46, -46, -46, -46, -47, //52688
-48, -51, -49, -46, -44, -41, -38, -38, -35, -33, -32, -29, -25, -22, -17, -14, //52704
-10, -8, -7, -6, -8, -12, -17, -20, -21, -23, -21, -14, -7, -6, -5, -2, //52720
-2, -4, -2, -1, -3, -6, -10, -13, -17, -17, -16, -15, -14, -11, -7, -4, //52736
-2, -1, 0, 1, 1, 2, 1, 1, 1, 2, 6, 9, 12, 17, 19, 22, //52752
25, 25, 26, 29, 29, 31, 32, 34, 36, 38, 36, 35, 36, 33, 30, 31, //52768
29, 27, 28, 30, 33, 38, 44, 48, 50, 52, 53, 52, 50, 47, 44, 43, //52784
41, 37, 37, 35, 33, 35, 40, 41, 45, 49, 50, 48, 42, 38, 32, 27, //52800
24, 22, 17, 16, 16, 17, 20, 27, 28, 26, 26, 27, 24, 17, 14, 13, //52816
11, 8, 6, 4, 1, -2, 0, 2, 3, 3, 1, 1, 3, 5, 9, 12, //52832
12, 8, 4, 0, 1, 0, 1, 2, -1, -3, -5, -6, -3, 3, 5, 9, //52848
10, 10, 12, 13, 11, 9, 8, 5, 2, 2, 2, 3, 2, 0, -1, -1, //52864
3, 6, 9, 10, 7, 3, 0, 1, 2, 4, 4, 2, 3, 2, 3, 6, //52880
6, 5, 5, 5, 5, 5, 5, 4, 3, 5, 8, 12, 17, 16, 15, 14, //52896
15, 16, 16, 17, 14, 5, 0, 2, 8, 8, 12, 18, 19, 23, 27, 27, //52912
27, 28, 29, 24, 22, 22, 17, 11, 6, 6, 6, 5, 2, 0, -3, -5, //52928
-6, -7, -9, -11, -12, -15, -19, -23, -24, -17, -15, -16, -15, -13, -12, -9, //52944
-6, -6, -11, -13, -12, -20, -21, -20, -23, -23, -19, -17, -16, -12, -8, -7, //52960
-5, -6, -9, -10, -15, -20, -18, -20, -21, -17, -12, -10, -11, -14, -16, -19, //52976
-19, -17, -16, -12, -10, -10, -9, -11, -12, -11, -10, -11, -12, -15, -17, -17, //52992
-19, -21, -13, -12, -12, -10, -6, 0, 7, 6, 2, -1, -1, -3, -6, -9, //53008
-12, -12, -10, -10, -9, -5, -1, 2, 6, 11, 10, 5, 1, -7, -14, -13, //53024
-13, -12, -11, -15, -11, -6, -3, 2, 6, 4, -3, -6, -10, -13, -17, -21, //53040
-26, -31, -32, -30, -26, -18, -15, -14, -16, -18, -15, -15, -21, -22, -19, -22, //53056
-31, -34, -38, -42, -40, -35, -28, -18, -13, -17, -19, -20, -18, -13, -15, -18, //53072
-21, -29, -33, -37, -37, -30, -26, -27, -30, -33, -29, -27, -31, -30, -31, -32, //53088
-34, -38, -39, -35, -30, -27, -24, -21, -28, -31, -31, -30, -24, -14, -14, -14, //53104
-11, -6, -4, 0, 4, 4, 2, 0, 1, 3, 1, -3, -9, -10, -5, -5, //53120
-4, -6, -7, -1, 7, 10, 10, 9, 11, 13, 12, 16, 17, 17, 20, 12, //53136
9, 14, 21, 25, 22, 23, 28, 28, 30, 34, 35, 39, 43, 47, 52, 56, //53152
59, 58, 57, 59, 60, 60, 56, 49, 44, 41, 39, 37, 33, 31, 35, 41, //53168
45, 51, 51, 50, 51, 50, 49, 47, 48, 49, 47, 49, 51, 47, 43, 39, //53184
39, 44, 47, 45, 42, 39, 35, 32, 31, 32, 32, 30, 27, 22, 15, 12, //53200
14, 21, 25, 29, 33, 34, 33, 33, 33, 29, 25, 22, 17, 8, 1, 0, //53216
0, 3, 10, 13, 15, 18, 20, 22, 22, 23, 23, 17, 13, 11, 12, 9, //53232
2, 2, 3, 2, 2, 4, 6, 9, 8, 4, 1, -2, -1, -3, -7, -6, //53248
-5, -9, -13, -15, -14, -16, -19, -19, -19, -15, -10, -8, -6, -5, -4, -3, //53264
-2, -4, -10, -17, -21, -24, -26, -24, -22, -18, -18, -17, -14, -10, -7, -4, //53280
-1, -1, -2, -8, -14, -14, -17, -22, -23, -26, -27, -25, -23, -21, -20, -16, //53296
-12, -12, -10, -8, -12, -12, -12, -12, -10, -9, -9, -11, -15, -17, -16, -10, //53312
-11, -13, -13, -12, -6, -4, -8, -11, -15, -18, -22, -28, -29, -27, -27, -25, //53328
-28, -27, -20, -14, -11, -8, -14, -22, -30, -38, -46, -49, -46, -45, -44, -44, //53344
-44, -39, -36, -31, -25, -23, -22, -26, -29, -32, -37, -39, -39, -44, -51, -52, //53360
-53, -53, -50, -48, -49, -48, -48, -50, -55, -57, -55, -54, -54, -51, -51, -52, //53376
-52, -50, -47, -46, -46, -46, -42, -38, -38, -43, -46, -45, -40, -39, -34, -29, //53392
-28, -27, -25, -23, -20, -18, -18, -15, -12, -7, -3, -2, 0, 3, 8, 11, //53408
11, 9, 4, 0, -4, -6, -6, -6, -1, 6, 10, 14, 15, 15, 16, 16, //53424
20, 21, 22, 24, 25, 26, 28, 30, 31, 33, 34, 33, 32, 29, 26, 27, //53440
28, 32, 40, 46, 46, 47, 48, 46, 45, 42, 40, 40, 41, 42, 43, 42, //53456
46, 46, 38, 35, 34, 35, 36, 39, 40, 36, 33, 35, 36, 38, 39, 40, //53472
39, 35, 34, 31, 29, 30, 30, 30, 30, 29, 26, 20, 15, 16, 22, 24, //53488
24, 22, 20, 18, 14, 16, 18, 18, 17, 18, 19, 21, 22, 19, 16, 19, //53504
14, 9, 8, 6, 6, 7, 6, 4, 0, 2, 9, 9, 10, 10, 9, 8, //53520
7, 3, -2, -1, -2, -7, -8, -8, -7, -7, -6, 1, 5, 8, 8, 12, //53536
15, 9, 8, 8, 5, 3, 6, 4, -1, 3, 11, 16, 21, 20, 21, 24, //53552
21, 19, 20, 17, 18, 19, 16, 13, 13, 11, 7, 8, 8, 10, 12, 11, //53568
11, 10, 6, 9, 18, 23, 26, 29, 28, 23, 21, 22, 20, 20, 22, 19, //53584
18, 19, 22, 25, 20, 20, 21, 20, 17, 15, 15, 10, 6, 5, 3, 10, //53600
12, 12, 14, 8, 2, -3, -7, -3, -1, -5, -12, -16, -18, -22, -24, -18, //53616
-13, -10, -9, -10, -9, -9, -4, 1, 0, 0, -1, -8, -11, -13, -14, -17, //53632
-15, -11, -14, -20, -24, -24, -21, -21, -21, -21, -26, -29, -24, -20, -12, -5, //53648
-4, -4, -6, -11, -13, -13, -13, -13, -20, -25, -24, -23, -26, -31, -30, -32, //53664
-35, -35, -33, -32, -30, -29, -27, -23, -26, -24, -25, -28, -27, -23, -26, -32, //53680
-36, -42, -46, -45, -46, -44, -37, -39, -43, -41, -43, -37, -34, -39, -40, -44, //53696
-51, -53, -49, -40, -35, -30, -26, -23, -20, -18, -10, -6, -7, -13, -17, -20, //53712
-27, -30, -33, -34, -34, -38, -41, -32, -25, -22, -18, -17, -20, -24, -32, -42, //53728
-39, -31, -33, -33, -35, -39, -41, -46, -42, -32, -23, -18, -22, -25, -24, -25, //53744
-20, -12, -8, -7, -8, -14, -19, -19, -16, -14, -15, -18, -18, -17, -16, -13, //53760
-10, -7, -3, -11, -16, -14, -14, -18, -18, -18, -20, -24, -33, -37, -27, -22, //53776
-20, -16, -7, -1, 7, 23, 36, 44, 51, 53, 42, 34, 27, 20, 19, 19, //53792
14, 10, 4, -2, -5, 0, 7, 12, 15, 16, 19, 20, 21, 24, 29, 38, //53808
45, 40, 42, 49, 49, 44, 40, 37, 32, 29, 27, 20, 20, 20, 18, 22, //53824
31, 45, 54, 57, 58, 60, 63, 71, 76, 78, 80, 78, 68, 63, 54, 40, //53840
36, 35, 22, 20, 23, 23, 22, 26, 40, 49, 56, 61, 62, 62, 62, 60, //53856
60, 62, 61, 57, 57, 56, 54, 56, 59, 56, 55, 52, 45, 40, 40, 40, //53872
37, 39, 40, 37, 37, 39, 37, 36, 35, 29, 28, 30, 26, 25, 28, 24, //53888
22, 17, 8, 6, 4, 1, 7, 6, 2, 6, 4, 1, 9, 11, 12, 19, //53904
21, 17, 19, 18, 14, 15, 21, 19, 13, 6, -3, -9, -9, -10, -15, -19, //53920
-19, -18, -19, -18, -16, -11, -4, 1, -1, -3, -3, -4, -11, -20, -21, -20, //53936
-16, -15, -14, -7, -4, -7, -6, -2, -6, -5, -5, -13, -23, -32, -38, -41, //53952
-39, -34, -28, -17, -15, -15, -13, -11, -11, -10, -13, -19, -23, -26, -34, -39, //53968
-38, -33, -27, -26, -23, -15, -13, -19, -22, -25, -26, -26, -28, -32, -38, -42, //53984
-43, -41, -37, -37, -40, -37, -35, -35, -35, -35, -34, -33, -35, -40, -40, -35, //54000
-33, -33, -34, -37, -39, -37, -40, -40, -34, -33, -39, -43, -43, -44, -41, -38, //54016
-40, -37, -35, -39, -39, -35, -33, -32, -34, -45, -57, -65, -73, -74, -67, -61, //54032
-59, -55, -50, -45, -42, -40, -34, -30, -34, -38, -43, -48, -50, -52, -57, -59, //54048
-55, -49, -45, -42, -37, -31, -30, -30, -25, -21, -26, -31, -37, -40, -38, -39, //54064
-34, -28, -24, -23, -22, -16, -10, -7, -8, -12, -13, -11, -14, -16, -13, -10, //54080
-2, 3, 7, 10, 13, 15, 15, 16, 19, 23, 26, 27, 28, 30, 31, 29, //54096
21, 18, 17, 17, 20, 23, 27, 30, 30, 29, 32, 40, 49, 48, 45, 41, //54112
34, 28, 28, 30, 33, 35, 38, 45, 52, 56, 59, 63, 66, 70, 70, 69, //54128
68, 67, 61, 56, 52, 50, 47, 41, 34, 34, 33, 33, 35, 36, 37, 39, //54144
41, 47, 53, 52, 47, 47, 49, 43, 32, 29, 29, 27, 27, 29, 34, 35, //54160
34, 31, 29, 27, 24, 25, 23, 18, 18, 21, 23, 24, 27, 28, 23, 15, //54176
14, 13, 13, 14, 11, 8, 6, 3, 4, 4, -2, -5, -2, 2, 4, 5, //54192
8, 10, 9, 10, 13, 16, 17, 19, 17, 11, 9, 9, 12, 16, 17, 14, //54208
13, 14, 14, 13, 14, 17, 15, 9, 8, 1, -4, -5, -4, -1, 5, 8, //54224
5, 4, 7, 12, 13, 15, 16, 16, 16, 15, 14, 13, 13, 15, 20, 20, //54240
23, 27, 26, 24, 28, 28, 28, 29, 28, 28, 26, 18, 15, 17, 15, 9, //54256
7, 4, -1, -4, -3, -3, -2, 0, 5, 7, 6, 12, 11, 3, 0, 2, //54272
0, -5, -14, -20, -20, -22, -23, -17, -10, -10, -10, -10, -12, -10, -11, -16, //54288
-18, -22, -30, -37, -41, -42, -42, -42, -39, -37, -38, -35, -28, -28, -27, -29, //54304
-36, -38, -36, -40, -42, -41, -41, -42, -43, -48, -47, -40, -35, -33, -31, -34, //54320
-39, -40, -38, -41, -46, -49, -50, -50, -57, -63, -60, -58, -60, -53, -38, -39, //54336
-34, -31, -35, -35, -37, -41, -42, -44, -45, -45, -48, -50, -46, -36, -25, -12, //54352
-8, -2, 4, 2, -2, -5, -18, -27, -27, -27, -32, -32, -31, -28, -24, -21, //54368
-25, -24, -22, -22, -23, -27, -29, -30, -32, -34, -35, -29, -25, -23, -23, -20, //54384
-14, -19, -29, -31, -32, -33, -32, -35, -36, -35, -33, -32, -35, -37, -36, -34, //54400
-34, -36, -33, -29, -26, -22, -19, -14, -8, -5, -4, -5, -11, -12, -15, -24, //54416
-30, -30, -28, -26, -22, -16, -12, -3, 4, 2, 2, 0, -2, -1, -12, -20, //54432
-23, -26, -27, -21, -8, 2, 9, 12, 14, 16, 14, 15, 16, 12, 7, 1, //54448
-4, -4, -1, 7, 17, 21, 24, 28, 27, 28, 29, 30, 31, 26, 20, 22, //54464
30, 25, 22, 30, 35, 31, 29, 37, 41, 38, 38, 33, 26, 23, 17, 12, //54480
15, 17, 17, 22, 30, 39, 49, 64, 67, 70, 72, 72, 71, 68, 64, 61, //54496
59, 57, 51, 52, 59, 57, 53, 58, 66, 68, 66, 64, 65, 55, 50, 47, //54512
41, 40, 45, 52, 54, 57, 60, 63, 65, 64, 61, 62, 62, 57, 58, 58, //54528
57, 58, 58, 62, 61, 58, 58, 50, 42, 36, 35, 39, 40, 41, 44, 46, //54544
42, 36, 35, 39, 37, 28, 19, 14, 14, 12, 10, 16, 22, 23, 23, 25, //54560
31, 32, 34, 37, 39, 34, 25, 24, 19, 16, 17, 17, 19, 20, 19, 17, //54576
18, 9, 1, 0, -3, -9, -11, -14, -14, -14, -19, -21, -23, -26, -24, -22, //54592
-22, -21, -18, -16, -14, -14, -16, -22, -29, -32, -34, -36, -37, -35, -35, -35, //54608
-33, -34, -34, -30, -29, -25, -22, -22, -21, -21, -23, -31, -39, -44, -51, -51, //54624
-51, -53, -50, -45, -42, -38, -33, -27, -24, -21, -16, -16, -20, -29, -36, -44, //54640
-51, -53, -53, -52, -49, -43, -40, -35, -29, -26, -26, -24, -26, -32, -40, -45, //54656
-48, -51, -49, -44, -42, -40, -37, -38, -40, -42, -46, -44, -34, -37, -41, -42, //54672
-45, -57, -62, -63, -61, -59, -58, -58, -57, -55, -56, -53, -43, -41, -41, -40, //54688
-39, -41, -44, -44, -46, -49, -54, -54, -51, -53, -51, -44, -41, -39, -38, -38, //54704
-39, -40, -39, -38, -40, -40, -43, -47, -50, -52, -53, -50, -48, -46, -45, -43, //54720
-40, -41, -39, -31, -21, -22, -23, -22, -23, -29, -37, -40, -41, -42, -43, -36, //54736
-31, -27, -22, -15, -11, -8, -5, -3, -1, 1, 2, 0, 1, -3, -7, -7, //54752
-5, -3, -1, 0, 2, 1, 2, 6, 9, 14, 21, 27, 31, 30, 30, 29, //54768
28, 32, 34, 35, 38, 38, 37, 42, 44, 47, 51, 56, 59, 62, 62, 61, //54784
60, 58, 58, 59, 58, 57, 55, 55, 56, 55, 54, 56, 57, 58, 64, 67, //54800
66, 68, 70, 72, 69, 63, 59, 56, 49, 47, 47, 48, 50, 51, 54, 63, //54816
66, 70, 70, 63, 54, 43, 33, 26, 22, 23, 25, 25, 27, 31, 35, 43, //54832
47, 45, 40, 36, 32, 21, 20, 20, 18, 15, 10, 8, 10, 11, 14, 22, //54848
24, 21, 21, 20, 18, 19, 21, 21, 19, 13, 12, 16, 19, 20, 20, 19, //54864
19, 16, 18, 19, 20, 22, 22, 23, 27, 23, 21, 23, 19, 15, 12, 6, //54880
5, 5, 0, 3, 9, 10, 10, 15, 24, 24, 24, 23, 24, 29, 28, 28, //54896
32, 33, 32, 36, 38, 36, 35, 33, 29, 31, 29, 24, 26, 28, 23, 24, //54912
25, 25, 24, 25, 26, 22, 25, 27, 23, 21, 20, 13, 3, -3, -4, -3, //54928
-1, 1, 0, 1, 4, 6, 5, 2, 3, 4, -1, -8, -14, -17, -16, -21, //54944
-27, -23, -24, -24, -22, -23, -25, -24, -21, -25, -28, -26, -30, -31, -31, -35, //54960
-40, -37, -33, -37, -36, -34, -38, -39, -38, -40, -40, -38, -37, -40, -44, -48, //54976
-49, -50, -55, -55, -50, -48, -49, -48, -46, -45, -47, -46, -42, -45, -47, -47, //54992
-52, -52, -53, -60, -60, -67, -73, -71, -70, -63, -57, -54, -48, -40, -37, -36, //55008
-32, -31, -33, -37, -40, -42, -51, -55, -49, -43, -38, -42, -42, -33, -35, -44, //55024
-37, -38, -44, -47, -54, -55, -55, -54, -45, -38, -38, -40, -38, -36, -37, -34, //55040
-33, -39, -43, -51, -55, -55, -60, -59, -51, -46, -44, -40, -39, -40, -34, -29, //55056
-29, -30, -35, -39, -40, -39, -38, -34, -26, -19, -17, -17, -16, -20, -20, -18, //55072
-18, -18, -17, -19, -20, -19, -15, -13, -14, -16, -17, -17, -13, -11, -8, -4, //55088
-4, -6, -7, -2, 7, 11, 15, 15, 16, 15, 13, 15, 17, 16, 14, 13, //55104
12, 12, 14, 19, 25, 29, 36, 42, 43, 44, 45, 45, 42, 42, 42, 39, //55120
39, 41, 42, 45, 46, 53, 57, 52, 49, 48, 45, 40, 34, 29, 29, 31, //55136
35, 45, 51, 56, 64, 68, 65, 65, 64, 60, 58, 54, 51, 53, 54, 55, //55152
57, 61, 66, 67, 69, 70, 70, 71, 68, 69, 69, 65, 67, 70, 67, 70, //55168
72, 73, 72, 75, 79, 79, 77, 72, 63, 64, 66, 67, 70, 68, 63, 67, //55184
67, 62, 62, 63, 61, 61, 58, 56, 55, 49, 51, 54, 54, 53, 53, 48, //55200
45, 40, 35, 30, 26, 23, 22, 24, 26, 26, 32, 35, 35, 35, 34, 33, //55216
34, 33, 29, 24, 17, 11, 8, 7, 10, 18, 20, 17, 16, 12, 10, 11, //55232
10, 8, 6, -3, -12, -16, -16, -18, -15, -10, -4, 1, 0, 0, 0, -2, //55248
-5, -5, -2, -5, -11, -10, -8, -10, -12, -12, -12, -12, -13, -13, -11, -11, //55264
-9, -6, -5, -6, -8, -9, -8, -7, -8, -7, -10, -19, -25, -28, -35, -36, //55280
-34, -32, -33, -35, -32, -31, -28, -24, -23, -22, -24, -30, -35, -40, -45, -46, //55296
-46, -44, -43, -42, -40, -42, -40, -37, -39, -40, -38, -40, -45, -50, -54, -59, //55312
-61, -60, -62, -61, -59, -55, -45, -42, -44, -50, -57, -64, -68, -67, -67, -70, //55328
-73, -80, -84, -85, -84, -80, -75, -73, -74, -74, -71, -70, -71, -70, -68, -66, //55344
-68, -70, -70, -70, -67, -64, -63, -64, -69, -68, -67, -71, -72, -69, -72, -75, //55360
-73, -68, -64, -58, -56, -55, -55, -52, -51, -52, -51, -51, -50, -50, -50, -48, //55376
-41, -32, -25, -22, -22, -23, -22, -23, -23, -20, -20, -22, -22, -21, -17, -7, //55392
-2, 3, 5, 2, -2, -4, -8, -8, -5, -4, -3, 5, 5, 4, 3, 0, //55408
0, 2, 4, 8, 11, 13, 15, 16, 22, 31, 37, 42, 44, 44, 43, 42, //55424
39, 38, 38, 36, 36, 37, 42, 46, 43, 43, 44, 44, 45, 46, 44, 44, //55440
45, 47, 51, 48, 43, 42, 44, 45, 48, 54, 61, 63, 62, 65, 68, 71, //55456
71, 71, 70, 64, 59, 52, 45, 41, 39, 43, 47, 47, 44, 40, 36, 38, //55472
44, 45, 40, 40, 37, 32, 30, 31, 35, 35, 30, 31, 30, 32, 36, 30, //55488
27, 24, 21, 19, 14, 12, 12, 10, 12, 15, 18, 24, 28, 30, 27, 27, //55504
32, 33, 34, 30, 27, 27, 20, 18, 18, 17, 17, 16, 17, 22, 23, 25, //55520
29, 30, 32, 36, 36, 33, 31, 29, 22, 18, 18, 17, 17, 24, 30, 35, //55536
39, 44, 46, 45, 44, 43, 42, 40, 34, 32, 27, 24, 23, 21, 28, 34, //55552
36, 39, 40, 37, 37, 30, 28, 30, 27, 21, 19, 20, 19, 14, 11, 10, //55568
9, 11, 15, 17, 14, 10, 4, 1, 1, -1, -4, -8, -15, -19, -23, -20, //55584
-15, -17, -17, -14, -14, -10, -8, -7, -5, -6, -12, -17, -20, -21, -24, -31, //55600
-36, -36, -35, -34, -32, -31, -34, -34, -32, -26, -20, -19, -20, -25, -32, -34, //55616
-34, -28, -29, -35, -38, -38, -43, -43, -45, -48, -48, -51, -57, -57, -60, -64, //55632
-67, -72, -74, -74, -74, -66, -58, -58, -60, -60, -61, -60, -62, -60, -54, -56, //55648
-58, -58, -58, -54, -50, -48, -44, -41, -39, -39, -45, -51, -58, -68, -76, -77, //55664
-81, -83, -84, -83, -79, -75, -65, -54, -50, -48, -49, -51, -54, -59, -61, -62, //55680
-65, -64, -65, -62, -58, -55, -52, -51, -49, -48, -51, -55, -56, -58, -59, -57, //55696
-51, -44, -45, -42, -41, -42, -40, -41, -36, -32, -33, -32, -31, -31, -27, -28, //55712
-24, -16, -16, -17, -21, -25, -30, -36, -36, -34, -33, -36, -39, -38, -39, -40, //55728
-36, -30, -18, -11, -1, 9, 13, 12, 5, -3, -7, -12, -18, -21, -27, -31, //55744
-32, -30, -21, -5, 4, 14, 20, 22, 21, 20, 21, 19, 17, 18, 21, 29, //55760
33, 35, 39, 38, 34, 33, 30, 29, 28, 22, 18, 19, 21, 24, 28, 34, //55776
39, 38, 41, 47, 52, 57, 59, 60, 60, 58, 54, 53, 49, 41, 35, 29, //55792
25, 25, 25, 28, 36, 45, 60, 73, 83, 90, 90, 85, 83, 78, 71, 70, //55808
70, 66, 59, 55, 55, 55, 53, 57, 60, 62, 63, 61, 59, 56, 52, 49, //55824
49, 52, 54, 53, 53, 51, 52, 51, 54, 63, 67, 68, 70, 69, 63, 52, //55840
42, 39, 33, 26, 23, 21, 19, 19, 18, 24, 29, 34, 39, 42, 45, 46, //55856
44, 44, 45, 44, 36, 33, 34, 30, 23, 18, 12, 7, 2, 0, -1, -1, //55872
-1, -2, 1, 4, 7, 12, 13, 14, 14, 10, 10, 12, 9, 6, 0, -4, //55888
-6, -13, -12, -9, -7, -7, -6, -3, -3, -8, -14, -18, -27, -30, -31, -32, //55904
-32, -32, -34, -33, -28, -21, -15, -9, -8, -11, -20, -27, -30, -39, -44, -44, //55920
-42, -40, -41, -40, -37, -40, -42, -42, -41, -39, -38, -40, -45, -51, -57, -60, //55936
-59, -56, -55, -55, -62, -63, -64, -66, -63, -57, -54, -51, -52, -48, -45, -49, //55952
-49, -50, -52, -52, -53, -55, -58, -63, -67, -72, -76, -76, -76, -77, -74, -71, //55968
-67, -62, -57, -53, -52, -53, -53, -60, -70, -76, -80, -86, -90, -91, -88, -82, //55984
-76, -65, -55, -47, -40, -36, -38, -45, -50, -56, -59, -60, -59, -59, -60, -55, //56000
-50, -52, -47, -41, -39, -38, -40, -40, -40, -44, -47, -47, -44, -35, -31, -28, //56016
-24, -23, -25, -24, -22, -18, -16, -14, -8, -5, -6, -10, -10, -10, -16, -15, //56032
-12, -11, -8, -10, -7, -1, 0, 6, 13, 19, 23, 22, 20, 20, 16, 12, //56048
10, 10, 12, 16, 22, 33, 39, 40, 42, 49, 53, 52, 51, 48, 43, 36, //56064
31, 33, 35, 37, 38, 37, 41, 48, 52, 57, 61, 65, 65, 64, 64, 66, //56080
66, 63, 59, 55, 51, 46, 44, 44, 41, 43, 45, 48, 56, 58, 60, 59, //56096
58, 56, 50, 50, 49, 46, 40, 33, 29, 32, 36, 42, 46, 52, 55, 54, //56112
55, 54, 51, 54, 55, 51, 49, 48, 48, 44, 40, 38, 37, 36, 37, 39, //56128
39, 41, 42, 42, 43, 42, 42, 47, 51, 52, 49, 46, 45, 45, 44, 45, //56144
46, 46, 43, 37, 33, 30, 28, 29, 33, 34, 38, 42, 46, 49, 48, 47, //56160
41, 35, 34, 29, 25, 27, 24, 21, 23, 26, 31, 40, 42, 44, 45, 42, //56176
41, 39, 38, 40, 37, 34, 36, 36, 38, 40, 40, 40, 39, 44, 46, 42, //56192
38, 38, 38, 38, 38, 35, 30, 28, 21, 16, 17, 18, 18, 10, 8, 7, //56208
6, 7, 8, 3, 0, 1, 0, -4, -5, -4, -8, -8, -7, -5, -2, -1, //56224
-4, -9, -9, -6, -7, -5, -4, -4, -4, -7, -9, -11, -10, -7, -11, -20, //56240
-19, -19, -20, -20, -21, -21, -17, -13, -13, -10, -5, 1, 2, -2, -7, -10, //56256
-15, -18, -29, -39, -41, -42, -46, -47, -43, -39, -37, -36, -30, -31, -32, -27, //56272
-26, -34, -35, -39, -44, -48, -54, -58, -58, -52, -46, -45, -39, -29, -32, -37, //56288
-39, -38, -44, -52, -59, -69, -77, -80, -76, -72, -66, -58, -51, -41, -40, -39, //56304
-33, -33, -38, -40, -48, -55, -56, -58, -61, -60, -62, -62, -59, -58, -61, -65, //56320
-67, -68, -68, -68, -63, -58, -54, -51, -48, -42, -41, -44, -47, -51, -52, -52, //56336
-52, -56, -59, -55, -48, -39, -37, -37, -35, -38, -40, -39, -45, -50, -53, -56, //56352
-53, -49, -43, -39, -32, -23, -19, -18, -19, -20, -20, -23, -29, -32, -38, -40, //56368
-34, -24, -20, -13, -10, -12, -10, -6, -5, 0, 3, 3, 0, -6, -4, -2, //56384
1, 7, 13, 16, 20, 23, 23, 23, 17, 12, 7, 1, -1, 2, 6, 6, //56400
4, 8, 19, 26, 35, 42, 43, 46, 46, 45, 46, 49, 51, 46, 41, 40, //56416
39, 40, 39, 41, 45, 50, 59, 64, 64, 61, 53, 50, 45, 42, 44, 49, //56432
62, 68, 73, 84, 94, 100, 97, 93, 90, 89, 86, 83, 79, 75, 75, 76, //56448
76, 80, 85, 88, 86, 81, 76, 76, 76, 76, 72, 71, 71, 72, 72, 69, //56464
69, 68, 62, 60, 61, 60, 57, 53, 56, 59, 58, 57, 55, 55, 57, 60, //56480
63, 64, 62, 58, 53, 49, 46, 42, 40, 42, 43, 43, 42, 40, 34, 32, //56496
32, 29, 28, 30, 28, 26, 25, 21, 16, 10, 6, 3, 4, 4, 4, 5, //56512
7, 10, 7, 1, -5, -11, -12, -12, -15, -19, -17, -19, -24, -28, -24, -20, //56528
-18, -15, -11, -11, -11, -12, -16, -20, -23, -24, -24, -21, -19, -18, -16, -15, //56544
-16, -19, -19, -13, -4, 0, 5, 7, 4, -1, -9, -17, -25, -32, -39, -42, //56560
-40, -41, -38, -30, -26, -28, -28, -28, -32, -38, -44, -45, -47, -53, -54, -58, //56576
-58, -53, -49, -42, -41, -37, -31, -30, -24, -21, -23, -28, -34, -42, -58, -65, //56592
-67, -66, -68, -68, -61, -60, -60, -56, -53, -52, -53, -55, -59, -65, -69, -79, //56608
-83, -81, -82, -82, -80, -80, -79, -80, -80, -77, -75, -75, -80, -85, -85, -84, //56624
-80, -79, -79, -80, -79, -84, -88, -88, -88, -87, -85, -86, -83, -79, -75, -69, //56640
-67, -61, -56, -55, -52, -50, -54, -61, -65, -65, -68, -69, -62, -59, -53, -47, //56656
-41, -31, -22, -18, -16, -12, -5, -5, -8, -13, -20, -25, -25, -20, -14, -6, //56672
-2, 0, 3, 7, 12, 16, 17, 20, 18, 16, 16, 15, 14, 16, 16, 19, //56688
23, 29, 33, 37, 44, 47, 49, 48, 46, 45, 44, 47, 48, 47, 49, 52, //56704
55, 55, 51, 51, 53, 54, 54, 53, 51, 49, 50, 51, 52, 55, 59, 62, //56720
61, 60, 57, 52, 50, 47, 43, 39, 37, 39, 42, 44, 50, 57, 64, 63, //56736
57, 49, 41, 33, 27, 22, 18, 14, 15, 22, 27, 33, 42, 43, 46, 47, //56752
45, 45, 50, 48, 44, 40, 35, 29, 26, 24, 24, 27, 32, 31, 35, 38, //56768
36, 34, 34, 33, 34, 34, 32, 29, 27, 27, 25, 24, 24, 22, 23, 24, //56784
23, 22, 19, 20, 26, 30, 38, 46, 45, 46, 50, 42, 36, 36, 34, 29, //56800
28, 27, 26, 29, 30, 31, 32, 32, 28, 26, 31, 34, 34, 33, 35, 37, //56816
34, 31, 30, 31, 30, 28, 21, 15, 17, 16, 9, 6, 10, 10, 8, 12, //56832
17, 16, 17, 18, 22, 25, 21, 19, 20, 18, 14, 9, -1, -1, 0, -2, //56848
-4, 0, 3, 4, 6, 9, 13, 11, 0, -2, -6, -7, -4, -3, -2, -4, //56864
-5, -6, -8, -5, -6, -7, -3, -2, -5, -11, -15, -22, -31, -36, -40, -41, //56880
-43, -48, -52, -53, -54, -54, -50, -46, -44, -37, -37, -41, -47, -57, -61, -64, //56896
-67, -62, -61, -63, -64, -64, -63, -61, -57, -51, -54, -55, -51, -50, -52, -56, //56912
-62, -68, -72, -76, -78, -78, -80, -76, -72, -68, -61, -62, -62, -60, -64, -69, //56928
-74, -80, -82, -84, -83, -86, -86, -77, -78, -79, -78, -75, -65, -62, -58, -57, //56944
-64, -69, -67, -63, -59, -53, -46, -46, -50, -52, -46, -36, -34, -34, -33, -32, //56960
-33, -39, -39, -37, -44, -47, -49, -53, -54, -52, -49, -51, -47, -37, -32, -28, //56976
-24, -23, -23, -28, -26, -28, -31, -27, -24, -25, -23, -22, -19, -20, -22, -11, //56992
-3, -5, -9, -4, 1, -7, -6, -4, -5, -5, -4, -9, -9, -5, -5, -5, //57008
-1, 6, 13, 12, 10, 13, 13, 13, 13, 14, 18, 21, 25, 26, 31, 38, //57024
40, 39, 39, 42, 48, 46, 38, 30, 28, 26, 22, 19, 23, 29, 31, 28, //57040
30, 35, 41, 44, 45, 42, 40, 45, 55, 56, 61, 65, 64, 66, 65, 67, //57056
71, 74, 78, 75, 74, 71, 68, 71, 74, 81, 83, 77, 75, 75, 69, 70, //57072
71, 74, 76, 76, 78, 77, 77, 77, 78, 85, 86, 84, 85, 82, 79, 73, //57088
69, 70, 68, 64, 68, 74, 73, 76, 80, 82, 84, 85, 80, 74, 73, 69, //57104
57, 55, 57, 58, 59, 61, 70, 73, 71, 69, 66, 60, 55, 49, 43, 39, //57120
33, 28, 28, 29, 31, 33, 38, 42, 38, 35, 34, 33, 31, 30, 25, 20, //57136
15, 7, 1, -2, -8, -13, -10, -6, -9, -7, -3, 0, 6, 9, 5, 3, //57152
0, -4, -10, -16, -11, -10, -14, -13, -10, -7, -4, 1, 4, 2, -1, -8, //57168
-11, -14, -21, -25, -27, -33, -39, -40, -38, -37, -35, -27, -23, -25, -27, -25, //57184
-25, -27, -28, -30, -30, -27, -33, -37, -35, -37, -40, -39, -42, -45, -44, -41, //57200
-37, -35, -32, -30, -29, -30, -38, -44, -45, -48, -53, -57, -60, -60, -62, -64, //57216
-61, -55, -53, -52, -51, -51, -47, -46, -50, -54, -60, -65, -68, -68, -71, -69, //57232
-64, -61, -60, -58, -56, -53, -50, -53, -58, -59, -62, -63, -62, -64, -68, -70, //57248
-70, -72, -74, -69, -65, -65, -67, -70, -71, -73, -75, -72, -68, -67, -65, -62, //57264
-60, -58, -60, -62, -57, -53, -54, -52, -50, -52, -58, -56, -53, -55, -55, -53, //57280
-52, -51, -52, -53, -52, -53, -52, -50, -46, -37, -29, -27, -25, -22, -21, -22, //57296
-22, -15, -11, -13, -14, -13, -7, -3, -1, 4, 9, 11, 15, 14, 11, 16, //57312
24, 26, 30, 32, 31, 32, 35, 38, 39, 43, 45, 40, 37, 39, 38, 38, //57328
36, 36, 34, 33, 34, 32, 30, 34, 34, 36, 39, 39, 41, 44, 40, 36, //57344
31, 25, 23, 21, 24, 28, 31, 32, 32, 30, 29, 30, 30, 29, 31, 32, //57360
32, 37, 41, 42, 46, 49, 52, 54, 55, 54, 50, 51, 50, 47, 45, 44, //57376
41, 33, 30, 33, 34, 38, 41, 41, 41, 39, 39, 45, 42, 40, 40, 32, //57392
24, 23, 25, 25, 26, 27, 32, 33, 33, 35, 38, 42, 52, 55, 54, 52, //57408
49, 45, 44, 47, 48, 47, 49, 43, 39, 42, 45, 50, 55, 54, 51, 45, //57424
41, 40, 37, 31, 28, 22, 19, 19, 23, 24, 26, 33, 36, 37, 42, 41, //57440
43, 45, 38, 36, 38, 31, 24, 17, 12, 8, 10, 14, 16, 18, 24, 26, //57456
28, 31, 34, 33, 26, 23, 18, 9, 3, 0, -5, -5, -3, 2, 6, 8, //57472
5, 5, 9, 11, 10, 10, 11, 7, 2, 1, 0, -16, -24, -27, -30, -29, //57488
-26, -28, -29, -30, -29, -23, -13, -8, -9, -16, -24, -32, -42, -42, -37, -37, //57504
-42, -44, -48, -48, -42, -41, -44, -44, -46, -50, -55, -62, -69, -72, -78, -83, //57520
-86, -89, -88, -79, -69, -60, -59, -60, -58, -66, -67, -60, -57, -61, -62, -66, //57536
-73, -74, -69, -64, -61, -55, -52, -54, -58, -68, -73, -77, -78, -76, -77, -76, //57552
-75, -75, -73, -73, -72, -61, -59, -62, -63, -60, -54, -53, -45, -35, -30, -38, //57568
-47, -44, -44, -45, -41, -35, -38, -46, -45, -43, -49, -51, -45, -42, -39, -33, //57584
-26, -21, -11, 3, 8, 8, 7, -5, -15, -24, -32, -34, -39, -42, -31, -24, //57600
-27, -24, -9, -2, 2, 4, 7, 6, 3, 8, 16, 19, 17, 31, 38, 37, //57616
33, 29, 23, 11, 7, 2, -2, -3, -5, -4, 0, 7, 19, 28, 27, 30, //57632
34, 36, 39, 45, 48, 50, 52, 49, 43, 32, 28, 22, 15, 9, 8, 14, //57648
16, 19, 26, 33, 40, 48, 51, 58, 63, 64, 64, 60, 58, 55, 52, 54, //57664
53, 53, 53, 49, 50, 56, 57, 55, 53, 51, 51, 54, 56, 60, 62, 65, //57680
69, 73, 75, 76, 75, 76, 77, 83, 87, 89, 84, 74, 70, 63, 56, 56, //57696
58, 57, 62, 66, 63, 62, 65, 68, 73, 77, 78, 76, 76, 81, 78, 73, //57712
69, 69, 70, 68, 67, 66, 67, 68, 66, 65, 62, 58, 54, 49, 50, 51, //57728
49, 48, 48, 48, 43, 42, 42, 36, 31, 30, 26, 29, 34, 38, 39, 36, //57744
39, 41, 36, 33, 35, 28, 20, 15, 6, -3, -7, -12, -11, -5, 2, 6, //57760
11, 16, 19, 21, 21, 21, 23, 20, 13, 1, -7, -10, -12, -10, -9, -11, //57776
-11, -14, -17, -17, -15, -14, -14, -17, -22, -27, -32, -37, -39, -36, -34, -36, //57792
-36, -36, -32, -29, -34, -36, -33, -35, -35, -32, -36, -42, -44, -47, -48, -45, //57808
-47, -49, -46, -47, -46, -43, -47, -52, -52, -50, -54, -57, -57, -56, -56, -55, //57824
-53, -53, -53, -52, -66, -77, -81, -83, -86, -88, -79, -73, -71, -69, -68, -63, //57840
-59, -55, -56, -62, -67, -77, -85, -91, -96, -95, -92, -84, -80, -81, -77, -68, //57856
-64, -59, -53, -47, -45, -48, -52, -55, -57, -58, -59, -59, -55, -57, -53, -46, //57872
-42, -29, -24, -26, -26, -29, -37, -40, -44, -49, -52, -49, -47, -46, -36, -28, //57888
-24, -18, -13, -10, -11, -13, -18, -23, -19, -16, -15, -17, -21, -22, -21, -17, //57904
-11, -5, -3, -1, 1, 5, 11, 17, 21, 21, 16, 10, 2, -3, -3, -2, //57920
1, 4, 7, 15, 22, 27, 33, 36, 39, 37, 34, 34, 28, 26, 23, 18, //57936
17, 16, 15, 15, 15, 19, 19, 16, 14, 16, 21, 23, 24, 27, 30, 28, //57952
31, 31, 27, 24, 20, 18, 25, 25, 26, 29, 33, 33, 33, 34, 35, 39, //57968
44, 44, 47, 52, 59, 66, 68, 63, 65, 69, 66, 61, 58, 55, 56, 53, //57984
52, 54, 57, 54, 47, 44, 48, 50, 45, 44, 38, 35, 40, 39, 39, 43, //58000
42, 47, 53, 45, 50, 57, 52, 47, 50, 59, 61, 60, 59, 58, 61, 61, //58016
58, 61, 62, 57, 48, 43, 40, 40, 41, 39, 35, 36, 38, 34, 28, 28, //58032
24, 21, 24, 24, 21, 21, 21, 19, 21, 25, 26, 27, 28, 30, 32, 31, //58048
32, 32, 31, 28, 24, 21, 16, 8, 6, 11, 10, 5, 7, 6, 8, 15, //58064
17, 8, 13, 19, 15, 10, 11, 12, 14, 12, 8, 11, 16, 17, 21, 23, //58080
19, 17, 12, 7, 7, 7, -3, -14, -19, -28, -31, -23, -20, -26, -27, -25, //58096
-21, -20, -21, -15, -13, -20, -29, -35, -34, -27, -28, -25, -22, -26, -30, -31, //58112
-36, -39, -39, -37, -42, -46, -50, -55, -55, -51, -48, -47, -49, -51, -53, -58, //58128
-64, -64, -64, -67, -70, -69, -68, -71, -72, -76, -83, -80, -78, -81, -79, -79, //58144
-81, -80, -78, -76, -75, -70, -63, -57, -52, -52, -54, -54, -53, -57, -63, -65, //58160
-65, -69, -64, -59, -58, -54, -50, -47, -44, -43, -41, -39, -45, -57, -63, -74, //58176
-79, -73, -67, -65, -58, -51, -46, -41, -39, -40, -39, -45, -55, -61, -65, -62, //58192
-57, -52, -44, -38, -39, -40, -35, -31, -30, -25, -26, -29, -31, -34, -33, -26, //58208
-25, -23, -18, -12, -6, -7, -5, -4, -6, -3, -5, -5, -3, -4, -4, -1, //58224
4, 7, 12, 18, 24, 29, 31, 30, 31, 32, 32, 37, 37, 33, 31, 26, //58240
22, 21, 16, 15, 20, 22, 22, 23, 25, 24, 18, 13, 8, 13, 21, 25, //58256
35, 47, 54, 60, 62, 64, 69, 68, 62, 62, 64, 61, 55, 62, 67, 67, //58272
71, 73, 74, 78, 73, 65, 58, 52, 52, 51, 56, 63, 67, 70, 69, 68, //58288
76, 78, 71, 67, 62, 58, 55, 52, 46, 42, 48, 51, 54, 61, 64, 65, //58304
67, 66, 66, 65, 62, 57, 50, 46, 49, 52, 58, 60, 58, 58, 60, 58, //58320
53, 55, 56, 53, 48, 41, 33, 27, 23, 21, 21, 21, 25, 25, 23, 26, //58336
28, 22, 21, 18, 14, 11, 9, 10, 12, 11, 6, 4, 1, -5, -5, -5, //58352
-6, -3, -5, -9, -8, -4, 0, 9, 11, 9, 4, 0, -2, -2, 1, 0, //58368
0, 1, -4, -7, -5, -3, 1, 5, 14, 16, 16, 13, 3, -4, -13, -19, //58384
-18, -18, -18, -12, -13, -16, -14, -14, -20, -20, -20, -25, -31, -32, -35, -44, //58400
-43, -40, -40, -40, -39, -38, -35, -31, -26, -25, -26, -28, -36, -43, -49, -57, //58416
-55, -49, -46, -42, -39, -39, -38, -39, -37, -36, -36, -40, -48, -57, -66, -72, //58432
-73, -75, -71, -65, -64, -65, -65, -63, -61, -60, -61, -61, -69, -76, -81, -84, //58448
-84, -79, -74, -73, -67, -64, -67, -67, -64, -60, -56, -53, -53, -51, -47, -49, //58464
-51, -50, -49, -43, -39, -38, -36, -37, -38, -42, -44, -46, -46, -44, -45, -45, //58480
-43, -44, -44, -43, -44, -42, -38, -34, -32, -32, -32, -34, -34, -32, -34, -31, //58496
-26, -29, -34, -30, -23, -15, -11, -13, -11, -7, -15, -17, -18, -17, -12, -8, //58512
-10, -9, -4, -1, 1, 5, 11, 14, 15, 13, 12, 14, 14, 16, 18, 20, //58528
24, 33, 32, 26, 20, 15, 16, 16, 15, 15, 14, 15, 20, 26, 32, 35, //58544
35, 34, 29, 26, 26, 26, 24, 23, 20, 16, 20, 23, 25, 37, 40, 44, //58560
46, 46, 45, 45, 45, 43, 44, 49, 51, 50, 51, 50, 51, 54, 62, 64, //58576
65, 64, 59, 57, 56, 52, 51, 49, 45, 41, 34, 35, 39, 45, 47, 44, //58592
44, 43, 45, 51, 53, 50, 50, 51, 49, 49, 51, 46, 45, 48, 48, 47, //58608
44, 40, 39, 43, 43, 41, 41, 40, 41, 41, 38, 38, 39, 40, 42, 37, //58624
30, 29, 27, 28, 28, 24, 20, 16, 16, 18, 20, 22, 20, 19, 17, 19, //58640
22, 19, 19, 18, 14, 17, 21, 20, 14, 10, 7, 9, 11, 9, 12, 15, //58656
13, 15, 12, 4, 11, 14, 15, 21, 21, 17, 18, 12, 1, -4, -6, -7, //58672
-2, -3, -10, -7, 2, 5, 6, 1, -5, -7, -5, -8, -13, -15, -21, -22, //58688
-18, -22, -21, -17, -18, -11, -8, -14, -18, -22, -28, -29, -27, -29, -29, -29, //58704
-34, -33, -36, -39, -36, -36, -33, -30, -31, -30, -28, -29, -31, -36, -45, -53, //58720
-55, -56, -57, -57, -62, -69, -72, -77, -77, -74, -72, -75, -82, -88, -86, -80, //58736
-78, -82, -89, -93, -94, -91, -86, -78, -70, -68, -66, -69, -69, -66, -69, -71, //58752
-71, -68, -61, -54, -57, -60, -60, -57, -51, -49, -54, -63, -68, -69, -68, -65, //58768
-59, -57, -58, -56, -60, -58, -50, -48, -46, -44, -48, -50, -48, -44, -38, -31, //58784
-29, -31, -34, -38, -40, -35, -33, -29, -27, -28, -27, -25, -25, -21, -21, -27, //58800
-31, -35, -37, -32, -30, -30, -20, -16, -13, -9, -8, -9, -3, 1, 6, 11, //58816
19, 28, 32, 36, 34, 32, 38, 41, 39, 37, 30, 27, 29, 27, 22, 17, //58832
11, 10, 15, 18, 21, 26, 25, 23, 19, 19, 24, 30, 38, 43, 41, 43, //58848
44, 45, 49, 49, 51, 52, 50, 51, 48, 46, 48, 50, 53, 58, 58, 56, //58864
53, 48, 46, 47, 45, 45, 45, 45, 44, 45, 50, 58, 65, 72, 71, 61, //58880
52, 44, 40, 41, 36, 28, 28, 26, 30, 38, 41, 51, 59, 62, 63, 61, //58896
53, 39, 33, 30, 30, 30, 28, 26, 28, 37, 45, 50, 54, 50, 47, 48, //58912
46, 44, 41, 39, 41, 42, 42, 40, 42, 44, 45, 43, 39, 35, 33, 29, //58928
25, 21, 21, 28, 29, 27, 22, 17, 15, 15, 14, 9, 7, 8, 13, 17, //58944
16, 11, 8, 8, 14, 19, 19, 15, 12, 7, 5, -1, -7, -10, -13, -9, //58960
-5, -6, -9, -10, -14, -12, -10, -13, -11, -5, -2, 2, 4, 1, 0, 3, //58976
-1, -7, -13, -18, -23, -22, -21, -21, -19, -20, -20, -19, -22, -22, -23, -27, //58992
-32, -40, -43, -44, -43, -42, -38, -34, -32, -33, -36, -41, -52, -59, -64, -66, //59008
-63, -60, -60, -58, -61, -61, -52, -45, -45, -47, -55, -61, -59, -59, -60, -56, //59024
-56, -56, -55, -60, -61, -56, -51, -47, -48, -53, -57, -65, -70, -68, -71, -68, //59040
-65, -64, -62, -61, -59, -56, -53, -48, -48, -55, -61, -65, -65, -62, -61, -59, //59056
-55, -52, -45, -38, -37, -35, -31, -33, -35, -36, -41, -41, -38, -36, -33, -31, //59072
-32, -32, -30, -29, -29, -26, -21, -24, -28, -31, -31, -23, -17, -13, -15, -17, //59088
-16, -15, -12, -6, -3, 0, 3, -1, -3, -2, -3, -2, 2, -1, -2, 0, //59104
-3, -6, 4, 5, 5, 7, 5, 3, 8, 10, 11, 15, 16, 15, 19, 22, //59120
22, 23, 20, 15, 16, 14, 9, 5, 5, 5, 6, 8, 8, 12, 17, 20, //59136
24, 27, 27, 25, 21, 21, 21, 22, 21, 24, 29, 30, 33, 31, 26, 29, //59152
27, 28, 34, 35, 36, 43, 46, 52, 59, 65, 66, 63, 59, 59, 61, 60, //59168
57, 51, 44, 46, 50, 54, 60, 62, 64, 63, 64, 71, 73, 77, 79, 77, //59184
75, 74, 76, 81, 81, 77, 76, 79, 80, 77, 75, 72, 72, 72, 72, 71, //59200
68, 68, 68, 65, 64, 61, 60, 60, 57, 59, 58, 55, 54, 52, 51, 51, //59216
52, 47, 40, 41, 37, 31, 26, 22, 19, 20, 24, 26, 31, 40, 41, 44, //59232
41, 30, 26, 24, 19, 22, 20, 17, 19, 15, 10, 7, 6, 7, 11, 19, //59248
17, 17, 15, 5, -3, -9, -14, -18, -19, -22, -21, -16, -13, -10, -9, -11, //59264
-15, -17, -18, -19, -20, -21, -24, -28, -37, -42, -42, -42, -39, -37, -38, -38, //59280
-40, -44, -43, -47, -50, -50, -52, -55, -54, -52, -45, -39, -36, -41, -46, -47, //59296
-52, -59, -56, -57, -56, -60, -71, -75, -70, -66, -62, -54, -44, -46, -55, -64, //59312
-74, -77, -76, -77, -76, -74, -73, -75, -79, -79, -75, -69, -66, -67, -65, -68, //59328
-73, -71, -71, -70, -59, -62, -66, -67, -69, -68, -62, -58, -56, -60, -69, -80, //59344
-80, -78, -77, -75, -68, -61, -50, -37, -30, -21, -10, -13, -16, -21, -29, -35, //59360
-47, -53, -56, -56, -54, -51, -41, -38, -34, -29, -28, -24, -23, -26, -27, -32, //59376
-32, -19, -13, -6, 0, 6, 7, 2, 1, -1, -4, -5, -11, -14, -17, -19, //59392
-20, -17, 0, 11, 19, 23, 30, 38, 43, 48, 53, 55, 56, 47, 42, 37, //59408
30, 21, 13, 7, 5, 3, 1, -1, 1, 12, 21, 32, 38, 42, 48, 46, //59424
42, 41, 43, 44, 46, 44, 37, 36, 39, 37, 34, 37, 40, 41, 41, 41, //59440
44, 47, 47, 46, 47, 47, 53, 56, 57, 63, 67, 64, 62, 60, 62, 67, //59456
74, 70, 64, 60, 52, 41, 40, 41, 44, 47, 48, 49, 52, 58, 62, 65, //59472
70, 74, 72, 70, 70, 68, 68, 75, 74, 71, 66, 62, 62, 61, 58, 53, //59488
46, 41, 37, 39, 43, 47, 53, 56, 54, 53, 54, 55, 55, 57, 49, 40, //59504
34, 29, 31, 39, 40, 43, 45, 46, 43, 40, 45, 45, 40, 33, 22, 6, //59520
0, -3, -3, -1, 5, 8, 13, 15, 15, 18, 21, 20, 15, 10, 6, 2, //59536
-5, -6, -4, -2, -2, -2, 2, 4, 5, 5, 1, 4, 8, 5, 0, -5, //59552
-10, -14, -16, -16, -13, -9, -12, -11, -9, -7, -7, -10, -12, -16, -23, -27, //59568
-30, -32, -33, -33, -31, -30, -27, -29, -32, -31, -29, -29, -33, -46, -49, -50, //59584
-49, -46, -35, -27, -25, -27, -28, -26, -22, -22, -28, -41, -54, -63, -76, -77, //59600
-72, -65, -58, -52, -50, -51, -51, -50, -50, -53, -59, -69, -77, -82, -87, -89, //59616
-88, -87, -81, -72, -67, -63, -56, -56, -57, -54, -50, -49, -51, -57, -60, -61, //59632
-64, -61, -57, -53, -52, -49, -46, -45, -42, -37, -36, -35, -35, -35, -35, -37, //59648
-40, -41, -39, -36, -32, -28, -27, -26, -21, -19, -18, -15, -19, -24, -24, -22, //59664
-21, -23, -24, -24, -24, -23, -20, -11, -2, 4, 3, 4, 6, 6, 5, 3, //59680
-2, -7, -13, -19, -23, -24, -23, -19, -14, -13, -8, -1, 4, 9, 17, 18, //59696
16, 14, 16, 17, 13, 10, 8, 4, 0, -1, 0, 2, 6, 13, 18, 21, //59712
22, 21, 20, 26, 33, 32, 32, 32, 31, 30, 21, 19, 21, 22, 24, 29, //59728
39, 40, 40, 40, 37, 36, 38, 37, 41, 47, 51, 57, 59, 65, 67, 67, //59744
70, 71, 72, 70, 63, 61, 64, 63, 64, 65, 65, 63, 61, 60, 60, 58, //59760
57, 59, 64, 66, 68, 68, 66, 70, 75, 74, 74, 75, 71, 65, 64, 64, //59776
62, 59, 61, 58, 57, 62, 65, 65, 65, 56, 50, 47, 44, 40, 36, 39, //59792
41, 41, 41, 41, 39, 42, 44, 45, 44, 36, 36, 37, 34, 28, 25, 22, //59808
21, 27, 29, 23, 19, 22, 21, 24, 31, 32, 30, 31, 33, 35, 34, 26, //59824
15, 8, 5, 4, 2, -1, -3, 0, 4, 3, 5, 10, 10, 11, 10, 7, //59840
5, 6, 4, -2, -7, -8, 0, 2, 0, 3, 9, 8, 0, -6, -11, -14, //59856
-19, -25, -38, -49, -54, -54, -51, -39, -37, -32, -28, -32, -35, -29, -28, -28, //59872
-32, -42, -50, -53, -58, -63, -65, -62, -62, -61, -57, -54, -52, -51, -51, -51, //59888
-50, -50, -50, -54, -60, -64, -67, -69, -71, -76, -82, -82, -77, -78, -80, -78, //59904
-78, -77, -76, -76, -74, -69, -66, -65, -64, -65, -64, -63, -65, -62, -61, -61, //59920
-49, -41, -38, -37, -37, -37, -41, -41, -42, -48, -51, -51, -52, -53, -52, -51, //59936
-49, -48, -53, -62, -68, -70, -67, -58, -56, -54, -52, -51, -44, -39, -33, -27, //59952
-28, -27, -23, -28, -31, -31, -28, -26, -27, -26, -23, -21, -20, -16, -14, -9, //59968
-6, -3, 1, 2, 6, 12, 15, 16, 19, 20, 17, 9, -1, -5, -6, -5, //59984
-4, -3, 1, 7, 13, 15, 20, 24, 27, 28, 31, 34, 37, 42, 45, 50, //60000
55, 56, 55, 56, 54, 53, 51, 52, 53, 53, 52, 48, 45, 47, 52, 55, //60016
52, 47, 45, 46, 48, 51, 63, 71, 76, 80, 83, 86, 87, 86, 82, 76, //60032
74, 66, 63, 66, 64, 62, 66, 73, 75, 78, 80, 82, 86, 85, 83, 79, //60048
73, 69, 68, 67, 64, 64, 67, 67, 66, 66, 65, 66, 66, 63, 61, 60, //60064
59, 58, 59, 53, 50, 49, 46, 46, 44, 43, 43, 39, 38, 35, 27, 24, //60080
21, 21, 18, 15, 15, 13, 12, 9, 7, 7, 6, 3, -1, 1, 4, 5, //60096
6, 6, 10, 17, 20, 16, 11, 10, 7, -2, -6, -11, -11, -12, -16, -15, //60112
-11, -7, -3, -2, 3, 9, 7, 6, 2, -4, -10, -19, -20, -16, -10, -8, //60128
-11, -13, -14, -14, -11, -11, -15, -17, -20, -24, -26, -28, -34, -33, -31, -32, //60144
-32, -30, -27, -26, -25, -23, -23, -25, -32, -40, -48, -55, -61, -61, -59, -55, //60160
-52, -49, -47, -52, -50, -46, -43, -39, -36, -41, -47, -51, -54, -55, -58, -61, //60176
-60, -61, -63, -63, -60, -58, -55, -53, -52, -53, -52, -55, -57, -56, -57, -59, //60192
-62, -67, -69, -70, -71, -72, -68, -64, -62, -59, -54, -49, -47, -44, -43, -43, //60208
-43, -42, -44, -49, -53, -55, -63, -65, -64, -60, -55, -51, -43, -40, -36, -35, //60224
-37, -31, -31, -28, -24, -25, -26, -33, -37, -39, -44, -46, -48, -47, -45, -48, //60240
-48, -43, -36, -28, -20, -16, -17, -18, -27, -29, -30, -33, -35, -35, -32, -28, //60256
-23, -18, -11, -5, -5, -6, -7, -10, -11, -12, -13, -13, -13, -11, -11, -12, //60272
-9, -4, 1, 6, 11, 12, 10, 10, 13, 15, 23, 30, 31, 30, 31, 31, //60288
29, 30, 30, 29, 30, 33, 38, 41, 44, 49, 53, 53, 53, 52, 48, 44, //60304
37, 37, 39, 39, 41, 43, 45, 52, 57, 64, 69, 71, 75, 76, 77, 78, //60320
80, 80, 76, 75, 73, 72, 75, 81, 84, 87, 90, 89, 87, 86, 79, 74, //60336
76, 75, 71, 70, 68, 71, 74, 75, 71, 69, 69, 64, 62, 68, 74, 76, //60352
79, 79, 81, 80, 80, 80, 75, 75, 73, 68, 62, 52, 49, 50, 48, 52, //60368
56, 53, 47, 40, 35, 32, 27, 25, 25, 21, 15, 18, 22, 28, 34, 39, //60384
44, 42, 38, 33, 25, 21, 18, 11, 4, -4, -8, -8, -7, 4, 16, 24, //60400
29, 25, 19, 15, 8, -3, -12, -17, -24, -25, -26, -30, -29, -19, -12, -8, //60416
0, 10, 11, 10, 5, -2, -10, -19, -24, -27, -28, -29, -26, -23, -25, -23, //60432
-19, -17, -21, -24, -26, -32, -40, -46, -54, -56, -54, -53, -51, -49, -48, -51, //60448
-60, -63, -59, -55, -52, -51, -54, -56, -60, -60, -57, -52, -45, -45, -54, -66, //60464
-74, -78, -79, -78, -77, -79, -79, -77, -76, -71, -65, -68, -69, -69, -76, -83, //60480
-89, -96, -99, -93, -84, -77, -72, -65, -59, -54, -47, -45, -45, -47, -56, -63, //60496
-69, -76, -74, -74, -73, -70, -64, -59, -63, -66, -59, -55, -56, -57, -60, -61, //60512
-63, -68, -71, -66, -59, -56, -58, -51, -42, -34, -32, -37, -38, -37, -39, -42, //60528
-43, -36, -30, -20, -15, -10, 0, 10, 20, 28, 29, 27, 27, 20, 9, 7, //60544
7, 2, 0, 0, -1, -2, -1, 4, 9, 14, 14, 13, 15, 18, 21, 33, //60560
38, 36, 34, 39, 41, 40, 42, 45, 46, 46, 47, 49, 51, 53, 54, 53, //60576
59, 62, 60, 57, 54, 46, 45, 50, 52, 50, 51, 50, 46, 49, 57, 63, //60592
66, 68, 67, 62, 56, 52, 49, 48, 46, 46, 48, 50, 62, 66, 70, 78, //60608
80, 83, 81, 73, 70, 64, 57, 51, 47, 46, 44, 43, 47, 54, 55, 55, //60624
56, 49, 44, 43, 41, 40, 41, 38, 31, 33, 35, 34, 37, 40, 36, 36, //60640
38, 36, 29, 31, 37, 33, 36, 34, 27, 29, 30, 26, 21, 20, 16, 7, //60656
6, 5, 7, 13, 16, 15, 16, 22, 19, 14, 10, 5, 5, 3, -3, -7, //60672
-11, -9, -13, -16, -12, -10, -10, -13, -13, -12, -14, -14, -19, -21, -18, -20, //60688
-23, -22, -17, -13, -14, -15, -17, -22, -23, -26, -27, -21, -18, -25, -28, -29, //60704
-31, -33, -35, -36, -38, -43, -44, -41, -40, -34, -31, -31, -34, -43, -44, -47, //60720
-52, -52, -50, -47, -49, -49, -45, -42, -44, -45, -42, -46, -51, -54, -63, -67, //60736
-66, -66, -64, -63, -61, -58, -54, -51, -51, -48, -43, -41, -41, -47, -54, -62, //60752
-64, -67, -69, -69, -66, -69, -71, -70, -68, -66, -62, -61, -61, -59, -59, -62, //60768
-68, -71, -71, -70, -68, -64, -65, -67, -67, -64, -58, -51, -49, -47, -47, -46, //60784
-44, -43, -44, -44, -41, -39, -38, -42, -41, -44, -48, -49, -50, -43, -38, -35, //60800
-31, -30, -34, -33, -32, -28, -25, -23, -24, -26, -26, -25, -28, -27, -25, -26, //60816
-25, -21, -19, -20, -21, -20, -20, -22, -17, -8, -8, -7, -8, -6, 1, 6, //60832
10, 11, 13, 16, 16, 17, 17, 16, 15, 18, 15, 16, 21, 21, 23, 22, //60848
18, 21, 27, 32, 33, 30, 31, 31, 31, 32, 43, 47, 47, 51, 55, 58, //60864
60, 64, 61, 53, 53, 53, 49, 50, 53, 57, 62, 76, 80, 83, 89, 87, //60880
81, 84, 86, 87, 91, 93, 87, 76, 70, 64, 64, 68, 69, 66, 66, 69, //60896
69, 70, 77, 75, 69, 61, 57, 56, 56, 61, 62, 58, 58, 60, 56, 54, //60912
59, 65, 68, 68, 66, 59, 52, 46, 38, 34, 31, 22, 18, 16, 13, 15, //60928
21, 27, 35, 43, 51, 50, 44, 41, 44, 43, 37, 37, 33, 26, 22, 26, //60944
28, 34, 39, 39, 39, 40, 42, 37, 36, 40, 36, 28, 21, 10, 4, -2, //60960
-9, -6, 1, 3, 5, 8, 6, 12, 16, 11, 4, -6, -20, -24, -29, -34, //60976
-36, -28, -27, -29, -23, -16, -11, 5, 9, 2, -1, -3, -13, -24, -25, -32, //60992
-40, -44, -55, -64, -64, -60, -60, -57, -49, -44, -39, -38, -38, -35, -40, -47, //61008
-55, -61, -65, -73, -75, -77, -78, -73, -65, -61, -62, -64, -62, -59, -58, -55, //61024
-59, -69, -75, -80, -85, -86, -86, -82, -80, -82, -83, -84, -85, -84, -84, -83, //61040
-79, -72, -60, -51, -50, -40, -34, -33, -31, -34, -42, -50, -58, -65, -71, -75, //61056
-72, -68, -67, -64, -58, -55, -58, -58, -55, -51, -49, -49, -45, -39, -35, -31, //61072
-23, -20, -26, -27, -31, -40, -45, -47, -49, -51, -49, -43, -40, -32, -26, -22, //61088
-14, -9, -2, 6, 11, 15, 15, 16, 23, 24, 23, 23, 18, 11, 4, -4, //61104
-8, -6, -8, -8, -5, -1, 7, 13, 19, 22, 21, 26, 28, 25, 24, 21, //61120
18, 19, 21, 22, 18, 18, 19, 21, 29, 32, 29, 33, 36, 40, 44, 45, //61136
44, 49, 55, 54, 50, 51, 52, 48, 48, 53, 54, 61, 66, 62, 54, 46, //61152
39, 37, 36, 39, 40, 39, 41, 40, 41, 50, 58, 63, 70, 70, 65, 62, //61168
61, 57, 60, 63, 64, 63, 61, 59, 57, 56, 54, 51, 49, 45, 41, 39, //61184
39, 40, 39, 41, 46, 53, 58, 59, 58, 56, 52, 46, 41, 40, 43, 45, //61200
45, 44, 45, 52, 56, 54, 54, 58, 60, 54, 45, 39, 33, 29, 25, 20, //61216
25, 29, 31, 35, 35, 34, 30, 30, 31, 26, 19, 16, 10, 6, 2, 0, //61232
-2, -3, -2, -1, 0, 1, 2, 3, 4, 4, 3, 1, -1, -3, -6, -11, //61248
-16, -24, -24, -23, -30, -32, -25, -22, -17, -16, -18, -20, -20, -24, -33, -38, //61264
-40, -46, -53, -55, -53, -50, -51, -50, -51, -53, -54, -54, -51, -47, -49, -48, //61280
-45, -48, -51, -46, -41, -37, -35, -39, -57, -69, -76, -81, -85, -86, -80, -74, //61296
-73, -71, -64, -60, -60, -58, -57, -59, -68, -84, -92, -99, -102, -103, -100, -91, //61312
-86, -82, -76, -71, -66, -64, -62, -62, -66, -74, -80, -78, -75, -72, -69, -66, //61328
-65, -61, -56, -53, -49, -45, -43, -41, -44, -45, -45, -45, -45, -43, -37, -36, //61344
-36, -31, -28, -27, -23, -20, -17, -15, -16, -18, -20, -23, -29, -34, -38, -40, //61360
-40, -36, -29, -27, -24, -23, -24, -20, -17, -13, -12, -14, -20, -31, -34, -37, //61376
-42, -42, -38, -34, -32, -28, -25, -20, -4, 3, 6, 10, 11, 9, 13, 16, //61392
14, 13, 17, 17, 18, 19, 19, 23, 27, 23, 26, 32, 37, 40, 45, 50, //61408
52, 58, 58, 55, 57, 55, 52, 47, 41, 39, 42, 41, 42, 47, 49, 46, //61424
46, 49, 50, 50, 53, 59, 66, 72, 74, 74, 80, 87, 91, 96, 96, 91, //61440
86, 85, 83, 84, 88, 88, 88, 86, 81, 79, 81, 80, 77, 78, 77, 76, //61456
77, 78, 74, 75, 79, 78, 73, 72, 73, 70, 64, 64, 69, 68, 67, 66, //61472
60, 59, 58, 50, 49, 50, 49, 47, 44, 43, 43, 44, 40, 36, 39, 37, //61488
33, 34, 38, 38, 36, 37, 34, 28, 28, 29, 27, 27, 27, 24, 21, 19, //61504
23, 30, 35, 41, 46, 46, 40, 31, 23, 15, 11, 12, 8, 2, -3, -5, //61520
-12, -18, -19, -15, -11, -10, -15, -21, -28, -35, -40, -44, -42, -33, -25, -25, //61536
-25, -15, -13, -13, -13, -13, -14, -20, -23, -33, -45, -50, -52, -51, -50, -52, //61552
-49, -47, -49, -47, -45, -47, -52, -55, -53, -56, -53, -47, -47, -50, -51, -54, //61568
-62, -67, -65, -71, -75, -75, -73, -68, -64, -58, -58, -61, -64, -69, -76, -78, //61584
-78, -78, -81, -82, -81, -78, -76, -76, -72, -64, -64, -63, -67, -71, -73, -83, //61600
-86, -86, -86, -86, -81, -78, -82, -84, -86, -86, -81, -78, -73, -69, -70, -74, //61616
-78, -80, -82, -80, -75, -71, -67, -67, -69, -67, -64, -59, -56, -52, -49, -49, //61632
-50, -53, -52, -46, -40, -33, -26, -19, -15, -13, -9, 0, 8, 9, 9, 5, //61648
1, -2, -9, -9, -10, -11, -10, -7, 2, 12, 19, 23, 25, 28, 28, 28, //61664
30, 30, 30, 36, 41, 46, 49, 52, 55, 49, 48, 49, 49, 52, 47, 44, //61680
43, 42, 46, 54, 62, 66, 64, 57, 49, 41, 37, 38, 42, 48, 54, 59, //61696
61, 62, 65, 69, 72, 69, 64, 59, 56, 55, 54, 55, 61, 68, 72, 75, //61712
86, 91, 95, 97, 95, 93, 91, 89, 88, 86, 82, 79, 81, 82, 78, 75, //61728
75, 71, 72, 71, 70, 72, 70, 67, 62, 59, 60, 57, 55, 57, 59, 61, //61744
60, 62, 65, 67, 70, 69, 69, 70, 66, 65, 65, 62, 54, 44, 39, 32, //61760
27, 23, 20, 23, 23, 25, 25, 26, 27, 28, 28, 26, 22, 15, 5, 0, //61776
-5, -5, -2, 1, 2, 4, 12, 17, 21, 25, 22, 22, 19, 12, 6, -3, //61792
-8, -14, -14, -12, -12, -9, -8, -9, -11, -12, -10, -9, -9, -12, -17, -21, //61808
-30, -34, -36, -37, -37, -35, -33, -33, -31, -28, -27, -27, -24, -25, -27, -32, //61824
-38, -44, -48, -49, -49, -50, -52, -53, -47, -44, -45, -43, -41, -39, -37, -39, //61840
-44, -47, -53, -56, -56, -58, -62, -61, -59, -62, -60, -57, -54, -49, -47, -52, //61856
-55, -55, -57, -58, -55, -58, -61, -61, -63, -66, -65, -65, -65, -65, -67, -63, //61872
-60, -57, -56, -57, -56, -53, -51, -49, -50, -54, -61, -64, -65, -67, -68, -67, //61888
-66, -63, -60, -57, -55, -52, -50, -48, -45, -44, -43, -42, -41, -43, -45, -47, //61904
-53, -54, -54, -57, -58, -58, -58, -56, -54, -49, -44, -41, -40, -41, -43, -46, //61920
-48, -44, -44, -46, -47, -45, -44, -41, -35, -30, -28, -27, -24, -19, -18, -15, //61936
-11, -9, -6, -7, -7, -7, -8, -5, -3, -3, 3, 10, 12, 13, 20, 23, //61952
26, 32, 35, 32, 32, 30, 27, 24, 22, 23, 21, 21, 26, 30, 37, 45, //61968
48, 53, 55, 57, 59, 57, 58, 59, 61, 62, 58, 60, 64, 69, 74, 81, //61984
92, 94, 96, 97, 96, 98, 95, 90, 87, 84, 80, 74, 74, 75, 73, 74, //62000
76, 79, 81, 84, 85, 82, 86, 90, 93, 90, 83, 79, 73, 71, 74, 73, //62016
70, 69, 65, 62, 59, 62, 69, 71, 71, 68, 64, 69, 72, 70, 73, 72, //62032
69, 66, 51, 42, 38, 37, 35, 32, 29, 29, 33, 37, 35, 35, 40, 38, //62048
35, 36, 35, 24, 20, 17, 11, 11, 15, 18, 18, 19, 21, 22, 18, 12, //62064
11, 7, 5, 5, 0, -6, -10, -11, -15, -19, -22, -21, -16, -13, -12, -12, //62080
-12, -10, -8, -8, -6, 4, 3, -5, -14, -17, -18, -25, -29, -29, -26, -28, //62096
-31, -29, -30, -28, -25, -28, -34, -38, -39, -38, -43, -48, -49, -48, -51, -56, //62112
-60, -59, -58, -64, -68, -70, -72, -67, -64, -64, -62, -60, -56, -59, -65, -70, //62128
-76, -78, -81, -85, -82, -80, -75, -67, -56, -54, -56, -58, -63, -72, -80, -84, //62144
-87, -87, -85, -81, -76, -72, -65, -58, -53, -57, -57, -55, -54, -56, -62, -70, //62160
-65, -59, -57, -55, -52, -54, -55, -57, -55, -51, -47, -48, -55, -60, -61, -64, //62176
-66, -61, -54, -49, -44, -35, -32, -27, -23, -19, -14, -11, -9, -12, -20, -23, //62192
-20, -16, -17, -16, -13, -12, -10, -7, -4, -2, -2, -1, 0, 1, 4, 8, //62208
11, 13, 9, 10, 13, 15, 14, 15, 16, 16, 18, 22, 25, 29, 30, 34, //62224
40, 43, 42, 45, 46, 45, 47, 49, 55, 58, 55, 51, 50, 53, 60, 63, //62240
67, 69, 63, 57, 56, 51, 49, 48, 49, 53, 55, 58, 63, 69, 74, 75, //62256
79, 87, 87, 81, 80, 76, 72, 71, 72, 74, 73, 74, 76, 76, 79, 82, //62272
81, 78, 73, 68, 65, 64, 66, 68, 69, 68, 65, 63, 66, 67, 68, 68, //62288
63, 57, 55, 56, 58, 61, 66, 62, 58, 57, 56, 55, 48, 45, 41, 36, //62304
34, 34, 33, 34, 35, 35, 32, 30, 25, 21, 19, 16, 16, 15, 16, 17, //62320
17, 18, 20, 23, 23, 22, 23, 22, 15, 12, 9, 8, 4, -3, -3, 0, //62336
1, 3, 8, 9, 4, 3, 1, 1, 2, 3, 0, -3, -6, -12, -19, -18, //62352
-17, -17, -16, -13, -13, -18, -15, -11, -12, -11, -8, -10, -13, -18, -23, -26, //62368
-31, -36, -34, -29, -28, -29, -33, -37, -44, -50, -48, -44, -46, -48, -47, -48, //62384
-52, -56, -56, -59, -61, -62, -62, -59, -56, -53, -51, -47, -48, -52, -56, -60, //62400
-61, -63, -71, -77, -79, -77, -77, -81, -77, -70, -66, -62, -60, -64, -68, -70, //62416
-71, -72, -72, -70, -66, -62, -59, -60, -62, -61, -65, -64, -63, -65, -66, -70, //62432
-74, -72, -67, -63, -55, -48, -45, -46, -47, -47, -50, -53, -53, -53, -53, -49, //62448
-50, -51, -51, -52, -53, -51, -47, -46, -45, -41, -43, -43, -42, -44, -40, -34, //62464
-30, -30, -29, -26, -26, -28, -23, -21, -16, -11, -7, -6, -8, -8, -2, 6, //62480
12, 18, 17, 15, 15, 14, 15, 11, 11, 17, 17, 19, 26, 30, 37, 40, //62496
41, 44, 47, 48, 43, 38, 39, 38, 32, 35, 37, 41, 47, 47, 51, 53, //62512
47, 46, 51, 51, 53, 55, 58, 60, 60, 68, 75, 83, 93, 97, 103, 104, //62528
103, 101, 98, 99, 96, 92, 94, 92, 86, 83, 76, 72, 73, 75, 75, 80, //62544
80, 80, 81, 83, 85, 84, 82, 79, 76, 75, 71, 69, 71, 71, 69, 68, //62560
77, 78, 74, 76, 80, 76, 73, 72, 66, 60, 54, 47, 39, 33, 31, 33, //62576
37, 49, 53, 57, 63, 67, 69, 63, 53, 46, 37, 27, 21, 16, 19, 20, //62592
22, 24, 24, 30, 33, 29, 22, 16, 11, 6, 1, 1, -1, -9, -12, -14, //62608
-20, -20, -22, -22, -22, -24, -21, -17, -16, -17, -24, -27, -27, -30, -36, -44, //62624
-47, -48, -53, -51, -43, -44, -44, -47, -52, -55, -60, -61, -59, -63, -67, -75, //62640
-79, -73, -70, -75, -69, -59, -54, -50, -52, -50, -45, -45, -38, -37, -40, -42, //62656
-56, -70, -79, -82, -84, -89, -95, -95, -96, -94, -89, -87, -84, -79, -73, -67, //62672
-65, -62, -54, -54, -58, -60, -62, -66, -76, -85, -88, -90, -90, -84, -81, -79, //62688
-75, -69, -65, -64, -62, -60, -60, -63, -58, -51, -44, -38, -34, -29, -32, -38, //62704
-41, -47, -57, -67, -71, -76, -77, -74, -70, -63, -55, -47, -40, -31, -22, -12, //62720
-9, -3, -1, -5, -7, -6, -9, -11, -9, -6, -6, -8, -8, -6, -7, -10, //62736
-11, -11, -9, -1, 3, 6, 10, 13, 13, 12, 11, 15, 21, 26, 24, 23, //62752
25, 17, 11, 11, 10, 11, 7, 6, 7, 9, 16, 23, 27, 36, 46, 49, //62768
50, 54, 56, 55, 58, 61, 62, 67, 74, 74, 67, 61, 59, 51, 45, 43, //62784
46, 51, 60, 67, 68, 67, 71, 75, 77, 80, 84, 82, 78, 81, 78, 73, //62800
78, 81, 77, 79, 83, 88, 91, 93, 91, 86, 80, 76, 75, 77, 81, 85, //62816
86, 90, 90, 87, 92, 93, 87, 81, 79, 74, 64, 62, 62, 61, 61, 66, //62832
72, 72, 74, 75, 73, 68, 62, 56, 53, 50, 46, 45, 45, 43, 44, 41, //62848
35, 37, 39, 36, 38, 37, 23, 18, 15, 11, 9, 11, 13, 11, 8, 5, //62864
5, 2, -6, -4, -2, -1, -1, -5, -4, -4, -6, -9, -11, -14, -14, -10, //62880
-8, -9, -4, 3, 2, -2, -4, -4, -6, -5, -8, -14, -17, -18, -18, -19, //62896
-23, -23, -19, -22, -26, -27, -31, -36, -36, -37, -39, -37, -34, -35, -38, -42, //62912
-41, -40, -44, -51, -61, -65, -65, -63, -64, -65, -57, -51, -46, -40, -39, -37, //62928
-42, -49, -54, -62, -71, -75, -77, -78, -76, -73, -69, -67, -70, -71, -67, -67, //62944
-70, -67, -67, -66, -65, -67, -72, -78, -80, -77, -75, -73, -72, -70, -66, -63, //62960
-60, -61, -59, -54, -59, -64, -65, -69, -70, -69, -66, -62, -60, -57, -57, -61, //62976
-62, -57, -57, -59, -56, -59, -61, -60, -59, -57, -58, -61, -64, -65, -59, -56, //62992
-51, -46, -45, -46, -44, -41, -39, -37, -32, -32, -35, -40, -47, -49, -47, -48, //63008
-43, -34, -28, -22, -14, -2, 1, 6, 12, 13, 10, 10, 10, 11, 12, 11, //63024
7, 7, 8, 10, 14, 19, 23, 25, 26, 25, 27, 38, 42, 49, 54, 55, //63040
57, 54, 51, 49, 46, 46, 52, 56, 58, 62, 66, 64, 59, 55, 51, 49, //63056
50, 54, 55, 57, 62, 64, 67, 73, 75, 79, 84, 85, 84, 86, 84, 78, //63072
75, 78, 80, 80, 84, 82, 76, 76, 82, 81, 86, 91, 86, 81, 83, 78, //63088
76, 77, 75, 69, 70, 73, 72, 77, 81, 77, 81, 81, 77, 78, 77, 67, //63104
61, 54, 48, 44, 41, 44, 48, 53, 63, 69, 76, 85, 88, 86, 86, 82, //63120
64, 50, 42, 40, 39, 40, 35, 32, 35, 29, 21, 27, 27, 24, 19, 11, //63136
7, 0, -7, -5, -2, 1, 5, 8, 9, 4, -5, -7, -3, -4, -5, -7, //63152
-11, -14, -21, -21, -20, -26, -32, -37, -39, -34, -34, -40, -47, -54, -58, -60, //63168
-53, -43, -41, -41, -43, -47, -48, -49, -54, -57, -53, -54, -57, -54, -53, -57, //63184
-58, -56, -54, -50, -46, -46, -47, -50, -51, -50, -54, -60, -63, -63, -61, -60, //63200
-62, -63, -67, -76, -77, -72, -78, -77, -77, -84, -84, -79, -74, -67, -64, -67, //63216
-73, -75, -77, -74, -69, -67, -69, -70, -76, -78, -74, -79, -76, -71, -73, -77, //63232
-76, -73, -74, -77, -78, -78, -80, -83, -81, -78, -75, -67, -59, -57, -53, -50, //63248
-45, -42, -39, -38, -33, -29, -30, -27, -28, -31, -35, -42, -45, -42, -41, -34, //63264
-24, -18, -15, -7, -2, 0, -1, -2, -2, -5, -3, 2, 6, 12, 17, 15, //63280
18, 23, 22, 19, 23, 24, 20, 16, 14, 15, 21, 26, 32, 39, 43, 37, //63296
35, 32, 30, 35, 39, 42, 42, 43, 43, 41, 43, 46, 48, 50, 47, 46, //63312
46, 45, 49, 52, 53, 58, 67, 75, 85, 90, 90, 95, 98, 95, 94, 94, //63328
94, 90, 87, 83, 80, 81, 79, 72, 69, 65, 62, 60, 63, 70, 67, 66, //63344
67, 68, 69, 70, 72, 72, 68, 64, 68, 70, 71, 74, 75, 76, 76, 80, //63360
82, 77, 79, 83, 76, 71, 69, 60, 46, 41, 42, 37, 36, 39, 34, 33, //63376
35, 37, 41, 43, 32, 21, 19, 20, 20, 23, 26, 24, 21, 20, 24, 28, //63392
29, 28, 26, 25, 26, 20, 15, 11, 7, 5, 3, 5, 7, 4, 3, 3, //63408
1, -3, -8, -10, -16, -23, -23, -23, -25, -30, -35, -33, -29, -25, -19, -17, //63424
-18, -17, -17, -17, -13, -13, -19, -27, -34, -35, -33, -33, -34, -40, -41, -40, //63440
-41, -42, -44, -44, -43, -43, -42, -45, -47, -46, -50, -53, -47, -45, -52, -54, //63456
-57, -59, -59, -54, -48, -45, -43, -45, -44, -42, -46, -45, -46, -51, -51, -51, //63472
-51, -49, -48, -49, -50, -50, -51, -52, -51, -51, -50, -54, -55, -53, -55, -56, //63488
-53, -53, -53, -54, -56, -60, -62, -63, -61, -61, -61, -54, -55, -57, -56, -52, //63504
-47, -44, -41, -43, -46, -51, -61, -66, -71, -76, -78, -77, -74, -72, -73, -74, //63520
-69, -66, -65, -63, -60, -60, -62, -61, -61, -61, -59, -60, -58, -58, -59, -54, //63536
-50, -47, -40, -39, -35, -32, -35, -34, -24, -22, -20, -14, -9, -8, -4, 1, //63552
2, 6, 11, 11, 11, 9, 11, 18, 25, 33, 35, 40, 44, 42, 41, 40, //63568
39, 38, 36, 38, 46, 55, 61, 69, 75, 75, 78, 75, 71, 69, 68, 64, //63584
60, 61, 60, 60, 65, 69, 71, 76, 84, 88, 91, 96, 93, 93, 93, 88, //63600
85, 80, 76, 73, 71, 69, 68, 67, 63, 62, 63, 62, 64, 66, 71, 73, //63616
74, 79, 87, 90, 87, 83, 80, 70, 69, 67, 66, 65, 63, 61, 66, 69, //63632
70, 72, 73, 65, 67, 71, 72, 73, 73, 66, 58, 54, 46, 42, 47, 43, //63648
40, 41, 40, 40, 38, 36, 32, 28, 26, 24, 24, 23, 26, 29, 27, 23, //63664
22, 22, 23, 24, 25, 22, 20, 16, 11, 6, 2, 2, -1, -7, -13, -16, //63680
-18, -20, -16, -13, -14, -18, -24, -28, -32, -34, -31, -30, -31, -35, -36, -34, //63696
-33, -29, -30, -38, -47, -52, -58, -59, -54, -51, -53, -54, -55, -58, -58, -58, //63712
-60, -63, -69, -74, -76, -77, -79, -79, -79, -76, -70, -68, -67, -66, -63, -62, //63728
-64, -66, -69, -73, -74, -78, -79, -79, -82, -85, -87, -82, -78, -74, -72, -74, //63744
-72, -72, -70, -67, -69, -65, -62, -62, -59, -55, -56, -60, -62, -61, -62, -62, //63760
-61, -63, -67, -70, -70, -69, -68, -69, -66, -60, -51, -45, -41, -38, -37, -39, //63776
-33, -30, -32, -32, -34, -40, -43, -39, -39, -39, -38, -40, -36, -31, -26, -20, //63792
-18, -18, -17, -12, -8, -4, 6, 6, 7, 8, 5, 3, 3, 2, 2, 2, //63808
5, 6, 5, 6, 7, 11, 15, 20, 18, 19, 21, 20, 21, 28, 32, 34, //63824
34, 35, 38, 47, 53, 54, 53, 52, 46, 44, 42, 43, 46, 50, 47, 43, //63840
41, 39, 41, 42, 47, 54, 55, 55, 56, 56, 59, 58, 57, 60, 62, 65, //63856
68, 69, 71, 75, 80, 88, 92, 93, 93, 91, 82, 78, 74, 70, 66, 63, //63872
57, 55, 61, 67, 68, 69, 65, 63, 64, 64, 66, 70, 75, 77, 75, 71, //63888
68, 70, 67, 66, 65, 64, 64, 62, 61, 60, 58, 58, 55, 51, 45, 37, //63904
36, 35, 28, 27, 27, 24, 26, 28, 24, 26, 25, 20, 15, 13, 12, 12, //63920
15, 18, 15, 13, 13, 11, 10, 14, 19, 22, 24, 25, 24, 20, 12, 11, //63936
6, -2, -6, -8, -9, -10, -10, -10, -12, -13, -13, -14, -13, -12, -14, -18, //63952
-21, -24, -28, -33, -36, -38, -36, -33, -31, -28, -26, -29, -31, -30, -27, -24, //63968
-22, -22, -25, -30, -32, -36, -40, -40, -44, -49, -50, -55, -59, -59, -58, -57, //63984
-55, -52, -54, -59, -61, -63, -67, -66, -62, -62, -64, -65, -67, -67, -63, -59, //64000
-57, -56, -57, -60, -62, -63, -62, -63, -63, -66, -69, -70, -69, -69, -71, -73, //64016
-71, -71, -73, -74, -74, -73, -76, -78, -78, -74, -72, -69, -67, -68, -67, -67, //64032
-70, -72, -74, -74, -71, -69, -69, -68, -64, -66, -65, -61, -62, -61, -58, -61, //64048
-59, -56, -54, -52, -47, -45, -47, -44, -47, -54, -53, -49, -47, -41, -32, -25, //64064
-21, -17, -14, -13, -9, -7, -5, -2, -3, -3, 0, 1, -6, -8, -4, -1, //64080
-1, 4, 8, 10, 12, 19, 27, 30, 29, 32, 35, 34, 40, 46, 47, 47, //64096
47, 48, 58, 62, 62, 64, 64, 61, 62, 66, 71, 73, 74, 81, 83, 87, //64112
94, 98, 100, 99, 99, 97, 95, 96, 93, 88, 89, 92, 93, 91, 91, 90, //64128
88, 87, 87, 90, 97, 96, 94, 95, 93, 90, 93, 86, 77, 73, 73, 72, //64144
66, 63, 63, 64, 59, 54, 58, 62, 69, 73, 67, 65, 72, 74, 72, 67, //64160
64, 63, 64, 60, 53, 52, 56, 60, 60, 54, 53, 53, 42, 34, 30, 29, //64176
34, 36, 26, 23, 28, 32, 38, 46, 43, 41, 39, 35, 27, 16, 13, 9, //64192
4, -7, -16, -19, -20, -16, -18, -17, -4, -6, -7, -11, -17, -16, -17, -23, //64208
-28, -33, -43, -49, -44, -51, -55, -49, -46, -44, -42, -40, -36, -34, -39, -40, //64224
-36, -40, -43, -42, -53, -57, -61, -65, -67, -75, -83, -86, -88, -87, -87, -80, //64240
-78, -71, -59, -53, -50, -45, -46, -49, -59, -65, -63, -70, -75, -76, -77, -80, //64256
-72, -70, -77, -76, -72, -76, -83, -85, -83, -81, -81, -78, -65, -58, -53, -48, //64272
-44, -45, -49, -54, -60, -64, -68, -74, -74, -79, -80, -77, -77, -66, -50, -44, //64288
-42, -37, -30, -31, -34, -28, -22, -26, -31, -37, -41, -43, -48, -52, -58, -60, //64304
-59, -59, -55, -52, -45, -36, -31, -27, -20, -11, -6, -5, -6, -6, -5, -4, //64320
-5, -4, -2, 0, 2, 0, -6, -12, -11, -11, -14, -11, -13, -10, -4, -4, //64336
1, 7, 9, 11, 15, 20, 21, 23, 24, 25, 26, 23, 24, 25, 21, 19, //64352
20, 25, 29, 34, 40, 47, 52, 49, 56, 63, 62, 65, 70, 67, 69, 70, //64368
66, 60, 62, 66, 60, 56, 59, 64, 69, 71, 71, 72, 70, 68, 66, 70, //64384
79, 82, 79, 81, 80, 73, 75, 79, 78, 81, 80, 76, 78, 77, 82, 83, //64400
82, 82, 81, 81, 76, 76, 79, 74, 69, 63, 59, 58, 54, 54, 55, 48, //64416
58, 62, 59, 63, 67, 66, 64, 59, 59, 62, 54, 48, 49, 49, 46, 45, //64432
42, 40, 43, 43, 41, 39, 34, 28, 22, 15, 10, 5, -1, -4, -2, -2, //64448
-2, 4, 5, 3, 0, -2, 2, 3, -2, -6, -7, -6, -6, -9, -10, -12, //64464
-13, -9, -15, -16, -15, -17, -20, -20, -23, -25, -22, -20, -27, -32, -28, -28, //64480
-34, -37, -35, -35, -36, -39, -49, -60, -74, -77, -77, -78, -69, -59, -52, -47, //64496
-44, -37, -32, -36, -46, -55, -63, -72, -80, -80, -82, -79, -74, -73, -65, -57, //64512
-55, -48, -47, -48, -47, -53, -57, -62, -72, -78, -79, -81, -77, -68, -65, -64, //64528
-56, -54, -51, -51, -53, -52, -51, -54, -58, -61, -64, -69, -70, -67, -63, -59, //64544
-58, -59, -62, -59, -57, -56, -57, -63, -70, -73, -74, -81, -89, -88, -90, -90, //64560
-86, -83, -69, -60, -53, -51, -51, -38, -38, -44, -46, -47, -46, -53, -56, -50, //64576
-46, -45, -38, -28, -23, -17, -13, -7, 5, 9, 11, 9, 4, 3, 3, 1, //64592
1, 1, -2, -2, 7, 8, 4, 5, 4, 3, 8, 13, 20, 25, 28, 36, //64608
38, 40, 45, 49, 51, 54, 54, 56, 57, 55, 57, 60, 57, 54, 57, 60, //64624
55, 58, 70, 71, 66, 73, 78, 77, 80, 82, 83, 88, 92, 92, 90, 89, //64640
85, 76, 72, 72, 76, 76, 72, 78, 85, 88, 88, 93, 100, 98, 94, 92, //64656
91, 86, 82, 76, 67, 69, 74, 73, 78, 75, 73, 76, 78, 85, 82, 78, //64672
77, 74, 69, 62, 59, 54, 50, 54, 58, 61, 65, 62, 58, 58, 55, 51, //64688
44, 33, 26, 21, 16, 20, 26, 29, 30, 33, 39, 41, 42, 39, 33, 31, //64704
32, 27, 22, 18, 11, 8, 6, 2, 2, 1, -2, -5, -12, -16, -17, -21, //64720
-22, -21, -19, -13, -9, -13, -17, -17, -23, -27, -29, -35, -37, -40, -42, -43, //64736
-41, -32, -33, -34, -29, -28, -31, -26, -26, -31, -42, -51, -57, -64, -69, -69, //64752
-66, -65, -65, -65, -67, -66, -66, -69, -74, -80, -83, -82, -81, -77, -72, -67, //64768
-63, -63, -64, -66, -68, -71, -73, -71, -70, -70, -76, -81, -80, -77, -72, -70, //64784
-69, -67, -69, -74, -74, -76, -79, -81, -84, -86, -91, -92, -90, -89, -90, -81, //64800
-76, -72, -65, -62, -62, -57, -57, -57, -54, -52, -49, -50, -50, -48, -49, -47, //64816
-41, -32, -25, -23, -22, -24, -29, -30, -33, -33, -35, -36, -31, -23, -13, -9, //64832
-11, -5, -5, -8, -8, -5, -2, -3, -2, 0, 2, 3, 6, 9, 9, 10, //64848
7, 0, 3, 5, 6, 10, 15, 21, 27, 28, 29, 29, 28, 23, 24, 21, //64864
14, 13, 15, 19, 23, 26, 31, 34, 34, 42, 50, 55, 57, 58, 54, 51, //64880
51, 51, 52, 53, 60, 65, 66, 68, 69, 66, 65, 68, 70, 70, 69, 75, //64896
74, 75, 79, 80, 80, 80, 77, 74, 72, 68, 64, 61, 61, 61, 62, 63, //64912
65, 68, 74, 78, 75, 72, 73, 72, 69, 66, 62, 61, 60, 58, 61, 65, //64928
69, 70, 66, 65, 69, 70, 65, 59, 55, 53, 53, 51, 51, 52, 53, 51, //64944
50, 51, 51, 51, 49, 46, 44, 40, 34, 27, 19, 18, 17, 15, 19, 20, //64960
19, 18, 15, 8, 5, 4, 2, -4, -11, -16, -20, -23, -24, -24, -19, -15, //64976
-10, -5, -3, -5, -10, -14, -17, -21, -25, -28, -34, -38, -39, -38, -34, -25, //64992
-22, -22, -23, -23, -21, -16, -14, -14, -18, -26, -36, -46, -52, -55, -54, -52, //65008
-51, -48, -42, -41, -41, -37, -36, -36, -38, -43, -46, -47, -50, -48, -47, -48, //65024
-46, -45, -48, -51, -51, -52, -55, -52, -52, -57, -63, -65, -62, -57, -56, -55, //65040
-56, -55, -55, -58, -63, -66, -70, -77, -80, -81, -80, -79, -82, -82, -83, -84, //65056
-80, -78, -78, -75, -78, -81, -81, -82, -85, -94, -95, -91, -88, -87, -86, -87, //65072
-83, -76, -72, -70, -67, -63, -63, -68, -69, -66, -71, -70, -65, -59, -56, -56, //65088
-47, -39, -35, -29, -24, -21, -20, -18, -15, -16, -14, -9, -11, -9, -4, -2, //65104
-2, 0, 6, 11, 10, 11, 9, 7, 10, 13, 17, 23, 31, 34, 34, 32, //65120
36, 45, 45, 44, 46, 49, 51, 50, 61, 69, 72, 78, 78, 75, 76, 72, //65136
68, 70, 71, 67, 66, 67, 72, 80, 85, 88, 95, 96, 93, 93, 92, 90, //65152
91, 94, 93, 93, 95, 95, 93, 91, 93, 90, 86, 86, 81, 72, 70, 69, //65168
67, 70, 76, 84, 93, 96, 96, 93, 91, 89, 84, 77, 72, 75, 76, 74, //65184
80, 82, 77, 75, 74, 64, 61, 61, 58, 53, 49, 44, 40, 38, 38, 39, //65200
43, 50, 52, 47, 38, 32, 26, 20, 16, 14, 11, 10, 6, 7, 9, 8, //65216
8, 9, 10, 9, 5, -3, -17, -22, -21, -22, -21, -23, -25, -20, -20, -14, //65232
-5, -1, -3, -15, -27, -38, -41, -44, -51, -47, -42, -41, -42, -41, -38, -34, //65248
-30, -29, -31, -35, -45, -57, -65, -68, -68, -61, -56, -52, -47, -43, -41, -38, //65264
-38, -38, -42, -49, -52, -54, -56, -58, -59, -59, -57, -57, -53, -48, -50, -53, //65280
-52, -51, -53, -52, -50, -55, -59, -62, -65, -69, -71, -68, -69, -68, -67, -68, //65296
-69, -74, -76, -80, -85, -84, -73, -72, -68, -62, -62, -63, -60, -61, -60, -54, //65312
-52, -57, -67, -75, -76, -73, -74, -71, -65, -64, -62, -58, -52, -48, -48, -50, //65328
-54, -55, -51, -50, -48, -43, -40, -37, -28, -26, -27, -28, -27, -25, -25, -26, //65344
-28, -27, -25, -25, -17, -10, -8, -7, -9, -11, -8, -9, -10, -11, -12, -11, //65360
-9, -4, -1, 4, 13, 17, 19, 26, 27, 23, 25, 24, 21, 22, 22, 21, //65376
29, 30, 31, 34, 38, 41, 46, 47, 49, 53, 52, 46, 50, 58, 62, 61, //65392
64, 70, 71, 71, 70, 67, 64, 65, 64, 63, 67, 74, 79, 77, 75, 75, //65408
78, 79, 79, 77, 75, 75, 75, 75, 81, 88, 91, 92, 92, 92, 89, 89, //65424
87, 79, 77, 74, 69, 69, 68, 65, 71, 71, 71, 76, 77, 73, 69, 70, //65440
70, 69, 68, 64, 59, 59, 56, 54, 54, 50, 46, 42, 42, 44, 41, 35, //65456
29, 23, 21, 21, 20, 22, 21, 19, 20, 21, 21, 19, 16, 14, 13, 9, //65472
9, 8, 3, 2, 4, 1, -1, 2, 2, 0, 2, 3, 1, -4, -11, -15, //65488
-14, -17, -18, -16, -15, -17, -15, -10, -8, -6, -9, -16, -23, -25, -25, -25, //65504
-25, -25, -29, -35, -40, -40, -43, -47, -41, -43, -49, -48, -48, -50, -48, -49, //65520
-51, -51, -52, -56, -57, -58, -58, -56, -53, -55, -57, -57, -56, -57, -60, -64, //65536
-65, -67, -70, -73, -72, -70, -70, -68, -67, -65, -56, -56, -60, -65, -72, -79, //65552
-81, -84, -85, -84, -83, -81, -79, -77, -77, -78, -81, -84, -85, -86, -90, -92, //65568
-88, -82, -78, -73, -67, -65, -66, -67, -68, -64, -61, -68, -67, -65, -65, -63, //65584
-58, -53, -52, -50, -48, -47, -45, -45, -48, -46, -43, -40, -32, -31, -29, -25, //65600
-25, -24, -16, -13, -14, -19, -22, -25, -27, -27, -28, -23, -17, -14, -9, -1, //65616
8, 18, 24, 29, 34, 35, 30, 26, 27, 26, 28, 30, 31, 34, 36, 41, //65632
47, 53, 61, 67, 65, 66, 66, 65, 69, 74, 72, 69, 69, 71, 75, 78, //65648
80, 88, 95, 96, 96, 97, 98, 101, 102, 96, 90, 95, 92, 85, 82, 83, //65664
87, 86, 84, 84, 89, 92, 93, 93, 86, 79, 78, 74, 73, 76, 77, 81, //65680
83, 82, 84, 85, 84, 85, 86, 83, 81, 80, 79, 77, 74, 69, 69, 69, //65696
65, 61, 63, 62, 62, 63, 58, 59, 62, 52, 45, 46, 46, 35, 30, 25, //65712
19, 13, 8, 11, 17, 14, 8, 4, -1, -5, -6, -8, -9, -8, -8, -14, //65728
-18, -19, -19, -20, -20, -18, -18, -17, -17, -16, -11, -14, -15, -15, -19, -24, //65744
-31, -39, -43, -48, -53, -61, -64, -61, -59, -59, -59, -56, -53, -50, -50, -50, //65760
-45, -43, -36, -32, -36, -39, -53, -61, -62, -67, -69, -69, -75, -71, -66, -62, //65776
-55, -52, -49, -51, -58, -61, -62, -59, -55, -52, -46, -43, -41, -39, -40, -41, //65792
-42, -47, -60, -70, -74, -75, -79, -81, -75, -73, -66, -57, -50, -47, -49, -44, //65808
-39, -39, -37, -38, -40, -40, -46, -54, -59, -70, -77, -83, -87, -84, -80, -73, //65824
-63, -59, -51, -40, -33, -28, -31, -37, -38, -39, -38, -38, -37, -32, -28, -24, //65840
-16, -17, -20, -24, -25, -24, -28, -32, -31, -27, -26, -25, -26, -24, -17, -14, //65856
-12, -11, -14, -16, -19, -23, -17, -9, -2, -1, -1, 0, 0, -1, -3, -1, //65872
0, 0, 4, 3, 2, 4, 8, 18, 23, 29, 33, 35, 39, 38, 34, 36, //65888
38, 41, 44, 43, 42, 44, 46, 48, 55, 56, 53, 54, 50, 43, 48, 50, //65904
53, 59, 65, 69, 68, 70, 71, 69, 68, 64, 66, 73, 75, 73, 74, 83, //65920
85, 85, 85, 84, 82, 78, 75, 73, 69, 67, 68, 69, 76, 83, 87, 90, //65936
89, 88, 89, 89, 84, 83, 83, 81, 80, 83, 86, 88, 86, 86, 86, 85, //65952
84, 77, 73, 70, 66, 65, 62, 64, 63, 56, 52, 51, 47, 45, 43, 40, //65968
35, 34, 35, 35, 36, 33, 28, 24, 23, 25, 26, 23, 20, 17, 18, 16, //65984
13, 13, 14, 11, 10, 9, 9, 12, 11, 9, 7, 6, 4, 1, 0, -2, //66000
-5, -5, -7, -18, -24, -28, -32, -34, -35, -35, -37, -35, -29, -28, -29, -24, //66016
-24, -27, -28, -29, -36, -42, -47, -54, -59, -61, -63, -66, -64, -62, -59, -54, //66032
-49, -49, -51, -54, -56, -63, -69, -72, -72, -71, -72, -73, -69, -66, -64, -63, //66048
-63, -62, -65, -67, -69, -72, -82, -90, -94, -97, -99, -98, -97, -95, -94, -91, //66064
-88, -91, -88, -86, -87, -87, -90, -95, -93, -96, -104, -107, -102, -93, -93, -88, //66080
-81, -73, -65, -57, -51, -43, -42, -44, -51, -61, -67, -72, -78, -79, -73, -69, //66096
-59, -48, -38, -33, -22, -17, -20, -22, -21, -27, -28, -28, -31, -34, -32, -23, //66112
-19, -18, -12, -6, -3, 7, 7, 7, 8, 11, 16, 21, 26, 27, 25, 30, //66128
34, 30, 33, 33, 31, 31, 35, 39, 46, 55, 57, 54, 56, 51, 49, 51, //66144
50, 50, 50, 50, 53, 57, 63, 65, 70, 74, 75, 73, 69, 71, 71, 65, //66160
61, 60, 57, 53, 50, 49, 49, 61, 66, 71, 74, 72, 72, 69, 68, 71, //66176
72, 75, 75, 70, 72, 74, 78, 82, 81, 83, 82, 80, 73, 63, 58, 51, //66192
50, 53, 54, 55, 53, 54, 61, 65, 65, 64, 63, 60, 53, 45, 41, 37, //66208
31, 25, 23, 23, 22, 24, 25, 23, 22, 23, 20, 18, 17, 14, 12, 13, //66224
13, 11, 8, 2, -5, -11, -15, -15, -14, -17, -19, -16, -10, -5, -4, -3, //66240
-1, 0, -1, -6, -10, -11, -16, -26, -28, -28, -28, -33, -34, -28, -24, -20, //66256
-18, -20, -27, -33, -40, -44, -47, -50, -52, -52, -50, -48, -44, -42, -44, -40, //66272
-37, -35, -36, -38, -41, -43, -43, -43, -44, -42, -41, -38, -35, -34, -33, -39, //66288
-47, -48, -49, -50, -54, -59, -62, -65, -68, -74, -74, -72, -68, -61, -53, -44, //66304
-44, -40, -36, -36, -37, -36, -42, -51, -57, -59, -63, -61, -59, -60, -54, -49, //66320
-51, -48, -48, -51, -54, -59, -64, -62, -58, -53, -49, -36, -33, -35, -34, -33, //66336
-33, -29, -30, -29, -29, -34, -39, -39, -35, -32, -31, -27, -28, -32, -33, -36, //66352
-36, -31, -25, -17, -10, -5, -3, -5, -4, -8, -15, -21, -25, -22, -23, -24, //66368
-20, -14, -7, 0, 3, 11, 15, 15, 16, 16, 17, 17, 15, 13, 18, 26, //66384
30, 33, 39, 46, 46, 45, 44, 42, 40, 39, 43, 44, 45, 48, 49, 49, //66400
50, 49, 51, 52, 51, 48, 46, 48, 48, 48, 50, 51, 56, 62, 68, 76, //66416
85, 85, 79, 73, 70, 66, 62, 62, 58, 57, 60, 61, 64, 70, 75, 76, //66432
79, 82, 76, 71, 66, 63, 65, 67, 67, 69, 67, 64, 60, 61, 64, 66, //66448
65, 64, 59, 54, 51, 48, 41, 34, 28, 26, 25, 27, 29, 29, 30, 29, //66464
27, 26, 23, 14, 12, 11, 7, 4, 2, -4, -6, -5, -4, -1, 9, 13, //66480
13, 16, 18, 15, 12, 10, 9, 6, 3, 2, 5, 8, 7, 7, 10, 8, //66496
8, 9, 8, 9, 8, 3, -1, -8, -13, -16, -17, -18, -19, -19, -19, -18, //66512
-19, -19, -18, -15, -13, -16, -23, -25, -28, -31, -34, -34, -33, -33, -35, -38, //66528
-40, -39, -39, -38, -40, -41, -42, -41, -41, -45, -49, -51, -52, -58, -63, -64, //66544
-65, -71, -81, -85, -85, -87, -93, -92, -86, -88, -87, -83, -79, -79, -77, -76, //66560
-79, -81, -83, -88, -90, -90, -88, -87, -88, -82, -81, -80, -78, -74, -71, -68, //66576
-64, -63, -63, -62, -58, -56, -60, -60, -54, -53, -57, -53, -50, -52, -54, -49, //66592
-44, -41, -38, -33, -29, -30, -32, -27, -23, -24, -23, -21, -22, -21, -18, -16, //66608
-15, -12, -9, -12, -11, -2, 9, 15, 15, 15, 20, 21, 18, 18, 20, 21, //66624
18, 22, 25, 29, 37, 43, 47, 51, 50, 48, 50, 50, 47, 50, 57, 61, //66640
61, 60, 62, 58, 55, 58, 60, 63, 59, 54, 54, 56, 58, 61, 64, 69, //66656
74, 78, 81, 88, 87, 82, 79, 77, 71, 71, 74, 73, 72, 73, 76, 85, //66672
87, 83, 82, 85, 79, 77, 75, 66, 58, 53, 50, 49, 52, 60, 66, 70, //66688
75, 72, 71, 75, 76, 68, 65, 64, 56, 43, 35, 31, 31, 31, 27, 25, //66704
26, 26, 22, 18, 16, 16, 17, 17, 18, 19, 18, 12, 9, 12, 13, 8, //66720
1, -6, -13, -16, -16, -15, -12, -7, -3, 2, 4, 2, 1, 1, -6, -15, //66736
-21, -32, -54, -65, -66, -61, -59, -55, -44, -40, -34, -31, -28, -23, -24, -33, //66752
-42, -49, -59, -68, -66, -64, -60, -52, -43, -40, -40, -36, -32, -31, -31, -32, //66768
-35, -36, -38, -40, -34, -33, -39, -43, -44, -48, -44, -37, -37, -42, -45, -47, //66784
-51, -49, -45, -45, -45, -42, -43, -37, -29, -27, -26, -22, -22, -23, -24, -29, //66800
-36, -43, -43, -45, -45, -43, -44, -49, -51, -52, -50, -49, -54, -58, -59, -58, //66816
-57, -52, -46, -49, -49, -47, -47, -47, -44, -41, -39, -37, -39, -46, -48, -48, //66832
-48, -50, -47, -43, -40, -39, -42, -44, -43, -44, -42, -41, -41, -38, -36, -33, //66848
-25, -19, -16, -12, -15, -20, -20, -21, -25, -28, -28, -30, -30, -27, -24, -16, //66864
-12, -5, 2, 7, 8, 9, 11, 12, 13, 12, 7, 5, 6, 7, 11, 18, //66880
29, 33, 36, 39, 40, 39, 41, 42, 41, 43, 51, 51, 45, 42, 39, 39, //66896
40, 41, 48, 56, 59, 62, 73, 76, 78, 80, 78, 73, 64, 62, 58, 54, //66912
52, 54, 61, 65, 67, 71, 76, 77, 78, 81, 79, 77, 77, 75, 71, 69, //66928
69, 70, 66, 55, 53, 53, 50, 52, 62, 61, 59, 61, 61, 58, 49, 46, //66944
44, 37, 35, 36, 32, 31, 27, 22, 22, 22, 20, 20, 19, 16, 15, 17, //66960
16, 15, 18, 20, 18, 19, 19, 18, 21, 23, 22, 22, 19, 15, 11, 5, //66976
-5, -8, -11, -14, -12, -6, -4, -5, -5, -6, -8, -7, -4, -6, -11, -12, //66992
-12, -16, -19, -22, -27, -29, -24, -22, -24, -25, -23, -22, -21, -18, -17, -18, //67008
-22, -29, -33, -30, -30, -30, -33, -40, -45, -46, -47, -48, -46, -40, -40, -45, //67024
-50, -51, -53, -59, -63, -65, -64, -62, -62, -63, -62, -64, -63, -59, -62, -63, //67040
-60, -64, -72, -71, -65, -68, -70, -70, -75, -83, -85, -88, -91, -90, -89, -81, //67056
-74, -70, -64, -58, -55, -50, -46, -44, -48, -55, -56, -59, -63, -62, -57, -56, //67072
-49, -46, -46, -41, -37, -38, -35, -32, -34, -35, -34, -38, -39, -32, -28, -29, //67088
-25, -15, -12, -9, -5, -6, -6, -3, -2, -3, -5, -7, -9, -9, -9, -8, //67104
-8, -9, -8, -7, -5, 1, 7, 10, 13, 13, 14, 18, 19, 21, 23, 23, //67120
25, 26, 26, 32, 39, 43, 42, 41, 44, 43, 44, 46, 46, 47, 51, 52, //67136
51, 51, 52, 53, 54, 55, 53, 48, 44, 39, 32, 37, 43, 42, 40, 49, //67152
56, 64, 75, 81, 82, 82, 76, 70, 68, 64, 59, 56, 53, 53, 56, 55, //67168
49, 49, 53, 56, 58, 60, 61, 60, 62, 61, 57, 54, 47, 39, 32, 28, //67184
28, 30, 28, 29, 29, 30, 31, 30, 31, 31, 27, 21, 12, 9, 6, 1, //67200
-3, -3, 2, 3, 4, 4, 0, -1, 7, 11, 13, 15, 12, 1, -5, -10, //67216
-11, -9, -12, -26, -31, -31, -33, -36, -34, -36, -37, -35, -32, -25, -17, -15, //67232
-11, -10, -14, -16, -27, -38, -40, -42, -45, -45, -44, -38, -37, -39, -33, -24, //67248
-24, -23, -20, -21, -21, -21, -20, -16, -17, -17, -17, -19, -19, -18, -18, -19, //67264
-22, -20, -18, -20, -20, -21, -27, -31, -32, -30, -22, -15, -15, -14, -16, -17, //67280
-13, -8, -5, -4, -3, -2, -6, -18, -25, -35, -46, -48, -45, -44, -40, -33, //67296
-31, -32, -28, -26, -26, -23, -20, -25, -29, -29, -31, -31, -29, -30, -29, -29, //67312
-32, -34, -32, -31, -33, -35, -35, -35, -34, -33, -35, -35, -32, -31, -36, -40, //67328
-41, -43, -43, -40, -39, -35, -31, -31, -30, -27, -27, -26, -27, -30, -30, -22, //67344
-21, -23, -23, -20, -19, -14, -10, -4, 2, 6, 10, 17, 21, 24, 24, 24, //67360
18, 18, 22, 23, 21, 24, 28, 28, 30, 32, 33, 33, 34, 39, 44, 45, //67376
50, 52, 54, 57, 55, 54, 54, 51, 53, 57, 60, 62, 65, 66, 65, 58, //67392
56, 61, 60, 61, 61, 55, 57, 61, 59, 55, 54, 59, 61, 59, 64, 67, //67408
68, 67, 64, 62, 65, 61, 58, 62, 64, 61, 62, 61, 54, 49, 46, 48, //67424
50, 52, 53, 53, 56, 53, 47, 44, 43, 42, 40, 40, 40, 38, 36, 32, //67440
28, 31, 30, 26, 22, 18, 17, 17, 16, 17, 18, 22, 26, 27, 25, 24, //67456
25, 23, 16, 11, 7, 3, -3, -5, -6, -4, 0, 2, 3, 7, 12, 14, //67472
11, 3, -8, -17, -18, -21, -23, -19, -17, -14, -15, -17, -19, -19, -21, -24, //67488
-26, -26, -30, -36, -38, -40, -42, -44, -39, -35, -35, -33, -27, -22, -17, -20, //67504
-23, -25, -30, -41, -46, -50, -53, -57, -61, -62, -60, -59, -58, -58, -59, -58, //67520
-60, -60, -57, -59, -69, -74, -78, -79, -79, -80, -74, -72, -71, -73, -74, -69, //67536
-68, -65, -59, -59, -57, -52, -56, -54, -52, -58, -62, -60, -61, -61, -58, -50, //67552
-48, -51, -47, -45, -44, -41, -41, -41, -41, -44, -48, -49, -51, -53, -51, -49, //67568
-47, -44, -35, -27, -20, -17, -15, -12, -9, -6, -8, -12, -12, -13, -16, -14, //67584
-17, -17, -12, -19, -15, -5, -5, -3, 7, 4, 4, 7, 9, 10, 4, 1, //67600
0, -3, -4, -3, 1, 8, 11, 15, 19, 16, 18, 20, 17, 16, 16, 19, //67616
21, 16, 15, 24, 37, 40, 43, 48, 52, 53, 52, 52, 53, 54, 49, 39, //67632
37, 41, 40, 42, 46, 46, 48, 50, 49, 54, 63, 63, 57, 51, 49, 46, //67648
40, 48, 56, 58, 60, 63, 68, 70, 69, 68, 69, 69, 59, 51, 49, 47, //67664
40, 33, 27, 28, 29, 31, 34, 30, 29, 29, 24, 24, 27, 24, 24, 24, //67680
25, 26, 25, 26, 28, 21, 12, 11, 7, 5, 6, 5, 6, 9, 9, 10, //67696
12, 10, 7, 6, 2, -1, -6, -14, -24, -30, -32, -33, -27, -16, -10, -10, //67712
-16, -24, -29, -36, -47, -54, -55, -53, -49, -44, -38, -38, -36, -29, -27, -27, //67728
-23, -25, -27, -35, -44, -45, -39, -41, -42, -43, -41, -41, -41, -36, -30, -26, //67744
-24, -24, -23, -23, -29, -36, -35, -34, -35, -35, -34, -36, -41, -43, -44, -40, //67760
-34, -29, -24, -22, -20, -18, -18, -26, -29, -31, -33, -30, -28, -28, -25, -23, //67776
-25, -27, -30, -36, -38, -36, -32, -28, -23, -20, -16, -9, -7, -10, -11, -13, //67792
-18, -26, -34, -35, -32, -31, -27, -23, -16, -6, -4, -4, -9, -15, -18, -24, //67808
-21, -17, -17, -15, -14, -11, -11, -14, -19, -23, -29, -34, -38, -36, -35, -38, //67824
-31, -25, -21, -15, -6, 1, 6, 5, 2, -4, -5, -8, -12, -11, -9, -5, //67840
0, 7, 15, 18, 18, 18, 12, 9, 12, 8, 6, 10, 14, 15, 16, 21, //67856
25, 21, 22, 26, 28, 30, 31, 31, 31, 29, 26, 34, 49, 56, 60, 66, //67872
66, 62, 57, 51, 49, 45, 40, 39, 40, 42, 42, 45, 51, 56, 62, 67, //67888
69, 68, 66, 64, 58, 57, 61, 62, 60, 57, 54, 57, 61, 63, 61, 61, //67904
65, 65, 61, 58, 54, 43, 37, 32, 28, 26, 28, 29, 29, 32, 33, 33, //67920
38, 36, 30, 24, 17, 11, 7, 5, 3, 2, 2, 4, 9, 12, 14, 17, //67936
19, 27, 28, 28, 29, 26, 24, 19, 13, 11, 11, 8, 11, 14, 17, 19, //67952
15, 15, 22, 24, 24, 21, 22, 21, 9, 6, 0, -4, -1, -8, -8, -6, //67968
-6, -6, -4, -2, -3, -6, -9, -11, -15, -14, -17, -19, -15, -13, -13, -17, //67984
-20, -21, -24, -28, -32, -34, -34, -36, -39, -39, -39, -43, -46, -46, -46, -46, //68000
-49, -55, -60, -62, -65, -72, -71, -68, -66, -64, -61, -63, -62, -59, -62, -64, //68016
-59, -58, -59, -61, -62, -62, -67, -67, -65, -62, -61, -60, -57, -56, -57, -57, //68032
-63, -66, -64, -66, -61, -55, -56, -51, -44, -44, -46, -45, -43, -41, -36, -34, //68048
-34, -28, -24, -23, -19, -19, -18, -14, -8, -8, -11, -11, -8, -8, -4, -5, //68064
-6, -4, -5, -7, -7, -7, -7, -8, -7, -5, -8, -7, -5, -5, -3, -1, //68080
3, 7, 10, 17, 23, 27, 31, 30, 28, 28, 19, 13, 11, 8, 9, 21, //68096
30, 36, 42, 45, 47, 53, 53, 54, 54, 50, 47, 46, 43, 41, 38, 41, //68112
45, 42, 43, 45, 49, 55, 49, 44, 43, 43, 43, 43, 43, 50, 60, 65, //68128
65, 67, 68, 65, 65, 62, 54, 50, 45, 35, 34, 35, 35, 40, 38, 34, //68144
34, 36, 41, 39, 37, 39, 38, 35, 27, 21, 20, 19, 17, 21, 27, 28, //68160
26, 21, 17, 12, 7, 4, 3, 2, -1, -5, -1, -2, -4, -4, -9, -16, //68176
-21, -30, -34, -39, -49, -48, -42, -33, -21, -14, -7, -5, -6, -8, -12, -17, //68192
-25, -34, -41, -42, -43, -47, -49, -47, -43, -35, -24, -17, -15, -17, -22, -27, //68208
-33, -36, -42, -49, -52, -51, -45, -38, -31, -28, -28, -31, -33, -34, -34, -36, //68224
-41, -43, -42, -38, -34, -27, -20, -13, -10, -5, 0, 2, -2, -9, -16, -25, //68240
-32, -38, -43, -47, -47, -44, -44, -44, -44, -45, -40, -37, -36, -34, -32, -30, //68256
-26, -24, -21, -15, -14, -16, -17, -14, -12, -16, -17, -18, -20, -20, -21, -23, //68272
-22, -21, -20, -20, -18, -13, -12, -13, -12, -10, -9, -11, -14, -16, -16, -14, //68288
-8, -4, 0, 0, -5, -10, -14, -15, -12, -14, -18, -22, -25, -24, -20, -16, //68304
-9, -3, 1, 5, 4, 3, 0, -5, -12, -16, -18, -21, -15, -13, -10, -5, //68320
-3, 0, 6, 4, 5, 5, 5, 1, -2, -4, -6, -7, -9, -4, 1, 4, //68336
8, 12, 17, 20, 22, 26, 31, 36, 41, 43, 43, 40, 38, 34, 36, 37, //68352
34, 34, 34, 38, 42, 43, 45, 47, 49, 49, 50, 52, 51, 50, 51, 50, //68368
52, 53, 53, 51, 50, 52, 53, 55, 55, 54, 53, 52, 55, 59, 59, 58, //68384
56, 51, 44, 42, 43, 40, 40, 38, 37, 38, 38, 39, 41, 44, 42, 37, //68400
36, 29, 29, 30, 29, 32, 33, 31, 33, 36, 38, 41, 41, 38, 32, 27, //68416
19, 12, 8, 10, 10, 7, 9, 11, 11, 14, 18, 20, 23, 22, 18, 15, //68432
13, 9, 6, 2, -1, -2, -3, -4, -5, -3, -2, -3, -1, 1, -3, -6, //68448
-10, -15, -20, -24, -27, -29, -26, -21, -20, -22, -26, -28, -30, -31, -31, -36, //68464
-38, -42, -49, -51, -50, -52, -52, -53, -56, -57, -59, -64, -69, -73, -74, -72, //68480
-68, -65, -62, -60, -58, -57, -58, -60, -59, -59, -63, -66, -69, -71, -68, -65, //68496
-63, -56, -51, -49, -46, -44, -50, -51, -52, -57, -61, -62, -65, -64, -61, -62, //68512
-58, -49, -43, -42, -40, -41, -40, -39, -37, -29, -22, -20, -20, -14, -10, -7, //68528
1, 7, 5, 6, 2, -3, -2, -3, -6, -5, -4, -5, -5, -7, -8, -4, //68544
0, 2, 7, 13, 12, 12, 17, 20, 20, 26, 27, 26, 26, 24, 21, 23, //68560
24, 23, 22, 21, 16, 17, 18, 17, 18, 19, 16, 26, 37, 38, 42, 48, //68576
45, 46, 45, 43, 49, 53, 49, 46, 43, 42, 41, 39, 37, 39, 45, 43, //68592
39, 38, 35, 34, 40, 43, 44, 46, 46, 43, 44, 43, 40, 44, 41, 33, //68608
33, 33, 29, 34, 37, 37, 36, 37, 37, 35, 32, 29, 24, 16, 11, 6, //68624
5, 9, 12, 14, 13, 13, 15, 16, 16, 13, 11, 11, 8, 2, 2, -2, //68640
-7, -6, -6, -9, -14, -14, -13, -19, -27, -27, -29, -30, -32, -32, -26, -17, //68656
-14, -14, -14, -12, -9, -8, -15, -21, -25, -34, -45, -45, -45, -49, -54, -54, //68672
-53, -56, -55, -48, -45, -44, -37, -32, -28, -26, -24, -16, -11, -7, -7, -11, //68688
-17, -26, -30, -32, -37, -43, -49, -53, -57, -57, -54, -50, -34, -27, -21, -12, //68704
-9, -8, -6, -7, -5, -2, -2, -2, -10, -14, -20, -28, -30, -30, -33, -35, //68720
-35, -34, -34, -29, -26, -20, -14, -11, -8, -4, 0, -2, -6, -7, -12, -10, //68736
-5, -5, -6, -8, -11, -17, -22, -21, -19, -17, -12, -7, -5, -4, -1, 0, //68752
-2, -1, 3, 5, 2, -7, -13, -18, -18, -15, -10, -5, -7, -9, -8, -10, //68768
-15, -15, -17, -23, -26, -25, -21, -16, -8, -1, 3, 5, 12, 15, 14, 13, //68784
17, 14, 7, 2, -1, 0, -1, 1, 3, 3, 4, 5, 5, 8, 8, 9, //68800
11, 8, 9, 12, 10, 9, 13, 14, 11, 13, 17, 22, 26, 30, 30, 32, //68816
29, 23, 23, 21, 20, 23, 28, 31, 27, 21, 22, 16, 13, 20, 27, 32, //68832
35, 37, 43, 50, 55, 55, 55, 58, 58, 55, 49, 46, 47, 49, 50, 53, //68848
54, 54, 55, 51, 47, 51, 52, 52, 47, 42, 41, 39, 39, 40, 38, 39, //68864
40, 38, 38, 37, 37, 39, 41, 43, 43, 40, 37, 33, 30, 32, 34, 32, //68880
28, 28, 28, 31, 36, 37, 36, 31, 27, 24, 24, 21, 18, 23, 25, 28, //68896
28, 26, 26, 25, 20, 16, 12, 9, 1, -1, -1, -4, -2, 4, 8, 12, //68912
16, 16, 13, 12, 11, 6, 0, -4, -9, -19, -21, -17, -14, -15, -18, -16, //68928
-16, -21, -23, -25, -32, -33, -39, -46, -47, -48, -50, -49, -47, -47, -48, -44, //68944
-47, -49, -50, -56, -58, -56, -61, -63, -62, -63, -60, -54, -54, -53, -51, -50, //68960
-52, -49, -46, -48, -44, -40, -40, -37, -35, -35, -32, -35, -46, -47, -46, -46, //68976
-46, -47, -48, -47, -42, -39, -38, -24, -24, -24, -23, -31, -36, -33, -37, -39, //68992
-37, -29, -23, -21, -15, -11, -8, -4, -3, -2, -4, -6, -5, -4, -6, -6, //69008
-4, 1, 3, 1, 1, 4, 11, 13, 10, 14, 17, 12, 10, 15, 20, 23, //69024
21, 23, 21, 13, 8, 3, 1, 2, 3, 9, 22, 24, 20, 19, 26, 28, //69040
27, 25, 20, 19, 22, 23, 25, 31, 40, 46, 46, 42, 39, 36, 32, 32, //69056
33, 25, 22, 19, 11, 6, 13, 20, 25, 31, 37, 39, 44, 47, 45, 44, //69072
42, 36, 31, 31, 28, 21, 15, 9, 12, 22, 26, 24, 29, 36, 37, 40, //69088
40, 36, 34, 32, 33, 35, 33, 31, 27, 21, 19, 19, 20, 21, 12, 12, //69104
13, 14, 15, 12, 13, 10, 5, 5, 7, 9, 7, 1, -3, -7, -10, -8, //69120
-6, -5, -7, -8, -3, -9, -19, -26, -33, -38, -44, -46, -46, -45, -42, -41, //69136
-43, -36, -33, -34, -33, -32, -30, -28, -31, -33, -39, -49, -49, -50, -48, -44, //69152
-46, -46, -47, -46, -42, -39, -39, -38, -39, -42, -44, -45, -51, -56, -58, -60, //69168
-57, -52, -47, -40, -35, -30, -25, -15, -12, -14, -20, -25, -30, -39, -40, -42, //69184
-48, -50, -46, -38, -34, -30, -26, -26, -31, -29, -29, -29, -24, -20, -15, -12, //69200
-8, -5, -2, 0, -2, -5, -6, -7, -9, -6, -4, -3, 0, 4, 5, -1, //69216
-4, -5, -6, -9, -10, -10, -12, -7, -1, -1, 0, 0, 2, 1, -1, 1, //69232
-2, -2, 0, -1, -2, -1, 2, 4, 8, 15, 19, 17, 15, 13, 11, 11, //69248
12, 17, 13, 7, 7, 10, 12, 17, 18, 20, 20, 15, 16, 16, 12, 11, //69264
10, 10, 13, 15, 18, 17, 16, 24, 27, 30, 31, 30, 30, 30, 30, 30, //69280
30, 31, 31, 33, 37, 37, 35, 35, 27, 22, 20, 17, 14, 13, 17, 23, //69296
30, 36, 40, 41, 43, 41, 39, 37, 35, 36, 36, 38, 44, 48, 48, 41, //69312
40, 44, 48, 51, 48, 40, 34, 30, 29, 27, 24, 21, 16, 17, 19, 24, //69328
34, 35, 36, 36, 37, 40, 38, 36, 31, 22, 16, 10, 6, 5, 5, 6, //69344
9, 20, 29, 34, 35, 36, 37, 39, 35, 31, 27, 21, 15, 14, 16, 18, //69360
19, 21, 25, 28, 33, 38, 40, 41, 43, 41, 38, 32, 25, 16, 10, 10, //69376
10, 10, 10, 11, 14, 15, 16, 20, 17, 14, 9, 2, 0, 0, -3, -7, //69392
-12, -14, -18, -20, -21, -25, -29, -34, -40, -46, -49, -50, -50, -51, -50, -46, //69408
-47, -48, -50, -52, -55, -59, -63, -68, -73, -76, -80, -83, -82, -78, -75, -76, //69424
-75, -70, -68, -65, -60, -57, -54, -49, -45, -45, -46, -44, -44, -46, -47, -48, //69440
-50, -56, -58, -54, -52, -50, -47, -43, -43, -42, -35, -29, -27, -25, -26, -29, //69456
-30, -26, -20, -17, -14, -12, -10, -7, 2, 6, 9, 10, 7, 2, -2, -4, //69472
-4, -3, 1, 3, 6, 10, 15, 19, 22, 25, 28, 26, 23, 23, 18, 17, //69488
17, 15, 13, 9, 4, 1, 0, 4, 11, 19, 33, 40, 46, 48, 49, 53, //69504
51, 48, 49, 46, 42, 35, 38, 41, 42, 47, 53, 54, 53, 54, 55, 55, //69520
51, 52, 49, 43, 43, 47, 53, 59, 63, 64, 59, 52, 49, 43, 38, 33, //69536
28, 24, 24, 25, 27, 28, 26, 26, 25, 25, 23, 20, 16, 13, 13, 13, //69552
13, 13, 9, 10, 11, 13, 18, 21, 20, 17, 13, 11, 8, 3, 1, -3, //69568
-7, -9, -11, -15, -20, -22, -23, -27, -29, -30, -32, -33, -32, -28, -22, -20, //69584
-17, -17, -17, -17, -14, -14, -19, -27, -32, -38, -42, -41, -38, -36, -34, -29, //69600
-28, -29, -28, -30, -35, -42, -46, -48, -51, -54, -52, -50, -45, -40, -35, -31, //69616
-26, -24, -21, -19, -19, -20, -28, -32, -37, -40, -40, -40, -37, -34, -30, -27, //69632
-26, -22, -20, -20, -19, -18, -21, -28, -32, -34, -35, -36, -36, -36, -37, -37, //69648
-33, -27, -21, -18, -16, -18, -21, -20, -17, -16, -15, -14, -12, -13, -11, -10, //69664
-11, -12, -13, -14, -16, -16, -16, -19, -22, -22, -21, -19, -16, -12, -7, -5, //69680
-3, -1, 0, -1, -4, -9, -13, -15, -14, -11, -7, -6, -7, -8, -10, -10, //69696
-10, -12, -14, -18, -21, -19, -14, -8, -1, 4, 6, 10, 13, 16, 17, 15, //69712
11, 5, 2, 2, 2, 2, 4, 8, 12, 13, 15, 18, 16, 13, 14, 15, //69728
15, 15, 15, 14, 14, 16, 19, 20, 20, 22, 24, 25, 29, 36, 40, 43, //69744
45, 49, 50, 49, 53, 55, 55, 56, 56, 54, 50, 46, 46, 46, 47, 48, //69760
47, 46, 45, 43, 47, 48, 46, 44, 42, 44, 44, 42, 41, 42, 43, 42, //69776
42, 43, 42, 41, 39, 37, 38, 36, 29, 23, 18, 16, 17, 22, 26, 25, //69792
24, 26, 29, 33, 32, 29, 27, 21, 17, 19, 19, 15, 14, 13, 9, 7, //69808
9, 12, 13, 15, 19, 22, 22, 20, 17, 13, 12, 13, 9, 5, 2, 0, //69824
-3, -5, -2, 3, 6, 7, 7, 7, 8, 7, 4, 4, 2, 0, 0, 0, //69840
1, 0, 1, 1, 1, 0, -3, -6, -10, -14, -15, -17, -21, -21, -21, -20, //69856
-21, -21, -21, -23, -26, -28, -31, -35, -40, -48, -52, -57, -59, -57, -57, -57, //69872
-54, -53, -52, -51, -54, -58, -59, -56, -55, -54, -48, -47, -47, -48, -47, -42, //69888
-40, -43, -45, -47, -51, -51, -47, -45, -45, -43, -43, -45, -47, -48, -49, -51, //69904
-55, -60, -60, -60, -57, -53, -43, -37, -31, -25, -22, -23, -27, -30, -31, -31, //69920
-28, -23, -19, -19, -18, -14, -9, -5, -1, 3, 2, -1, -2, -1, 3, 5, //69936
2, 1, 2, 8, 9, 10, 13, 15, 18, 17, 20, 25, 27, 26, 25, 22, //69952
24, 28, 29, 32, 32, 32, 34, 35, 34, 33, 35, 34, 34, 33, 28, 29, //69968
31, 29, 31, 36, 39, 40, 45, 48, 48, 47, 46, 46, 48, 47, 47, 55, //69984
57, 52, 49, 49, 53, 51, 47, 43, 45, 46, 42, 43, 46, 45, 44, 43, //70000
42, 44, 43, 41, 41, 36, 28, 26, 26, 25, 20, 19, 19, 17, 18, 16, //70016
14, 16, 19, 18, 17, 15, 15, 9, 10, 11, 6, 2, -1, -6, -8, -11, //70032
-13, -10, -12, -22, -28, -33, -36, -40, -38, -35, -28, -19, -14, -8, 3, 7, //70048
9, 6, -1, -7, -23, -32, -36, -41, -45, -51, -53, -53, -53, -50, -44, -38, //70064
-33, -32, -30, -28, -28, -24, -26, -26, -22, -17, -11, -14, -22, -27, -31, -36, //70080
-42, -46, -49, -52, -55, -56, -55, -47, -39, -37, -31, -24, -22, -18, -18, -17, //70096
-12, -6, -3, -6, -13, -17, -24, -34, -37, -39, -42, -47, -47, -47, -43, -36, //70112
-33, -32, -24, -24, -24, -21, -22, -27, -29, -32, -31, -28, -27, -30, -30, -28, //70128
-28, -24, -20, -18, -14, -10, -9, -8, -8, -6, -4, -6, -11, -13, -15, -15, //70144
-11, -5, -1, 6, 18, 16, 11, 8, 5, -5, -13, -18, -23, -28, -32, -35, //70160
-34, -32, -27, -17, -7, 6, 11, 15, 17, 15, 10, 7, 6, 6, 4, 2, //70176
3, 5, 8, 9, 12, 18, 20, 21, 23, 24, 24, 23, 28, 31, 31, 30, //70192
30, 33, 33, 28, 27, 29, 26, 27, 32, 33, 32, 30, 29, 34, 39, 39, //70208
37, 37, 34, 29, 25, 26, 28, 27, 26, 30, 38, 43, 44, 49, 51, 54, //70224
56, 55, 52, 47, 40, 35, 33, 33, 34, 34, 33, 33, 36, 40, 43, 45, //70240
47, 50, 52, 50, 42, 41, 39, 35, 34, 36, 36, 35, 32, 30, 31, 34, //70256
33, 32, 29, 26, 24, 20, 19, 19, 16, 12, 15, 20, 21, 22, 25, 28, //70272
28, 26, 25, 21, 17, 13, 5, 7, 7, 8, 15, 18, 18, 21, 22, 17, //70288
6, -4, -8, -10, -11, -11, -9, -2, 2, 7, 9, 10, 15, 12, 3, -2, //70304
-6, -14, -28, -33, -34, -32, -31, -28, -23, -24, -24, -23, -23, -27, -33, -38, //70320
-41, -47, -56, -63, -68, -74, -73, -67, -63, -58, -56, -58, -60, -59, -56, -59, //70336
-61, -60, -61, -63, -59, -56, -57, -55, -54, -54, -52, -50, -49, -47, -46, -47, //70352
-45, -42, -42, -42, -40, -43, -48, -51, -54, -57, -56, -55, -50, -45, -40, -35, //70368
-24, -16, -14, -15, -11, -9, -9, -7, -7, -8, -10, -14, -12, -10, -3, 4, //70384
10, 20, 25, 25, 22, 20, 20, 15, 13, 13, 14, 16, 14, 15, 16, 17, //70400
17, 16, 20, 21, 20, 19, 20, 21, 17, 19, 23, 22, 21, 22, 18, 14, //70416
13, 13, 10, 15, 22, 24, 27, 30, 32, 34, 30, 29, 29, 29, 40, 42, //70432
39, 40, 45, 51, 50, 50, 51, 47, 44, 45, 44, 42, 41, 39, 33, 28, //70448
30, 28, 23, 19, 16, 19, 17, 11, 13, 15, 11, 7, 11, 16, 15, 12, //70464
7, 9, 12, 10, 10, 12, 12, 15, 15, 9, 3, 1, 2, -3, -8, -9, //70480
-9, -7, -10, -16, -15, -10, -7, -13, -10, -8, -11, -10, -5, -3, -2, 2, //70496
7, 7, 3, -2, -6, -11, -17, -24, -23, -22, -25, -28, -28, -27, -31, -33, //70512
-31, -28, -31, -44, -49, -46, -45, -45, -42, -47, -50, -46, -42, -36, -31, -30, //70528
-29, -25, -23, -27, -24, -21, -25, -23, -19, -22, -29, -29, -30, -33, -30, -22, //70544
-23, -24, -24, -26, -27, -24, -25, -29, -34, -36, -38, -43, -45, -44, -40, -36, //70560
-34, -32, -31, -27, -22, -18, -11, -12, -14, -15, -19, -23, -29, -34, -36, -33, //70576
-30, -30, -26, -23, -24, -21, -17, -16, -17, -17, -16, -19, -23, -19, -17, -16, //70592
-14, -10, -2, -2, 1, 3, 3, 3, -1, -1, -2, -2, 0, -2, -2, 0, //70608
-2, -5, -6, -4, -2, 0, 2, 1, 2, 1, -2, 3, 6, 4, 0, -4, //70624
-3, -4, -4, -5, -11, -10, -9, -13, -18, -16, -10, -7, -2, 3, 8, 13, //70640
19, 22, 25, 29, 29, 30, 30, 27, 25, 24, 22, 18, 19, 19, 20, 22, //70656
21, 22, 25, 25, 24, 28, 32, 28, 25, 28, 31, 33, 38, 41, 42, 41, //70672
38, 36, 35, 35, 35, 35, 34, 31, 31, 30, 32, 36, 37, 39, 35, 30, //70688
26, 22, 21, 20, 19, 20, 20, 20, 20, 19, 17, 13, 10, 9, 9, 7, //70704
10, 15, 15, 12, 16, 21, 19, 13, 12, 8, 8, 7, 4, 4, 6, 13, //70720
13, 12, 14, 17, 17, 14, 12, 9, 9, 10, 8, 9, 11, 12, 14, 17, //70736
17, 17, 16, 17, 19, 20, 24, 27, 27, 26, 26, 25, 27, 29, 27, 24, //70752
24, 21, 16, 13, 11, 8, 4, 2, -1, -3, -4, -4, -4, -4, -5, -8, //70768
-8, -9, -12, -10, -6, -7, -10, -8, -10, -14, -14, -15, -17, -15, -17, -20, //70784
-22, -24, -27, -33, -35, -37, -36, -34, -34, -35, -34, -33, -37, -46, -50, -51, //70800
-54, -56, -55, -54, -56, -55, -53, -55, -55, -53, -52, -50, -49, -48, -50, -50, //70816
-48, -45, -42, -42, -40, -35, -35, -34, -30, -23, -22, -22, -20, -23, -26, -26, //70832
-24, -23, -21, -18, -17, -17, -11, -8, -4, 0, 1, 2, 5, 6, 5, 6, //70848
6, 4, 2, 2, 4, 4, 4, 4, 2, 1, 2, 5, 6, 7, 12, 17, //70864
21, 23, 22, 22, 23, 23, 22, 24, 24, 22, 21, 19, 19, 23, 26, 28, //70880
29, 27, 23, 15, 15, 16, 16, 15, 15, 13, 8, 8, 11, 15, 23, 25, //70896
27, 26, 22, 20, 17, 14, 10, 7, 5, 1, -1, -2, -6, -5, 0, 2, //70912
4, 7, 12, 16, 18, 21, 21, 19, 18, 20, 19, 16, 13, 11, 11, 11, //70928
8, 5, 4, 5, 7, 10, 13, 16, 16, 16, 17, 19, 22, 22, 22, 26, //70944
26, 22, 22, 22, 23, 26, 32, 35, 34, 35, 34, 31, 34, 35, 35, 35, //70960
36, 39, 41, 41, 38, 35, 32, 28, 24, 23, 22, 22, 20, 22, 25, 25, //70976
22, 20, 19, 18, 17, 19, 20, 18, 17, 19, 20, 20, 21, 23, 26, 27, //70992
27, 24, 21, 17, 13, 9, 5, 5, 5, 3, 1, -1, -2, -3, -4, -5, //71008
-7, -9, -10, -11, -13, -16, -16, -16, -16, -17, -16, -15, -16, -17, -18, -21, //71024
-22, -26, -30, -32, -33, -32, -29, -30, -30, -30, -30, -29, -27, -25, -28, -31, //71040
-32, -36, -36, -35, -35, -34, -32, -28, -26, -25, -22, -23, -27, -27, -24, -23, //71056
-24, -26, -27, -28, -30, -31, -32, -32, -27, -25, -24, -23, -21, -21, -18, -15, //71072
-16, -18, -20, -19, -20, -20, -19, -17, -17, -21, -23, -22, -21, -21, -22, -22, //71088
-21, -20, -19, -17, -10, -10, -13, -14, -13, -12, -20, -24, -24, -25, -27, -31, //71104
-31, -27, -26, -30, -30, -29, -27, -27, -30, -30, -31, -31, -32, -33, -30, -29, //71120
-30, -27, -24, -24, -22, -22, -20, -19, -19, -19, -18, -13, -8, -7, -4, -2, //71136
-4, -8, -7, -5, -3, -4, -4, 1, 4, 5, 4, 1, 5, 6, 4, 7, //71152
12, 13, 9, 9, 11, 12, 12, 11, 9, 10, 10, 6, 6, 16, 16, 14, //71168
16, 21, 25, 29, 29, 30, 31, 30, 26, 22, 24, 24, 21, 22, 21, 17, //71184
13, 10, 8, 7, 1, 2, 5, 8, 7, 3, 4, 4, 1, -3, -2, 3, //71200
4, 3, 1, 2, 5, 4, 1, 3, 9, 9, 2, 3, 7, 8, 8, 5, //71216
4, 7, 8, 8, 8, 12, 15, 12, 13, 15, 14, 12, 14, 15, 16, 16, //71232
15, 16, 17, 17, 14, 14, 17, 18, 17, 18, 20, 23, 24, 25, 29, 33, //71248
33, 32, 33, 33, 31, 28, 29, 32, 30, 27, 24, 23, 25, 26, 25, 28, //71264
29, 29, 26, 24, 25, 25, 22, 20, 19, 18, 16, 14, 13, 15, 14, 10, //71280
8, 7, 7, 7, 7, 10, 12, 11, 8, 6, 6, 7, 9, 13, 17, 20, //71296
18, 14, 13, 12, 6, 2, 3, 6, 6, 5, 5, 4, 3, 3, 4, 5, //71312
5, 2, 0, -1, -3, -5, -3, 0, 1, 0, 1, 4, 4, 1, -1, -5, //71328
-8, -13, -18, -19, -17, -18, -18, -12, -9, -9, -10, -10, -11, -14, -16, -17, //71344
-17, -16, -16, -14, -12, -12, -10, -7, -4, -4, -5, -6, -9, -9, -9, -9, //71360
-6, -2, -2, -4, -3, -2, -1, -1, -2, -5, -5, -5, -6, -7, -8, -9, //71376
-10, -9, -8, -7, -2, -2, -4, -4, -3, -3, -3, -4, -7, -7, -7, -10, //71392
-11, -9, -8, -9, -12, -13, -14, -13, -12, -12, -11, -10, -12, -14, -14, -13, //71408
-12, -14, -13, -12, -13, -14, -15, -15, -14, -11, -11, -12, -10, -8, -8, -7, //71424
-8, -10, -10, -11, -11, -9, -6, -2, 0, 2, 2, 2, 5, 8, 9, 8, //71440
6, 5, 2, 3, 4, 5, 8, 11, 12, 9, 8, 9, 9, 7, 7, 5, //71456
5, 6, 7, 7, 7, 6, 5, 2, 2, 5, 4, 3, 2, 1, 0, -4, //71472
-5, -5, -6, -6, -5, -3, -1, -1, -2, -1, 0, -1, -2, -3, -4, -5, //71488
-10, -14, -15, -16, -19, -19, -19, -18, -16, -17, -19, -21, -22, -23, -24, -24, //71504
-24, -22, -24, -25, -23, -23, -23, -21, -18, -18, -15, -13, -13, -12, -11, -9, //71520
-9, -10, -6, -6, -7, -9, -12, -13, -11, -10, -12, -12, -10, -8, -8, -8, //71536
-8, -8, -8, -9, -8, -6, -5, -6, -5, -5, -7, -7, -4, -3, -5, -5, //71552
-5, -5, -5, -3, -4, -3, -2, -2, 1, 7, 10, 12, 12, 12, 12, 9, //71568
6, 6, 10, 9, 4, 3, 3, 2, 1, -2, -2, 1, 2, 0, -3, -4, //71584
-4, -4, -4, -3, -2, -3, -3, -2, -1, 2, 4, 1, 1, 0, -3, -5, //71600
-5, -5, -3, 1, 4, 5, 3, 2, 3, 4, 2, -1, 0, -4, -10, -13, //71616
-13, -12, -12, -11, -11, -12, -12, -10, -8, -6, -4, -2, -2, -2, -1, 0, //71632
2, 4, 4, 5, 5, 4, 4, 5, 6, 7, 6, 4, 5, 8, 6, 5, //71648
5, 5, 5, 5, 8, 10, 11, 11, 11, 12, 13, 15, 19, 21, 20, 17, //71664
16, 15, 13, 14, 15, 15, 15, 17, 20, 21, 24, 25, 28, 31, 32, 32, //71680
27, 28, 29, 26, 24, 24, 23, 21, 19, 19, 19, 19, 16, 13, 13, 11, //71696
11, 12, 9, 5, 2, 1, 0, -2, -3, -3, -2, -1, -1, 0, 0, -1, //71712
-4, -5, -4, -4, -4, -5, -5, -4, -5, -6, -4, -1, -2, -3, -2, -1, //71728
1, 4, 4, 5, 7, 6, 6, 7, 6, 7, 8, 7, 7, 8, 9, 8, //71744
10, 12, 13, 15, 14, 13, 9, 7, 7, 5, 6, 6, 2, 1, 2, 2, //71760
3, 6, 10, 11, 12, 14, 12, 11, 10, 7, 8, 6, 2, 1, 2, 3, //71776
4, 4, 3, 5, 8, 9, 10, 10, 9, 7, 6, 7, 5, 5, 7, 6, //71792
3, 3, 1, -2, -3, -5, -5, -3, -4, -8, -8, -8, -9, -8, -9, -10, //71808
-9, -9, -10, -10, -11, -13, -16, -18, -17, -15, -16, -17, -17, -16, -16, -16, //71824
-18, -19, -19, -21, -24, -23, -20, -21, -22, -18, -17, -15, -16, -18, -15, -14, //71840
-15, -15, -15, -16, -17, -18, -18, -18, -16, -16, -17, -16, -16, -15, -13, -9, //71856
-8, -7, -4, -3, 0, 2, 3, 4, 5, 7, 9, 11, 10, 11, 12, 12, //71872
10, 10, 8, 5, 5, 7, 8, 8, 10, 11, 9, 10, 13, 14, 14, 14, //71888
14, 15, 14, 13, 14, 15, 16, 19, 20, 22, 23, 22, 19, 19, 19, 19, //71904
19, 20, 23, 23, 24, 25, 25, 23, 22, 21, 20, 19, 19, 17, 17, 17, //71920
16, 14, 12, 10, 9, 8, 4, 2, 2, -1, -2, -2, -2, 1, 3, 4, //71936
6, 6, 3, 0, -4, -7, -10, -12, -12, -10, -8, -6, -4, -3, -3, -4, //71952
-5, -7, -8, -9, -11, -14, -15, -16, -16, -15, -16, -18, -18, -17, -19, -22, //71968
-21, -21, -21, -21, -19, -17, -17, -19, -20, -21, -21, -22, -21, -19, -19, -18, //71984
-16, -17, -16, -17, -17, -17, -18, -22, -25, -27, -28, -29, -32, -33, -35, -36, //72000
-37, -38, -34, -31, -31, -32, -30, -31, -32, -34, -35, -36, -36, -35, -32, -29, //72016
-27, -25, -23, -19, -18, -18, -17, -16, -16, -14, -14, -15, -15, -14, -12, -12, //72032
-10, -8, -8, -6, -6, -7, -6, -3, -1, -1, 2, 3, 4, 4, 2, -1, //72048
-2, -3, -5, -6, -4, -1, 2, 3, 4, 5, 5, 3, 4, 3, 1, 0, //72064
-3, -4, -4, -3, -3, -3, -1, 1, 3, 3, 3, 3, 5, 3, 1, 0, //72080
0, -3, -5, -7, -6, -3, -4, -4, -3, 0, 4, 5, 5, 8, 7, 6, //72096
5, 6, 10, 9, 10, 12, 12, 10, 8, 6, 4, 3, 2, 3, 6, 5, //72112
5, 7, 10, 10, 10, 12, 16, 16, 15, 16, 17, 18, 18, 16, 16, 19, //72128
19, 16, 15, 17, 15, 12, 11, 12, 12, 10, 9, 10, 11, 11, 8, 6, //72144
6, 7, 6, 6, 6, 4, 4, 4, 3, 3, 4, 4, 1, -1, -2, -2, //72160
-2, -2, -2, -1, 0, 1, 0, 1, 1, -1, 0, -1, -4, -3, -3, -4, //72176
-4, -1, 1, 1, 0, 0, 2, 5, 7, 8, 9, 10, 11, 11, 13, 16, //72192
18, 17, 14, 15, 15, 13, 12, 13, 14, 13, 14, 16, 17, 17, 15, 14, //72208
15, 17, 19, 19, 20, 20, 19, 19, 19, 17, 14, 14, 15, 14, 13, 11, //72224
9, 8, 8, 9, 9, 9, 9, 7, 5, 5, 5, 6, 5, 3, 4, 4, //72240
5, 6, 7, 10, 10, 11, 12, 11, 11, 12, 13, 14, 14, 13, 12, 13, //72256
13, 11, 11, 11, 11, 10, 8, 8, 6, 6, 6, 5, 5, 3, 1, 0, //72272
-2, -2, -4, -4, -3, -2, -2, -4, -3, -4, -6, -7, -8, -9, -9, -9, //72288
-9, -8, -9, -8, -6, -4, -1, -1, -1, -3, -6, -8, -10, -11, -15, -17, //72304
-17, -17, -18, -18, -19, -19, -16, -17, -18, -18, -18, -19, -19, -18, -16, -15, //72320
-15, -14, -14, -13, -8, -6, -6, -5, -2, 0, 2, 2, 3, 4, 5, 5, //72336
6, 7, 6, 5, 5, 4, 4, 5, 6, 7, 8, 8, 10, 11, 12, 14, //72352
14, 14, 13, 13, 13, 13, 14, 17, 19, 20, 20, 20, 19, 20, 20, 18, //72368
19, 19, 18, 20, 22, 22, 22, 20, 17, 15, 16, 17, 18, 21, 20, 19, //72384
17, 15, 13, 11, 10, 9, 6, 6, 4, 2, 0, 0, 0, 0, 2, 1, //72400
0, -1, -4, -6, -8, -9, -8, -8, -8, -8, -11, -12, -13, -16, -17, -19, //72416
-20, -21, -21, -20, -20, -24, -27, -28, -26, -27, -29, -29, -30, -31, -32, -32, //72432
-31, -32, -33, -33, -32, -31, -30, -31, -32, -34, -34, -31, -30, -30, -28, -26, //72448
-25, -23, -22, -23, -24, -25, -24, -22, -21, -19, -20, -20, -20, -20, -21, -22, //72464
-19, -17, -19, -18, -17, -16, -17, -16, -13, -13, -13, -12, -11, -10, -9, -9, //72480
-7, -4, -4, -6, -6, -4, -1, -1, 2, 1, -1, -3, -5, -2, 0, 0, //72496
1, 1, 1, 3, 4, 5, 7, 9, 9, 7, 8, 6, 6, 7, 8, 8, //72512
8, 10, 10, 11, 11, 10, 8, 6, 5, 4, 5, 7, 7, 7, 7, 5, //72528
1, 1, 2, 2, 1, -1, -3, -3, -1, -1, -2, -4, -6, -8, -7, -3, //72544
-1, 0, 1, 2, 4, 6, 8, 10, 11, 10, 10, 11, 11, 10, 8, 7, //72560
7, 5, 2, 1, -1, -4, -5, -5, -4, -5, -6, -7, -7, -5, -3, -4, //72576
-6, -7, -10, -12, -13, -14, -16, -16, -17, -16, -13, -12, -12, -10, -6, -4, //72592
-4, -4, -3, -2, -3, -3, -1, 0, 0, 0, -1, -2, -1, -1, -2, -2, //72608
-1, -2, -2, -1, 0, -3, -6, -8, -8, -5, -1, 1, 4, 6, 7, 8, //72624
10, 11, 12, 14, 16, 16, 18, 17, 14, 13, 12, 11, 11, 12, 13, 12, //72640
12, 11, 11, 11, 10, 10, 10, 9, 7, 4, 5, 5, 2, 2, 1, 0, //72656
0, 0, 0, 0, -1, -2, -3, -4, 1, 1, 1, 2, 1, 1, 1, 2, //72672
3, 4, 7, 11, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 14, 14, //72688
15, 16, 17, 18, 18, 19, 19, 19, 20, 21, 22, 21, 19, 20, 21, 21, //72704
21, 22, 23, 24, 24, 23, 22, 21, 19, 19, 18, 20, 21, 22, 23, 23, //72720
20, 17, 17, 17, 15, 14, 13, 11, 12, 12, 10, 8, 4, 4, 3, 2, //72736
1, -2, -2, 0, 0, 0, 0, -1, -1, 0, 2, 2, 2, 2, 2, 3, //72752
2, 2, 3, 3, 3, 3, 4, 5, 4, 3, 4, 4, 5, 5, 4, 2, //72768
0, -1, -3, -3, -3, -4, -4, -3, -3, -3, -4, -5, -4, -3, -2, -1, //72784
0, -1, -3, -3, -3, -1, 1, 2, 3, 4, 6, 8, 9, 10, 12, 8, //72800
7, 5, 5, 6, 8, 10, 9, 8, 8, 8, 9, 12, 14, 15, 15, 15, //72816
15, 15, 15, 14, 13, 13, 10, 9, 8, 9, 9, 8, 6, 5, 6, 6, //72832
5, 4, 4, 3, 1, -1, -1, -3, -4, -4, -3, -2, -1, -2, -4, -5, //72848
-6, -8, -11, -11, -12, -13, -13, -14, -15, -16, -16, -15, -14, -15, -14, -14, //72864
-16, -18, -18, -15, -14, -13, -12, -11, -11, -13, -16, -18, -20, -21, -22, -23, //72880
-23, -24, -24, -22, -22, -23, -24, -25, -25, -25, -24, -22, -21, -19, -19, -19, //72896
-19, -20, -20, -18, -17, -16, -15, -14, -15, -15, -16, -19, -19, -19, -19, -17, //72912
-19, -21, -21, -20, -20, -20, -20, -22, -23, -23, -21, -20, -21, -19, -17, -17, //72928
-16, -14, -14, -13, -12, -11, -11, -13, -16, -15, -13, -14, -14, -14, -13, -11, //72944
-11, -11, -7, -5, -4, -5, -7, -7, -7, -8, -7, -6, -6, -7, -9, -11, //72960
-11, -12, -15, -18, -20, -20, -18, -16, -15, -11, -7, -6, -5, -4, -3, -3, //72976
-2, 1, 5, 6, 6, 5, 3, 0, -1, 0, 3, 4, 5, 7, 7, 6, //72992
4, 3, 2, 1, 1, 3, 3, 4, 3, 3, 3, 2, 3, 2, 3, 6, //73008
8, 9, 8, 8, 8, 8, 7, 7, 8, 10, 11, 13, 14, 14, 15, 14, //73024
15, 17, 14, 12, 11, 10, 7, 6, 5, 3, 3, 3, 0, -4, -6, -6, //73040
-7, -8, -7, -4, -2, 1, 5, 7, 4, 3, 3, 3, 2, 1, 2, 3, //73056
3, 3, 5, 6, 5, 5, 6, 6, 6, 9, 11, 10, 7, 6, 3, -1, //73072
-3, -4, -5, -5, -6, -6, -6, -7, -9, -12, -12, -13, -14, -14, -15, -15, //73088
-15, -15, -14, -14, -14, -11, -10, -8, -7, -6, -6, -9, -9, -9, -9, -8, //73104
-5, -3, -3, -5, -5, -5, -4, -4, -3, -2, -1, 1, 3, 5, 8, 10, //73120
11, 12, 13, 13, 12, 11, 10, 9, 7, 8, 10, 12, 16, 18, 16, 13, //73136
9, 4, 0, 0, 3, 4, 4, 5, 4, 4, 4, 3, 1, 3, 9, 10, //73152
12, 14, 16, 14, 13, 12, 10, 11, 11, 10, 11, 12, 13, 16, 16, 15, //73168
15, 17, 16, 13, 15, 20, 18, 17, 19, 21, 21, 24, 25, 24, 23, 22, //73184
15, 12, 10, 9, 10, 11, 12, 15, 17, 17, 16, 17, 15, 12, 8, 5, //73200
5, 4, 3, 3, 4, 4, 0, 0, 1, 0, 0, 0, -3, -6, -7, -8, //73216
-9, -11, -13, -12, -9, -7, -7, -5, -5, -4, -2, 0, 0, 2, 2, 2, //73232
2, 2, 0, -5, -1, 6, 11, 14, 20, 19, 14, 11, 9, 9, 13, 16, //73248
20, 20, 19, 21, 24, 24, 22, 22, 22, 17, 16, 15, 14, 13, 13, 14, //73264
15, 14, 15, 16, 19, 17, 16, 16, 14, 12, 12, 11, 12, 17, 21, 23, //73280
23, 22, 21, 22, 23, 23, 23, 22, 20, 18, 16, 15, 16, 18, 23, 25, //73296
23, 20, 18, 16, 15, 16, 16, 12, 11, 11, 10, 7, 5, 7, 7, 4, //73312
2, 1, 0, -2, -2, -1, 1, 1, -3, -3, -2, -3, -4, -7, -10, -11, //73328
-13, -16, -16, -16, -17, -17, -15, -12, -11, -7, -5, -5, -6, -9, -14, -17, //73344
-17, -16, -16, -16, -15, -17, -18, -19, -22, -26, -25, -23, -21, -18, -16, -15, //73360
-18, -20, -21, -22, -24, -22, -22, -23, -25, -28, -31, -34, -36, -36, -33, -33, //73376
-33, -33, -35, -36, -36, -37, -38, -37, -35, -33, -31, -33, -35, -35, -35, -34, //73392
-31, -28, -28, -27, -28, -29, -32, -34, -34, -34, -32, -29, -26, -24, -19, -16, //73408
-15, -12, -8, -7, -8, -7, -4, -2, -1, -2, -5, -9, -12, -11, -10, -9, //73424
-6, -4, -4, -2, -3, -5, -5, -4, -4, -7, -9, -11, -13, -16, -16, -16, //73440
-15, -12, -9, -5, -3, -4, -4, -5, -5, -5, -2, -3, -5, -4, -4, -7, //73456
-7, -8, -12, -11, -8, -3, 0, 2, 3, 3, 2, 1, 4, 5, 6, 7, //73472
6, 3, 0, -3, -3, -4, -4, -2, 0, 1, 3, 4, 5, 6, 6, 5, //73488
5, 10, 13, 13, 12, 12, 14, 12, 13, 14, 14, 12, 14, 17, 19, 20, //73504
21, 21, 17, 14, 13, 10, 8, 8, 6, 4, 5, 5, 2, -1, -1, -2, //73520
-3, -4, -4, -1, -1, -1, -1, -1, -2, -1, -2, -4, -5, -8, -12, -12, //73536
-10, -10, -9, -6, -5, -5, -5, -6, -7, -10, -13, -15, -16, -16, -14, -10, //73552
-7, -5, -4, -3, -2, -2, -1, -1, -1, -2, -2, -3, -2, 0, -1, -1, //73568
0, 1, 2, 3, 3, 2, 0, 0, 0, 2, 7, 12, 13, 13, 15, 17, //73584
17, 17, 19, 21, 21, 22, 23, 23, 22, 21, 19, 17, 17, 19, 21, 20, //73600
21, 22, 19, 17, 16, 16, 16, 17, 18, 17, 14, 13, 16, 15, 13, 14, //73616
14, 14, 13, 11, 9, 5, 3, 2, 4, 7, 9, 9, 8, 9, 11, 8, //73632
8, 8, 8, 6, 6, 8, 9, 9, 9, 10, 10, 10, 10, 11, 14, 15, //73648
15, 14, 14, 15, 15, 12, 13, 13, 10, 11, 12, 12, 12, 11, 10, 8, //73664
6, 4, 4, 5, 6, 7, 10, 11, 11, 11, 12, 12, 11, 9, 5, 1, //73680
-1, -5, -6, -5, -4, -5, -5, -3, -2, -2, -3, -4, -5, -6, -5, -4, //73696
-5, -5, -5, -5, -5, -5, -5, -5, -2, -1, 0, 1, 2, 4, 4, 4, //73712
6, 7, 9, 9, 8, 7, 7, 8, 9, 9, 9, 11, 13, 13, 13, 15, //73728
16, 17, 17, 16, 16, 16, 16, 15, 13, 11, 9, 8, 7, 7, 8, 10, //73744
12, 14, 15, 15, 15, 12, 10, 8, 6, 5, 5, 7, 8, 9, 10, 12, //73760
14, 14, 13, 13, 13, 11, 11, 10, 10, 11, 12, 12, 12, 14, 15, 15, //73776
12, 8, 3, 2, 1, 0, -1, -2, -3, -2, 1, 2, 3, 3, 1, 0, //73792
0, 1, 1, 0, 0, -1, -3, -5, -5, -4, -4, -4, -5, -5, -6, -9, //73808
-11, -11, -12, -16, -19, -22, -23, -23, -23, -23, -23, -24, -26, -28, -29, -27, //73824
-27, -27, -28, -30, -31, -31, -31, -29, -28, -29, -29, -32, -33, -35, -36, -36, //73840
-36, -36, -36, -34, -33, -34, -34, -34, -33, -34, -34, -32, -31, -30, -29, -28, //73856
-29, -29, -29, -29, -27, -24, -22, -22, -23, -23, -23, -21, -17, -15, -15, -15, //73872
-15, -15, -12, -10, -9, -7, -7, -6, -5, -5, -4, -3, -3, -5, -5, -3, //73888
-2, 0, 0, 1, 1, 1, 2, 2, 3, 3, 2, 1, -1, -3, -4, -4, //73904
-3, 0, 0, -1, -1, 0, 0, 0, 0, 1, 4, 4, 4, 4, 3, -1, //73920
-1, -1, -1, 0, 0, -2, -2, -1, -1, -1, -1, 1, 2, 3, 6, 6, //73936
6, 5, 4, 5, 8, 11, 13, 13, 12, 12, 10, 9, 10, 11, 11, 10, //73952
10, 9, 8, 7, 6, 3, -1, -2, -1, -1, 0, 2, 2, 2, 0, -2, //73968
-2, -2, 0, 0, 0, 0, -2, -6, -8, -9, -9, -8, -9, -9, -10, -11, //73984
-13, -13, -13, -13, -14, -14, -14, -14, -14, -15, -16, -15, -15, -15, -13, -13, //74000
-13, -14, -14, -13, -14, -16, -16, -15, -12, -9, -7, -7, -8, -8, -8, -4, //74016
-1, 1, 4, 6, 6, 8, 10, 12, 14, 15, 17, 16, 17, 18, 18, 16, //74032
15, 16, 17, 18, 19, 21, 23, 22, 21, 20, 20, 16, 15, 14, 13, 12, //74048
12, 10, 10, 11, 11, 9, 7, 2, 0, -1, 0, 2, 1, 1, 1, 2, //74064
5, 5, 4, 4, 4, 4, 5, 7, 9, 8, 8, 9, 9, 11, 13, 14, //74080
14, 14, 15, 14, 16, 18, 19, 19, 18, 18, 17, 17, 18, 19, 19, 21, //74096
22, 23, 23, 22, 21, 19, 16, 14, 13, 14, 14, 14, 14, 15, 15, 14, //74112
14, 15, 16, 16, 16, 15, 16, 16, 13, 11, 12, 13, 12, 11, 10, 9, //74128
8, 5, 3, 3, 3, 3, 4, 7, 9, 11, 13, 14, 15, 15, 15, 13, //74144
12, 12, 12, 13, 14, 15, 15, 15, 16, 17, 19, 21, 18, 17, 15, 12, //74160
12, 12, 12, 11, 11, 12, 13, 13, 15, 15, 14, 12, 12, 12, 11, 11, //74176
10, 10, 10, 9, 9, 9, 8, 8, 8, 8, 7, 8, 9, 9, 8, 9, //74192
10, 12, 13, 15, 14, 13, 12, 9, 7, 7, 5, 4, 4, 5, 5, 5, //74208
5, 7, 8, 8, 9, 10, 11, 10, 10, 10, 10, 7, 4, 2, 2, 2, //74224
5, 6, 6, 6, 6, 3, 1, 1, 0, -1, -2, -4, -7, -8, -9, -12, //74240
-12, -11, -10, -9, -6, -6, -8, -9, -13, -16, -16, -17, -16, -14, -14, -16, //74256
-17, -17, -18, -17, -17, -18, -19, -20, -20, -20, -20, -17, -14, -15, -15, -15, //74272
-16, -17, -18, -20, -23, -25, -26, -27, -28, -27, -24, -23, -22, -22, -19, -18, //74288
-18, -17, -16, -17, -17, -18, -20, -21, -21, -22, -23, -23, -23, -23, -21, -21, //74304
-21, -22, -23, -24, -25, -28, -31, -33, -33, -33, -32, -30, -30, -31, -31, -31, //74320
-29, -27, -25, -23, -21, -20, -20, -20, -19, -19, -19, -17, -18, -20, -21, -22, //74336
-23, -23, -23, -23, -23, -21, -21, -18, -16, -13, -12, -11, -11, -12, -15, -18, //74352
-19, -16, -13, -13, -12, -11, -9, -10, -9, -8, -8, -9, -10, -13, -16, -15, //74368
-14, -14, -11, -5, -1, 2, 4, 5, 6, 8, 7, 7, 6, 4, 2, 0, //74384
-1, 1, 4, 5, 5, 6, 6, 7, 8, 10, 8, 7, 6, 5, 5, 8, //74400
9, 11, 15, 16, 19, 22, 22, 21, 21, 19, 17, 16, 16, 16, 16, 17, //74416
16, 17, 17, 15, 12, 10, 9, 7, 5, 3, 0, -3, -6, -7, -7, -4, //74432
-1, 1, 2, 2, 1, 0, -3, -6, -7, -8, -7, -5, -3, 2, 3, 3, //74448
3, 4, 8, 9, 8, 6, 2, -1, -6, -8, -8, -5, -1, 2, 7, 11, //74464
13, 13, 13, 11, 10, 8, 6, 6, 6, 3, 0, -1, -2, -3, -4, -5, //74480
-6, -6, -7, -7, -7, -8, -10, -14, -16, -16, -13, -9, -6, -5, -4, -4, //74496
-8, -8, -8, -9, -10, -10, -10, -11, -10, -7, -4, -1, 0, 1, 2, 2, //74512
1, -2, -3, -3, -4, -4, -2, 1, 4, 6, 8, 10, 12, 12, 11, 11, //74528
11, 10, 12, 14, 16, 17, 18, 17, 17, 16, 14, 14, 13, 13, 10, 5, //74544
1, -2, -3, -4, -3, 0, 2, 4, 8, 10, 9, 6, 7, 7, 8, 11, //74560
12, 13, 12, 8, 8, 7, 7, 7, 5, 5, 7, 9, 11, 12, 14, 17, //74576
17, 18, 21, 21, 22, 23, 23, 23, 23, 21, 17, 15, 14, 13, 14, 15, //74592
18, 18, 17, 17, 17, 16, 14, 12, 13, 12, 9, 6, 4, 3, 2, 3, //74608
4, 7, 9, 9, 9, 10, 9, 7, 6, 5, 4, 3, 3, 4, 4, 3, //74624
2, 0, -3, -6, -6, -4, -4, -6, -6, -7, -7, -7, -4, 1, 4, 7, //74640
8, 8, 8, 10, 10, 10, 9, 9, 11, 12, 12, 11, 11, 9, 8, 11, //74656
13, 14, 16, 16, 15, 15, 14, 12, 11, 8, 7, 8, 9, 12, 14, 13, //74672
11, 9, 8, 8, 12, 13, 13, 13, 13, 11, 9, 9, 9, 8, 7, 5, //74688
5, 5, 4, 5, 6, 6, 6, 7, 9, 12, 13, 13, 13, 13, 14, 14, //74704
14, 15, 14, 13, 12, 11, 12, 12, 12, 11, 11, 11, 9, 7, 5, 4, //74720
4, 2, -1, -3, -5, -5, -4, -4, -4, -4, -6, -7, -8, -10, -11, -12, //74736
-13, -14, -15, -16, -17, -18, -18, -18, -15, -13, -12, -12, -13, -16, -16, -17, //74752
-17, -16, -17, -17, -17, -17, -18, -19, -21, -26, -28, -29, -29, -26, -24, -21, //74768
-19, -18, -16, -16, -16, -18, -20, -22, -25, -28, -31, -33, -34, -35, -35, -36, //74784
-37, -36, -35, -35, -35, -36, -38, -41, -44, -44, -43, -44, -43, -42, -42, -43, //74800
-44, -43, -44, -45, -42, -40, -38, -35, -37, -38, -35, -33, -30, -28, -26, -24, //74816
-22, -22, -18, -17, -18, -17, -17, -19, -18, -17, -17, -17, -17, -13, -11, -11, //74832
-12, -12, -12, -10, -9, -10, -13, -14, -14, -14, -12, -8, -5, -3, -3, -2, //74848
-2, -2, -3, -3, -1, 1, 3, 4, 4, 4, 3, 0, -1, -1, -1, 0, //74864
-2, -2, -3, -3, -2, -3, -3, -2, 1, 4, 8, 10, 10, 9, 6, 3, //74880
0, -1, -1, 0, 1, 2, 3, 4, 5, 4, 4, 4, 6, 7, 8, 9, //74896
11, 12, 11, 11, 10, 9, 11, 13, 11, 11, 12, 14, 13, 13, 12, 11, //74912
10, 11, 11, 10, 10, 10, 8, 6, 1, 1, 2, 2, -1, -2, 0, 1, //74928
0, -1, 1, 5, 5, 4, 5, 6, 5, 1, 0, 0, -1, -4, -2, 1, //74944
2, 4, 6, 5, 5, 7, 9, 10, 10, 10, 9, 6, 3, 1, -2, -5, //74960
-5, -3, -1, 0, 0, 3, 3, 1, -2, -2, -2, -1, 1, 4, 6, 6, //74976
3, 3, 4, 5, 4, 4, 5, 4, 3, 3, 3, 0, 0, 2, 4, 6, //74992
8, 9, 11, 13, 13, 15, 18, 18, 18, 18, 19, 22, 25, 27, 27, 24, //75008
22, 21, 20, 22, 22, 22, 20, 18, 17, 16, 15, 15, 15, 16, 17, 18, //75024
19, 18, 13, 8, 7, 6, 4, 2, 0, -2, -2, -2, -1, -1, 2, 1, //75040
0, 1, 1, 1, 3, 4, 6, 6, 6, 9, 12, 14, 17, 19, 18, 14, //75056
11, 9, 9, 10, 11, 14, 17, 18, 20, 23, 24, 22, 18, 16, 12, 9, //75072
6, 4, 2, 0, -3, -4, -4, -2, 0, 2, 5, 7, 8, 7, 6, 7, //75088
7, 7, 6, 4, 2, 1, 1, 0, -2, -4, -4, -3, -2, 2, 4, 6, //75104
8, 8, 4, 2, 1, -1, -1, -1, 0, -1, -4, -7, -9, -9, -8, -6, //75120
-4, -2, -1, 0, 1, 1, 2, 3, 4, 2, 1, 2, 3, 3, 2, 1, //75136
1, 1, 2, 5, 5, 5, 4, 2, 1, 0, -1, -1, -1, 0, 3, 5, //75152
6, 6, 7, 7, 8, 10, 11, 11, 12, 14, 14, 11, 8, 5, 4, 2, //75168
3, 6, 8, 10, 13, 15, 16, 16, 15, 14, 14, 14, 13, 12, 13, 13, //75184
13, 11, 11, 12, 12, 12, 12, 13, 13, 12, 11, 9, 9, 7, 8, 8, //75200
8, 8, 7, 6, 6, 5, 2, 0, -1, 0, 0, 0, 0, -1, -2, -4, //75216
-6, -6, -6, -10, -15, -17, -16, -16, -19, -22, -23, -25, -27, -28, -26, -24, //75232
-23, -25, -25, -25, -24, -24, -26, -26, -25, -27, -26, -24, -23, -25, -28, -27, //75248
-24, -25, -25, -27, -27, -26, -27, -28, -29, -29, -29, -27, -26, -23, -24, -25, //75264
-28, -27, -27, -29, -30, -28, -28, -30, -29, -26, -28, -28, -25, -25, -26, -28, //75280
-28, -27, -29, -29, -28, -28, -28, -32, -33, -31, -29, -28, -29, -27, -24, -22, //75296
-23, -23, -15, -11, -10, -10, -9, -6, -2, 1, 2, 1, 2, 4, 3, 3, //75312
4, 4, 4, 7, 8, 8, 7, 8, 8, 5, 3, 0, -2, -3, -6, -7, //75328
-6, -4, 0, 3, 3, 5, 5, 3, -1, -4, -4, -5, -8, -8, -8, -9, //75344
-9, -7, -6, -6, -6, -3, -1, -3, -7, -7, -10, -10, -11, -11, -7, -4, //75360
-2, -1, -3, -3, -1, -2, -8, -8, -7, -8, -12, -14, -13, -13, -15, -13, //75376
-10, -10, -8, -5, -4, -5, -8, -8, -11, -14, -13, -13, -13, -12, -12, -10, //75392
-11, -14, -14, -18, -18, -18, -19, -20, -24, -24, -22, -23, -25, -22, -17, -16, //75408
-14, -11, -12, -13, -17, -17, -17, -18, -17, -13, -10, -8, -8, -6, -2, -3, //75424
-2, 0, -1, -2, -3, -3, -2, -1, 2, 2, 4, 8, 12, 15, 16, 16, //75440
15, 15, 13, 11, 12, 11, 11, 13, 15, 16, 19, 22, 23, 23, 24, 24, //75456
20, 19, 19, 18, 17, 15, 13, 9, 9, 11, 13, 13, 15, 15, 14, 14, //75472
12, 7, 7, 8, 9, 10, 10, 9, 11, 11, 12, 14, 14, 14, 12, 11, //75488
13, 16, 17, 18, 19, 20, 21, 22, 24, 25, 25, 23, 22, 21, 19, 19, //75504
20, 24, 23, 20, 25, 26, 25, 24, 27, 24, 20, 17, 16, 15, 15, 13, //75520
13, 12, 13, 14, 14, 14, 15, 15, 13, 12, 13, 12, 10, 8, 8, 8, //75536
10, 11, 14, 14, 12, 13, 14, 14, 14, 12, 12, 13, 15, 17, 17, 17, //75552
17, 17, 18, 19, 20, 22, 20, 17, 15, 12, 9, 8, 10, 13, 16, 17, //75568
18, 19, 19, 17, 16, 16, 16, 13, 11, 10, 9, 8, 8, 7, 7, 6, //75584
5, 4, 2, 1, 1, 1, 1, 2, 2, 3, 4, 5, 6, 7, 7, 5, //75600
3, 0, -3, -5, -6, -7, -7, -5, -3, 0, 0, 1, 1, -1, -4, -3, //75616
-3, -2, -1, -1, -1, -4, -6, -5, -2, -1, -2, -1, 1, 3, 5, 5, //75632
4, 3, 2, 3, 6, 7, 8, 9, 7, 5, 6, 6, 5, 3, 1, 0, //75648
-3, -3, -4, -4, -5, -5, -4, -3, -3, -4, -5, -6, -7, -10, -11, -10, //75664
-9, -9, -10, -10, -9, -6, -7, -8, -8, -10, -14, -16, -16, -16, -15, -15, //75680
-15, -15, -15, -16, -16, -17, -17, -15, -13, -13, -13, -14, -16, -16, -14, -16, //75696
-16, -15, -16, -20, -22, -21, -22, -24, -23, -20, -20, -20, -20, -21, -23, -25, //75712
-25, -27, -29, -29, -29, -27, -27, -26, -26, -27, -30, -30, -27, -24, -23, -21, //75728
-22, -25, -26, -28, -31, -33, -34, -37, -38, -38, -37, -36, -36, -35, -33, -32, //75744
-30, -28, -30, -30, -30, -31, -33, -32, -33, -34, -31, -27, -27, -27, -25, -24, //75760
-23, -21, -17, -16, -17, -19, -21, -21, -22, -23, -22, -23, -24, -22, -21, -20, //75776
-17, -13, -10, -9, -8, -9, -11, -14, -14, -12, -13, -11, -7, -5, -4, -2, //75792
0, 2, 2, 4, 10, 14, 14, 14, 17, 20, 19, 18, 17, 16, 16, 15, //75808
14, 14, 15, 15, 13, 14, 18, 21, 24, 24, 25, 25, 22, 19, 18, 16, //75824
15, 13, 12, 13, 14, 11, 10, 11, 10, 9, 11, 12, 12, 11, 8, 7, //75840
4, -1, -4, -6, -9, -9, -9, -6, -6, -8, -8, -8, -5, -5, -5, -5, //75856
-4, -2, -5, -6, -4, -3, -3, -3, -1, -2, -3, -3, -1, 3, 4, 4, //75872
2, 2, 2, 3, 4, 3, 0, -2, -4, -8, -9, -8, -7, -7, -3, 0, //75888
2, 1, 1, 4, 8, 9, 9, 8, 7, 4, 2, 2, 1, -1, -3, -7, //75904
-8, -7, -7, -8, -7, -5, -7, -9, -9, -9, -10, -13, -13, -13, -14, -15, //75920
-16, -16, -16, -16, -15, -12, -5, -3, -2, 2, 5, 5, 4, 7, 10, 10, //75936
8, 6, 3, 1, -2, -4, -1, 3, 6, 8, 9, 12, 12, 10, 10, 9, //75952
9, 10, 11, 10, 8, 7, 7, 6, 6, 6, 7, 7, 5, 4, 3, 1, //75968
0, 0, -1, -5, -6, -6, -8, -8, -5, 0, 1, 2, 4, 8, 10, 13, //75984
15, 16, 17, 17, 16, 15, 14, 13, 11, 10, 10, 9, 10, 11, 13, 16, //76000
18, 20, 23, 24, 25, 27, 29, 32, 33, 31, 28, 25, 25, 21, 18, 19, //76016
18, 17, 17, 18, 19, 19, 17, 16, 18, 19, 18, 18, 18, 17, 16, 15, //76032
15, 14, 14, 13, 12, 13, 14, 14, 15, 15, 15, 12, 10, 10, 8, 6, //76048
6, 6, 3, 1, 2, 2, 0, -2, -3, -3, -1, 1, 4, 6, 4, 4, //76064
5, 6, 7, 7, 7, 7, 7, 7, 5, 4, 4, 5, 7, 7, 7, 8, //76080
8, 7, 4, 4, 6, 6, 6, 7, 8, 8, 6, 4, 3, 3, 3, 3, //76096
4, 4, 4, 5, 7, 7, 8, 9, 10, 10, 10, 10, 9, 10, 10, 9, //76112
7, 6, 6, 4, 4, 7, 10, 11, 12, 13, 14, 13, 15, 16, 16, 16, //76128
15, 13, 12, 13, 13, 13, 14, 14, 13, 11, 11, 10, 10, 11, 10, 9, //76144
8, 7, 5, 5, 4, 2, 1, 1, -1, 1, 4, 6, 6, 6, 4, 3, //76160
2, -1, -3, -6, -10, -13, -13, -12, -13, -13, -12, -11, -11, -8, -6, -7, //76176
-10, -12, -13, -15, -18, -19, -21, -22, -23, -23, -23, -22, -20, -22, -24, -22, //76192
-23, -24, -25, -26, -26, -24, -23, -23, -25, -26, -26, -27, -32, -36, -38, -41, //76208
-44, -46, -46, -47, -45, -43, -42, -42, -42, -42, -42, -43, -43, -41, -41, -42, //76224
-42, -43, -43, -42, -40, -40, -39, -39, -39, -38, -36, -35, -33, -29, -28, -27, //76240
-25, -23, -21, -20, -20, -19, -16, -14, -11, -8, -8, -10, -10, -8, -6, -4, //76256
-2, 0, 3, 3, 1, -1, 0, 0, 0, 0, 0, 0, 0, -2, -5, -5, //76272
-6, -5, -3, 0, 3, 3, 4, 4, 4, 6, 10, 13, 14, 13, 14, 14, //76288
11, 9, 9, 9, 8, 2, 0, -1, -2, -2, -2, -2, -2, -2, -3, -3, //76304
-2, 1, -1, -2, -3, -4, -6, -8, -8, -7, -6, -6, -4, -3, -4, -4, //76320
-3, -2, 1, 2, 2, 2, 2, -3, -5, -5, -6, -9, -9, -8, -6, -5, //76336
-4, -2, 1, 3, 4, 6, 8, 8, 6, 6, 6, 6, 3, 1, 0, -2, //76352
-4, -4, -3, -3, -1, -1, 0, 3, 3, 2, 1, 0, 0, 0, -3, -6, //76368
-6, -8, -9, -7, -4, -4, -2, 0, 0, 0, -3, -5, -8, -9, -9, -10, //76384
-9, -8, -9, -9, -8, -7, -4, -5, -5, -4, -2, -1, -2, -2, -3, -4, //76400
-5, -4, -2, 0, 1, 2, 4, 4, 4, 4, 6, 9, 10, 10, 9, 8, //76416
6, 6, 4, 5, 6, 5, 5, 6, 10, 12, 13, 17, 19, 18, 18, 19, //76432
20, 22, 22, 21, 22, 22, 20, 19, 16, 16, 16, 16, 16, 16, 16, 16, //76448
16, 17, 17, 16, 17, 17, 17, 16, 14, 11, 6, 0, -4, -6, -3, -2, //76464
-2, 0, 1, 2, 3, 5, 6, 5, 3, 3, 2, 0, -1, -2, -2, 0, //76480
4, 8, 10, 14, 17, 17, 17, 17, 16, 15, 13, 11, 11, 12, 14, 16, //76496
17, 18, 15, 15, 16, 17, 17, 15, 15, 14, 12, 10, 7, 6, 5, 5, //76512
6, 8, 10, 11, 12, 12, 10, 11, 14, 15, 16, 16, 14, 10, 7, 5, //76528
3, 0, -4, -9, -9, -9, -9, -7, -6, -6, -5, -5, -5, -5, -3, -4, //76544
-4, -4, -5, -6, -7, -7, -6, -4, -1, 2, 4, 5, 7, 7, 7, 8, //76560
7, 6, 5, 5, 6, 5, 3, 2, 2, 1, -1, 0, 1, 3, 4, 5, //76576
5, 6, 6, 5, 2, 2, 3, 2, 3, 2, 2, 3, 4, 6, 8, 11, //76592
14, 15, 17, 17, 17, 17, 15, 14, 12, 12, 14, 15, 16, 16, 17, 18, //76608
19, 19, 20, 21, 22, 24, 26, 27, 27, 28, 29, 27, 24, 18, 13, 11, //76624
11, 11, 11, 11, 12, 12, 12, 11, 11, 10, 9, 8, 6, 3, -2, -5, //76640
-7, -7, -5, -5, -8, -8, -8, -8, -8, -10, -12, -14, -17, -18, -19, -20, //76656
-22, -25, -28, -30, -31, -32, -34, -34, -33, -33, -32, -31, -33, -35, -35, -34, //76672
-35, -34, -33, -32, -33, -33, -33, -35, -35, -36, -36, -35, -36, -35, -35, -33, //76688
-31, -33, -33, -32, -32, -31, -31, -31, -31, -30, -30, -31, -30, -30, -29, -25, //76704
-26, -29, -29, -30, -32, -33, -33, -32, -36, -36, -35, -35, -32, -30, -26, -24, //76720
-23, -20, -18, -14, -12, -11, -8, -8, -8, -6, -5, -4, 0, 6, 8, 8, //76736
8, 7, 7, 8, 12, 14, 15, 17, 17, 15, 14, 13, 13, 14, 14, 13, //76752
11, 11, 10, 9, 8, 2, -1, -3, -6, -6, -4, -1, 1, 0, -1, 0, //76768
0, 1, 1, -1, -1, -1, -3, -4, -4, -5, -6, -7, -6, -5, -4, -4, //76784
-8, -11, -14, -16, -15, -12, -10, -8, -6, -3, -2, -1, -1, -1, 1, 3, //76800
5, 6, 5, 5, 5, 4, 2, -2, -4, -3, -3, -3, -3, -2, -1, -3, //76816
-4, -3, -2, -2, -3, -3, -2, -3, -3, -3, -6, -9, -11, -12, -13, -15, //76832
-16, -17, -18, -19, -19, -20, -20, -18, -18, -19, -19, -18, -18, -18, -18, -18, //76848
-19, -19, -16, -12, -9, -5, -4, -5, -6, -7, -8, -8, -9, -8, -7, -7, //76864
-8, -8, -8, -8, -8, -6, -3, 0, 1, 2, 3, 3, 2, 2, 3, 3, //76880
3, 4, 7, 10, 12, 14, 14, 16, 19, 21, 22, 22, 22, 20, 19, 19, //76896
19, 18, 15, 14, 14, 16, 20, 23, 25, 24, 23, 22, 21, 21, 20, 21, //76912
20, 18, 16, 17, 17, 16, 15, 16, 18, 22, 24, 25, 27, 28, 26, 21, //76928
18, 17, 17, 16, 13, 11, 10, 11, 12, 14, 14, 14, 15, 16, 16, 16, //76944
17, 17, 16, 14, 13, 13, 13, 13, 12, 12, 12, 13, 12, 13, 14, 13, //76960
13, 14, 14, 16, 16, 16, 16, 16, 16, 16, 17, 19, 20, 20, 18, 16, //76976
16, 14, 11, 13, 16, 16, 16, 15, 16, 18, 20, 22, 22, 21, 19, 18, //76992
18, 16, 16, 14, 13, 13, 14, 14, 12, 10, 9, 9, 10, 11, 12, 10, //77008
8, 8, 7, 6, 5, 2, 0, -1, -1, -2, 0, 0, -1, -1, -1, -1, //77024
-2, -2, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1, -2, -3, -4, //77040
-3, -3, -3, -4, -5, -5, -3, -3, -3, -3, -4, -4, -4, -3, -3, -3, //77056
-4, -3, -1, 0, 1, 2, 1, 0, 1, 1, -2, -2, -3, -4, -6, -7, //77072
-7, -5, -3, -2, -2, -2, 0, 3, 4, 4, 5, 5, 2, -2, -4, -4, //77088
-3, -2, -2, -3, -1, -1, -2, -2, -3, -3, -4, -4, -3, -1, -1, 0, //77104
-1, -2, -5, -5, -7, -8, -7, -7, -7, -9, -8, -5, -4, -5, -6, -10, //77120
-14, -16, -18, -20, -20, -18, -19, -19, -19, -19, -19, -18, -18, -18, -16, -16, //77136
-14, -13, -13, -14, -18, -21, -22, -23, -22, -23, -24, -27, -28, -29, -30, -28, //77152
-27, -29, -29, -29, -28, -29, -31, -31, -33, -33, -33, -34, -33, -35, -35, -32, //77168
-30, -30, -30, -32, -34, -34, -33, -34, -35, -35, -36, -37, -37, -38, -38, -36, //77184
-35, -33, -31, -27, -29, -30, -28, -27, -27, -28, -28, -26, -25, -23, -19, -18, //77200
-16, -17, -16, -13, -9, -7, -6, -3, -3, -4, -5, -8, -9, -10, -12, -7, //77216
-3, -2, -3, -3, -3, -5, -5, -4, -4, -4, -4, -3, -1, -2, -2, 0, //77232
3, 7, 7, 8, 14, 19, 20, 20, 20, 21, 21, 20, 20, 20, 21, 21, //77248
19, 16, 14, 13, 13, 14, 15, 18, 22, 22, 23, 24, 22, 21, 17, 11, //77264
10, 11, 8, 7, 5, 5, 3, -1, 1, 3, 3, 3, 4, 6, 4, 2, //77280
-1, -7, -11, -14, -16, -16, -15, -15, -16, -18, -20, -21, -21, -20, -17, -16, //77296
-16, -13, -10, -10, -10, -11, -12, -14, -17, -16, -12, -10, -10, -10, -9, -9, //77312
-9, -7, -6, -4, -3, -4, -4, -4, -4, -5, -5, -5, -6, -4, -2, -4, //77328
-2, -1, 0, 1, 2, 3, 3, 4, 4, 3, 4, 4, 3, 2, 1, -2, //77344
-5, -5, -6, -7, -7, -6, -6, -7, -7, -6, -5, -2, -3, -3, -2, -1, //77360
-1, 0, 2, 0, -1, 0, 0, 2, 2, 2, 3, 3, 3, 1, 3, 6, //77376
9, 12, 15, 16, 16, 15, 14, 13, 13, 13, 13, 13, 14, 14, 12, 11, //77392
9, 6, 3, 2, 4, 7, 7, 8, 11, 12, 11, 11, 11, 10, 10, 10, //77408
12, 13, 12, 11, 10, 7, 6, 5, 6, 6, 5, 4, 2, 2, 3, 4, //77424
3, 3, 4, 5, 9, 12, 14, 14, 13, 12, 10, 10, 12, 13, 14, 14, //77440
15, 15, 14, 15, 17, 20, 23, 28, 31, 32, 30, 29, 30, 29, 30, 31, //77456
31, 30, 31, 29, 27, 28, 26, 25, 26, 27, 29, 30, 30, 30, 31, 30, //77472
27, 25, 26, 25, 24, 23, 23, 22, 19, 13, 11, 12, 11, 9, 8, 9, //77488
7, 4, 2, 0, -3, -5, -4, -4, -4, -4, -2, -3, -3, -4, -4, -3, //77504
-2, -2, 0, 3, 4, 3, 0, -4, -5, -5, -4, 1, 3, 3, 4, 4, //77520
4, 4, 2, -1, -1, 1, 0, -2, -1, -1, -3, -5, -6, -5, -2, 1, //77536
2, 7, 10, 10, 10, 10, 8, 8, 10, 11, 13, 16, 17, 18, 18, 16, //77552
13, 11, 12, 11, 12, 15, 16, 18, 19, 18, 16, 14, 12, 11, 12, 14, //77568
16, 17, 18, 18, 17, 16, 15, 14, 13, 13, 11, 9, 7, 7, 5, 1, //77584
-1, 0, 3, 3, 2, 4, 4, 3, 4, 3, -1, -3, -4, -4, -3, -2, //77600
-3, -5, -6, -6, -6, -4, -5, -6, -7, -8, -9, -10, -12, -17, -21, -22, //77616
-22, -20, -17, -15, -12, -12, -12, -11, -12, -12, -13, -13, -14, -15, -15, -16, //77632
-19, -22, -23, -22, -21, -19, -20, -21, -22, -24, -26, -30, -34, -37, -38, -38, //77648
-38, -37, -34, -34, -37, -39, -40, -44, -46, -46, -44, -41, -40, -39, -40, -41, //77664
-44, -45, -44, -43, -44, -45, -44, -44, -45, -44, -44, -44, -41, -39, -39, -34, //77680
-31, -30, -30, -28, -25, -25, -26, -26, -25, -21, -17, -16, -14, -14, -14, -11, //77696
-9, -8, -7, -5, -2, 2, 5, 6, 6, 7, 7, 9, 11, 13, 14, 14, //77712
13, 11, 11, 11, 10, 8, 8, 8, 9, 11, 12, 9, 7, 7, 7, 6, //77728
6, 8, 8, 8, 8, 9, 11, 10, 7, 5, 5, 5, 4, 3, 3, 2, //77744
2, 2, -1, -4, -2, -1, -1, 0, 0, -1, -2, -5, -6, -5, -4, -4, //77760
-3, -2, -2, -4, -5, -7, -9, -9, -9, -9, -7, -7, -8, -9, -9, -9, //77776
-11, -14, -14, -15, -15, -13, -12, -13, -13, -12, -15, -13, -11, -10, -8, -5, //77792
-2, -2, -3, -6, -6, -5, -4, -2, 0, 0, 0, 2, 3, 2, 1, 1, //77808
1, 3, 5, 6, 10, 13, 13, 11, 10, 10, 10, 8, 6, 8, 9, 10, //77824
10, 10, 8, 8, 8, 8, 9, 8, 5, 4, 3, 0, -2, -3, -3, -1, //77840
1, 2, 2, 6, 6, 4, 3, 3, 2, 0, -2, -1, 0, 0, 3, 6, //77856
6, 5, 6, 9, 13, 15, 15, 15, 14, 11, 10, 11, 11, 9, 8, 12, //77872
16, 20, 21, 19, 19, 17, 15, 12, 12, 13, 14, 14, 16, 17, 19, 19, //77888
17, 16, 14, 10, 7, 6, 6, 5, 4, 3, 1, 0, 0, 1, 4, 5, //77904
5, 5, 5, 4, 2, 0, -1, -1, 0, 1, 2, 3, 3, 2, 2, 1, //77920
1, 3, 3, 3, 5, 6, 7, 8, 7, 8, 9, 9, 10, 13, 14, 14, //77936
14, 14, 14, 12, 14, 17, 18, 19, 21, 24, 25, 25, 22, 20, 19, 19, //77952
20, 20, 19, 18, 19, 21, 22, 22, 22, 21, 21, 22, 22, 21, 22, 21, //77968
19, 16, 13, 11, 11, 9, 9, 9, 8, 7, 7, 7, 6, 5, 2, 0, //77984
-3, -6, -9, -12, -15, -18, -22, -23, -19, -16, -15, -10, -6, -3, -1, -1, //78000
-2, -4, -3, -2, 2, 6, 7, 7, 8, 8, 7, 6, 7, 8, 10, 10, //78016
10, 10, 10, 8, 5, 4, 4, 5, 5, 6, 8, 9, 11, 12, 12, 11, //78032
10, 8, 8, 10, 12, 12, 13, 13, 13, 17, 17, 17, 18, 18, 19, 18, //78048
17, 16, 16, 16, 14, 13, 13, 12, 12, 14, 14, 14, 13, 13, 13, 12, //78064
13, 15, 15, 15, 13, 11, 10, 7, 5, 4, 3, 1, -1, 0, 1, 1, //78080
4, 6, 5, 2, 1, 0, 0, 2, 3, 2, -1, -5, -8, -9, -9, -10, //78096
-10, -10, -10, -9, -9, -10, -10, -11, -10, -11, -13, -13, -12, -12, -12, -12, //78112
-11, -11, -11, -12, -15, -16, -16, -19, -22, -24, -26, -28, -29, -29, -28, -25, //78128
-23, -24, -23, -26, -28, -30, -32, -33, -33, -34, -35, -36, -37, -39, -40, -40, //78144
-42, -44, -45, -43, -43, -44, -44, -43, -44, -42, -40, -38, -35, -33, -34, -33, //78160
-32, -35, -39, -39, -39, -43, -43, -41, -42, -42, -38, -34, -34, -33, -32, -33, //78176
-30, -29, -25, -20, -18, -19, -19, -18, -15, -11, -8, -5, -4, -2, 1, 4, //78192
6, 7, 10, 12, 13, 14, 15, 17, 18, 18, 20, 22, 20, 17, 15, 15, //78208
16, 17, 18, 18, 17, 15, 14, 13, 15, 14, 13, 14, 15, 15, 16, 16, //78224
13, 10, 8, 8, 9, 10, 10, 8, 8, 7, 5, 3, 2, 2, 1, 0, //78240
-1, -2, -3, -5, -9, -10, -9, -7, -4, -2, 0, -1, -3, -4, -6, -6, //78256
-4, -2, 1, 4, 6, 7, 6, 4, 4, 6, 6, 4, 5, 5, 4, 3, //78272
1, -3, -4, -3, -3, -3, 1, 1, 0, -1, -3, -5, -7, -9, -12, -16, //78288
-18, -20, -21, -20, -20, -21, -21, -19, -20, -21, -21, -19, -20, -20, -18, -19, //78304
-20, -20, -17, -15, -14, -13, -13, -11, -7, -10, -10, -9, -10, -11, -10, -7, //78320
-3, -2, -1, 0, -1, 0, -1, -1, 1, 2, 1, 1, 4, 5, 5, 9, //78336
11, 12, 17, 23, 28, 30, 30, 27, 24, 20, 16, 14, 14, 13, 13, 14, //78352
15, 17, 17, 16, 15, 16, 18, 18, 18, 19, 19, 20, 19, 19, 19, 19, //78368
18, 20, 24, 27, 26, 22, 14, 8, 3, 1, 0, 0, 1, 2, 2, 2, //78384
2, -1, -3, -3, -4, -4, -2, -2, -3, -4, -3, -4, -6, -3, -2, -2, //78400
1, 6, 8, 10, 11, 10, 8, 9, 10, 12, 13, 13, 13, 15, 15, 15, //78416
17, 19, 19, 20, 22, 23, 24, 25, 25, 24, 26, 28, 28, 29, 30, 30, //78432
31, 33, 33, 33, 28, 24, 19, 16, 15, 13, 14, 14, 13, 14, 17, 19, //78448
21, 21, 21, 21, 19, 19, 20, 19, 18, 18, 16, 16, 16, 18, 20, 20, //78464
20, 18, 16, 13, 11, 9, 8, 9, 11, 12, 12, 10, 6, 4, 1, -2, //78480
-2, -2, -2, -3, -3, -2, -1, -2, -3, -3, -2, -1, 1, 2, 2, 1, //78496
-1, -4, -7, -9, -11, -11, -10, -9, -10, -11, -12, -13, -14, -13, -10, -10, //78512
-10, -9, -10, -11, -12, -14, -16, -18, -18, -17, -15, -13, -12, -11, -9, -7, //78528
-5, -5, -5, -3, 1, 2, 4, 4, 2, 0, 0, 1, 3, 6, 8, 9, //78544
10, 10, 10, 9, 9, 6, 3, 3, 3, 4, 6, 7, 7, 7, 8, 9, //78560
9, 8, 7, 6, 5, 5, 4, 1, -2, -5, -7, -8, -7, -4, -2, 0, //78576
3, 6, 5, 3, 1, -4, -7, -6, -7, -7, -8, -9, -12, -16, -17, -18, //78592
-19, -18, -18, -19, -18, -19, -19, -20, -20, -19, -19, -19, -17, -17, -18, -20, //78608
-21, -22, -25, -28, -28, -29, -29, -28, -28, -28, -28, -30, -31, -32, -34, -37, //78624
-37, -37, -37, -37, -37, -35, -34, -34, -31, -29, -25, -23, -23, -24, -25, -26, //78640
-27, -26, -25, -24, -22, -19, -18, -17, -17, -17, -15, -13, -12, -11, -11, -10, //78656
-11, -11, -12, -13, -12, -13, -12, -10, -8, -5, -4, -4, -1, -2, -3, -4, //78672
-6, -8, -11, -11, -10, -9, -8, -8, -6, -3, -3, -2, 0, 2, 4, 4, //78688
4, 4, 2, 0, -1, 0, 2, 4, 9, 12, 15, 17, 16, 17, 20, 19, //78704
19, 19, 20, 21, 23, 24, 25, 25, 24, 20, 19, 19, 19, 19, 19, 18, //78720
17, 17, 17, 18, 20, 19, 19, 20, 21, 21, 19, 18, 17, 16, 14, 14, //78736
15, 15, 14, 12, 11, 9, 6, 4, 3, 3, 3, 4, 4, 5, 5, 3, //78752
2, 3, 4, 4, 2, 0, -2, -6, -7, -8, -8, -7, -9, -9, -8, -7, //78768
-6, -6, -5, -3, -2, -1, 0, 2, 2, 2, 3, 5, 5, 4, 3, 3, //78784
4, 6, 7, 9, 9, 8, 7, 7, 8, 9, 8, 7, 7, 8, 9, 10, //78800
12, 12, 10, 8, 6, 6, 5, 5, 5, 4, 4, 3, 4, 5, 8, 10, //78816
11, 11, 11, 11, 10, 11, 12, 12, 12, 10, 9, 9, 9, 11, 11, 10, //78832
8, 4, 2, 1, 0, -1, 0, 2, 4, 5, 7, 9, 10, 11, 12, 13, //78848
16, 16, 17, 17, 19, 19, 19, 18, 16, 15, 14, 12, 11, 10, 8, 6, //78864
5, 5, 7, 7, 9, 9, 9, 10, 10, 11, 11, 10, 9, 8, 7, 6, //78880
3, 1, 2, 3, 5, 6, 6, 5, 3, 3, 5, 9, 9, 9, 8, 8, //78896
9, 10, 11, 11, 6, 4, 3, 3, 5, 7, 8, 8, 7, 5, 4, 4, //78912
5, 5, 7, 10, 13, 19, 21, 24, 26, 27, 28, 25, 24, 22, 19, 16, //78928
12, 9, 7, 4, 3, 4, 5, 7, 8, 9, 10, 11, 12, 14, 14, 14, //78944
13, 14, 14, 12, 11, 9, 8, 7, 6, 7, 8, 7, 5, 4, 3, 3, //78960
2, 1, -1, -2, -4, -5, -4, -3, -3, -3, -2, -1, -1, -3, -4, -4, //78976
-5, -7, -10, -13, -13, -12, -11, -9, -6, -4, -3, 0, 3, 6, 8, 7, //78992
6, 5, 3, 2, 2, 1, -1, -5, -8, -8, -6, -5, -5, -5, -6, -5, //79008
-4, -3, 0, 2, 4, 5, 8, 11, 11, 11, 11, 9, 7, 6, 6, 5, //79024
5, 7, 10, 12, 12, 11, 7, 4, 1, -2, -2, 0, 2, 2, 3, 6, //79040
6, 6, 7, 8, 9, 12, 12, 12, 11, 9, 7, 4, 2, 0, -2, -3, //79056
-3, -1, 0, 2, 5, 6, 7, 8, 10, 12, 13, 11, 7, 5, 3, 2, //79072
2, 1, 0, 0, 0, 0, 0, -1, -2, -6, -9, -15, -20, -23, -25, -25, //79088
-24, -24, -21, -18, -16, -14, -14, -14, -13, -16, -20, -22, -25, -27, -30, -34, //79104
-37, -40, -41, -41, -40, -40, -43, -45, -47, -47, -46, -49, -49, -50, -51, -50, //79120
-48, -47, -46, -47, -48, -48, -46, -46, -46, -46, -48, -51, -50, -50, -51, -50, //79136
-50, -50, -47, -47, -46, -47, -49, -50, -50, -51, -48, -46, -46, -43, -39, -36, //79152
-34, -32, -28, -25, -24, -24, -22, -21, -21, -20, -17, -12, -8, -5, -3, -2, //79168
0, 1, 3, 2, 0, -3, -4, -4, -4, 1, 3, 4, 5, 6, 9, 12, //79184
13, 15, 16, 16, 16, 17, 16, 15, 14, 13, 10, 10, 11, 11, 11, 13, //79200
14, 14, 15, 11, 7, 5, 4, 6, 7, 8, 9, 12, 14, 16, 16, 15, //79216
11, 8, 9, 10, 10, 11, 10, 9, 10, 12, 13, 15, 13, 12, 11, 11, //79232
14, 14, 14, 15, 15, 12, 10, 8, 8, 8, 7, 7, 10, 7, 4, 3, //79248
0, 0, -1, -3, -5, -8, -9, -9, -9, -7, -3, -2, 0, 2, 5, 6, //79264
4, 1, 0, -2, -1, -2, -2, -1, 0, 2, 7, 10, 10, 9, 9, 12, //79280
13, 15, 17, 20, 20, 19, 21, 23, 24, 23, 22, 24, 26, 27, 28, 30, //79296
29, 28, 25, 23, 22, 23, 22, 20, 20, 21, 22, 22, 20, 16, 14, 15, //79312
15, 14, 15, 16, 17, 18, 19, 19, 18, 17, 15, 14, 15, 13, 11, 9, //79328
7, 7, 9, 11, 12, 12, 10, 9, 8, 8, 8, 6, 6, 8, 11, 12, //79344
10, 7, 7, 5, 5, 6, 7, 7, 6, 6, 8, 9, 9, 9, 8, 8, //79360
7, 6, 6, 3, 0, 0, 1, 3, 4, 5, 5, 4, 5, 5, 6, 4, //79376
1, -1, -4, -4, -2, -3, -3, -3, -3, -1, 2, 3, 2, -1, -2, -4, //79392
-4, -3, -2, -1, 0, 2, 5, 8, 9, 10, 11, 14, 16, 17, 19, 20, //79408
18, 14, 14, 15, 16, 17, 18, 19, 21, 22, 22, 21, 19, 18, 19, 19, //79424
17, 15, 10, 8, 8, 9, 11, 14, 14, 15, 18, 20, 20, 20, 20, 19, //79440
17, 15, 15, 13, 11, 9, 9, 12, 15, 14, 12, 7, 3, 1, 0, -1, //79456
-2, -4, -6, -8, -9, -9, -10, -11, -12, -17, -18, -19, -21, -20, -18, -17, //79472
-15, -12, -10, -9, -6, -3, -2, -2, -4, -7, -11, -13, -14, -14, -14, -15, //79488
-15, -13, -11, -9, -7, -5, -3, -5, -8, -11, -12, -14, -15, -16, -16, -14, //79504
-13, -9, -7, -6, -4, -4, -5, -3, -2, -3, -4, -4, -2, -2, 0, 2, //79520
3, 4, 7, 8, 8, 9, 10, 12, 11, 9, 7, 4, 4, 3, 4, 7, //79536
8, 8, 8, 7, 8, 8, 9, 10, 12, 12, 11, 11, 11, 9, 7, 9, //79552
10, 9, 9, 10, 9, 8, 7, 6, 5, 4, 4, 3, 3, 3, 3, 2, //79568
0, -1, -2, -6, -9, -11, -11, -13, -15, -16, -19, -19, -18, -16, -13, -14, //79584
-14, -12, -11, -9, -7, -7, -7, -11, -13, -14, -17, -20, -21, -22, -24, -25, //79600
-26, -28, -33, -36, -37, -37, -39, -42, -42, -42, -42, -45, -43, -41, -41, -42, //79616
-41, -39, -41, -45, -46, -44, -43, -44, -45, -39, -38, -42, -43, -40, -38, -39, //79632
-41, -41, -40, -38, -37, -35, -30, -28, -32, -35, -35, -33, -36, -38, -32, -32, //79648
-32, -29, -25, -19, -15, -13, -12, -9, -4, -5, -7, -3, -1, -3, -6, -6, //79664
-3, -3, -2, 2, 11, 15, 12, 10, 12, 14, 9, 11, 16, 18, 18, 16, //79680
19, 24, 22, 18, 20, 24, 26, 24, 21, 20, 19, 14, 10, 9, 10, 9, //79696
5, 6, 7, 5, 4, 3, 0, -1, -1, 0, 1, 4, 5, 5, 4, 3, //79712
2, 0, -2, -1, 0, 0, -3, -5, -6, -7, -8, -8, -6, -5, -5, -5, //79728
-2, 3, 5, 6, 9, 10, 9, 9, 9, 12, 11, 8, 10, 12, 8, 7, //79744
6, 7, 11, 10, 6, 8, 8, 7, 4, 4, 9, 5, 3, 7, 10, 13, //79760
13, 15, 15, 9, 2, -2, -2, -3, -4, -6, -5, -4, -5, -8, -7, -2, //79776
0, -1, 3, 10, 13, 12, 12, 16, 17, 13, 10, 9, 14, 15, 14, 16, //79792
18, 13, 10, 11, 17, 23, 23, 21, 22, 24, 26, 26, 26, 27, 27, 25, //79808
23, 24, 29, 29, 25, 23, 25, 25, 21, 22, 23, 23, 24, 25, 25, 24, //79824
22, 20, 19, 21, 19, 21, 25, 25, 26, 28, 28, 27, 26, 27, 24, 27, //79840
29, 25, 21, 21, 19, 17, 20, 21, 18, 17, 13, 11, 12, 12, 9, 1, //79856
-1, 1, 0, -1, 3, 5, 4, 2, 1, 5, 8, 6, 4, 4, 3, 2, //79872
-2, -1, 2, 2, 0, 3, 6, 3, -2, -1, 3, 5, 2, 2, 4, 4, //79888
3, 6, 12, 15, 12, 10, 12, 15, 13, 13, 13, 14, 15, 18, 20, 21, //79904
21, 20, 18, 19, 19, 16, 13, 12, 11, 12, 13, 14, 16, 15, 13, 14, //79920
15, 17, 19, 20, 19, 17, 14, 14, 14, 15, 18, 19, 19, 20, 20, 22, //79936
22, 21, 21, 21, 18, 17, 16, 13, 13, 13, 13, 11, 7, 5, 5, 7, //79952
10, 13, 13, 11, 11, 9, 8, 7, 6, 6, 4, 1, 0, -1, -4, -7, //79968
-6, -7, -8, -8, -8, -9, -9, -9, -8, -9, -10, -13, -18, -21, -23, -25, //79984
-26, -23, -23, -23, -23, -22, -23, -24, -25, -26, -27, -28, -27, -26, -28, -31, //80000
-32, -33, -36, -37, -37, -35, -32, -28, -24, -21, -17, -17, -17, -14, -9, -7, //80016
-5, -2, -2, -5, -6, -8, -10, -10, -9, -11, -10, -6, -6, -6, -4, -4, //80032
-3, -2, -2, -2, -2, -2, -5, -5, -3, -4, -6, -8, -8, -7, -7, -5, //80048
-4, -5, -6, -9, -9, -11, -11, -10, -9, -9, -8, -5, -5, -5, -6, -7, //80064
-9, -10, -10, -11, -11, -11, -11, -10, -10, -10, -7, -8, -7, -6, -6, -6, //80080
-8, -10, -11, -13, -13, -11, -10, -8, -8, -9, -10, -11, -13, -17, -20, -22, //80096
-24, -28, -31, -34, -37, -39, -41, -43, -44, -45, -45, -46, -44, -43, -45, -46, //80112
-45, -45, -46, -43, -40, -37, -35, -35, -33, -32, -34, -34, -35, -37, -38, -35, //80128
-34, -33, -30, -28, -29, -29, -27, -24, -24, -22, -17, -16, -16, -16, -15, -15, //80144
-17, -17, -17, -17, -16, -13, -12, -13, -13, -11, -11, -11, -10, -9, -10, -10, //80160
-9, -10, -10, -9, -9, -9, -8, -5, -3, -3, 0, 4, 6, 6, 5, 2, //80176
1, 1, 4, 7, 10, 11, 12, 15, 17, 21, 22, 23, 24, 27, 27, 26, //80192
25, 25, 22, 16, 13, 9, 10, 10, 10, 12, 15, 17, 18, 19, 20, 20, //80208
20, 20, 18, 16, 15, 13, 12, 11, 8, 4, 2, 0, -1, -1, 1, 0, //80224
-1, -2, -1, -1, -2, -2, -3, -3, 0, 0, 4, 4, 2, -1, -3, -5, //80240
-5, -5, -6, -8, -8, -6, -7, -8, -7, -6, -5, -4, -2, 1, 1, 0, //80256
-1, 0, 2, 4, 5, 6, 11, 16, 19, 20, 21, 20, 15, 13, 14, 15, //80272
15, 14, 15, 16, 18, 19, 19, 18, 16, 17, 18, 18, 18, 17, 14, 13, //80288
14, 15, 16, 17, 18, 18, 19, 21, 23, 21, 18, 16, 15, 13, 12, 12, //80304
12, 11, 11, 12, 14, 15, 16, 15, 14, 15, 15, 13, 10, 10, 10, 8, //80320
8, 8, 7, 6, 4, 4, 5, 6, 6, 6, 3, 3, 3, 3, 4, 5, //80336
7, 7, 6, 5, 4, 0, -5, -7, -9, -9, -9, -10, -11, -11, -11, -11, //80352
-11, -9, -7, -6, -3, 0, 2, 3, 4, 3, 1, 0, 2, 2, -1, -1, //80368
0, -1, 0, 1, 3, 4, 4, 4, 5, 6, 8, 9, 8, 9, 10, 10, //80384
11, 12, 14, 13, 11, 11, 12, 12, 11, 8, 6, 5, 4, 4, 4, 5, //80400
7, 9, 10, 13, 18, 19, 20, 21, 21, 20, 19, 18, 18, 17, 18, 19, //80416
19, 18, 18, 20, 21, 23, 23, 22, 21, 18, 15, 14, 14, 14, 13, 12, //80432
15, 16, 17, 17, 14, 11, 7, 6, 6, 6, 6, 2, -2, -3, -3, -4, //80448
-5, -5, -4, -4, -4, -2, -2, -4, -6, -7, -8, -9, -11, -13, -16, -17, //80464
-16, -16, -16, -16, -16, -16, -16, -14, -13, -13, -13, -11, -7, -4, -2, -2, //80480
-3, -6, -6, -4, -2, -2, -3, -5, -7, -8, -10, -13, -15, -15, -16, -13, //80496
-8, -4, -2, -3, -1, 0, 1, 1, 2, 2, 0, -2, -4, -5, -4, -5, //80512
-4, -3, -1, 2, 1, 2, 3, 2, 1, -1, -1, -3, -3, -1, 3, 6, //80528
7, 8, 6, 3, 4, 5, 5, 4, 4, 5, 5, 8, 10, 9, 8, 8, //80544
7, 7, 7, 7, 6, 3, 1, 1, 1, 2, 3, 3, 2, 1, 1, 1, //80560
0, -2, -6, -11, -13, -15, -16, -17, -16, -13, -13, -13, -12, -12, -15, -18, //80576
-20, -24, -29, -30, -31, -32, -33, -33, -32, -34, -32, -29, -28, -26, -24, -23, //80592
-24, -27, -29, -30, -33, -33, -34, -35, -35, -35, -35, -36, -37, -37, -38, -39, //80608
-38, -36, -34, -32, -32, -34, -37, -38, -38, -39, -42, -44, -44, -43, -42, -41, //80624
-40, -38, -37, -38, -37, -35, -35, -35, -35, -35, -35, -33, -32, -31, -29, -27, //80640
-24, -20, -19, -18, -17, -16, -16, -15, -15, -15, -13, -11, -9, -4, -2, 1, //80656
4, 6, 8, 9, 10, 10, 9, 7, 6, 7, 8, 8, 9, 9, 10, 11, //80672
12, 13, 14, 16, 15, 15, 16, 17, 17, 18, 17, 17, 18, 18, 17, 12, //80688
10, 9, 8, 7, 9, 12, 15, 17, 18, 21, 21, 20, 19, 20, 22, 21, //80704
19, 18, 16, 14, 14, 12, 12, 13, 13, 12, 12, 15, 15, 14, 15, 15, //80720
15, 16, 16, 15, 12, 8, 7, 7, 6, 5, 1, -1, -3, -4, -5, -5, //80736
-5, -8, -7, -6, -6, -7, -9, -12, -14, -17, -18, -17, -14, -10, -9, -7, //80752
-5, -5, -2, -1, 0, 1, 1, 3, 3, 1, 0, -1, 0, 3, 7, 9, //80768
11, 11, 11, 14, 16, 15, 16, 19, 21, 24, 23, 23, 25, 27, 26, 24, //80784
26, 27, 28, 28, 29, 30, 30, 30, 28, 26, 23, 23, 23, 22, 20, 19, //80800
21, 19, 19, 19, 18, 18, 16, 13, 14, 15, 16, 19, 18, 15, 14, 12, //80816
12, 11, 11, 9, 7, 8, 8, 6, 4, 4, 3, 0, -3, -4, -3, -2, //80832
-3, -5, -9, -9, -7, -8, -9, -8, -8, -9, -9, -9, -10, -11, -13, -14, //80848
-13, -10, -8, -9, -9, -8, -6, -5, -5, -5, -5, -6, -7, -7, -3, -1, //80864
-2, -5, -4, -1, -1, -3, -5, -5, -4, -3, -2, -1, -2, -2, 0, 2, //80880
4, 5, 5, 4, 0, -3, -4, -4, -5, -6, -8, -7, -8, -8, -9, -8, //80896
-5, -4, -3, -1, 1, 3, 3, 4, 8, 11, 11, 9, 11, 13, 13, 14, //80912
15, 15, 14, 12, 13, 15, 12, 12, 14, 14, 13, 14, 15, 13, 12, 11, //80928
11, 12, 16, 18, 19, 20, 20, 20, 22, 21, 20, 19, 17, 15, 13, 12, //80944
11, 7, 5, 3, 4, 4, 3, 0, -5, -8, -10, -11, -11, -11, -12, -12, //80960
-11, -12, -13, -13, -14, -14, -15, -16, -17, -17, -16, -14, -11, -8, -6, -5, //80976
-4, -4, -3, 0, 0, 0, 0, -1, -2, -2, -2, -2, -3, -5, -5, -2, //80992
0, 0, -1, -2, -2, -3, -5, -7, -8, -11, -13, -13, -12, -11, -10, -7, //81008
-5, -2, 0, 0, -1, -1, -1, -1, 0, 2, 3, 3, 5, 6, 7, 9, //81024
11, 10, 11, 13, 15, 16, 16, 16, 16, 15, 16, 17, 18, 18, 17, 18, //81040
20, 21, 21, 21, 22, 22, 19, 17, 17, 17, 17, 16, 14, 15, 16, 17, //81056
18, 17, 15, 14, 13, 14, 14, 12, 9, 4, 3, 2, 0, -1, -2, -4, //81072
-7, -8, -7, -7, -7, -8, -8, -7, -7, -9, -11, -13, -15, -17, -20, -22, //81088
-26, -28, -29, -30, -30, -30, -30, -31, -32, -33, -33, -33, -32, -31, -33, -35, //81104
-37, -40, -40, -41, -41, -41, -42, -42, -42, -42, -40, -41, -40, -38, -38, -38, //81120
-38, -39, -41, -42, -43, -41, -39, -37, -34, -35, -35, -34, -34, -32, -31, -30, //81136
-30, -32, -32, -32, -31, -31, -32, -30, -30, -30, -28, -25, -22, -17, -14, -11, //81152
-10, -10, -7, -4, 2, 5, 7, 8, 8, 6, 7, 8, 9, 12, 14, 14, //81168
16, 18, 19, 19, 17, 18, 20, 22, 22, 21, 22, 22, 21, 20, 21, 22, //81184
19, 18, 19, 19, 20, 22, 21, 19, 13, 9, 7, 7, 10, 10, 7, 7, //81200
7, 6, 6, 5, 1, -4, -8, -8, -6, -4, -4, -6, -6, -5, -5, -5, //81216
-2, 0, 0, 1, 3, 5, 5, 4, -1, -3, -3, -3, -3, 1, 3, 1, //81232
-3, -5, -4, -6, -6, -4, -2, -2, -3, -1, 0, 0, -1, -2, -4, -5, //81248
-6, -6, -3, -1, 1, 1, 1, 0, -2, -1, 1, 1, 0, -1, -2, -2, //81264
-3, -5, -7, -7, -7, -4, -2, 1, 4, 4, 5, 5, 7, 7, 6, 5, //81280
6, 8, 10, 10, 10, 10, 10, 11, 12, 13, 16, 14, 11, 10, 10, 10, //81296
7, 3, 1, 1, 2, 3, 5, 8, 8, 8, 9, 9, 12, 15, 16, 16, //81312
14, 15, 17, 16, 17, 17, 17, 17, 16, 17, 18, 19, 20, 22, 24, 25, //81328
25, 23, 23, 22, 25, 27, 27, 27, 27, 25, 20, 16, 13, 10, 6, 4, //81344
2, 3, 4, 5, 9, 9, 8, 7, 5, 4, 3, 1, 0, -1, -2, -4, //81360
-8, -10, -10, -10, -10, -11, -11, -12, -13, -14, -14, -14, -13, -13, -13, -12, //81376
-13, -13, -12, -11, -10, -10, -12, -14, -14, -14, -11, -8, -3, 1, 3, 4, //81392
7, 7, 9, 12, 16, 19, 21, 22, 23, 25, 25, 25, 26, 27, 27, 28, //81408
30, 31, 31, 30, 30, 30, 27, 26, 24, 25, 25, 25, 26, 29, 32, 32, //81424
32, 33, 33, 34, 34, 33, 30, 28, 26, 25, 26, 26, 24, 24, 26, 28, //81440
28, 28, 28, 27, 24, 21, 19, 18, 17, 14, 10, 8, 7, 5, 3, 0, //81456
-1, -2, -2, -2, -2, -3, -6, -9, -9, -8, -9, -10, -10, -11, -11, -10, //81472
-10, -9, -10, -11, -11, -11, -12, -13, -12, -11, -12, -13, -16, -18, -20, -23, //81488
-25, -24, -24, -24, -24, -25, -25, -21, -18, -18, -19, -20, -21, -21, -20, -19, //81504
-19, -19, -17, -16, -16, -17, -16, -14, -10, -7, -5, -4, -2, 0, 2, 3, //81520
4, 7, 9, 9, 10, 11, 12, 12, 12, 9, 6, 4, 3, 3, 2, 2, //81536
2, 2, 1, 1, 2, 3, 3, 2, 2, 2, 2, 3, 3, 3, 2, 0, //81552
-2, -3, -5, -7, -7, -10, -12, -14, -15, -15, -15, -14, -14, -14, -14, -14, //81568
-12, -13, -13, -10, -8, -8, -8, -8, -9, -9, -9, -10, -13, -15, -18, -19, //81584
-19, -17, -17, -16, -15, -16, -17, -18, -19, -19, -20, -23, -25, -27, -29, -33, //81600
-34, -35, -39, -40, -42, -43, -43, -43, -44, -44, -44, -44, -45, -46, -44, -44, //81616
-45, -45, -46, -46, -46, -46, -44, -44, -41, -36, -35, -33, -32, -30, -29, -26, //81632
-27, -28, -28, -28, -26, -24, -24, -24, -22, -23, -22, -19, -17, -17, -16, -12, //81648
-10, -12, -13, -14, -14, -13, -13, -11, -8, -6, -4, -2, 1, 5, 8, 8, //81664
7, 6, 4, 4, 5, 6, 8, 8, 7, 9, 9, 9, 14, 16, 17, 19, //81680
19, 17, 16, 17, 17, 18, 21, 20, 20, 22, 22, 22, 23, 25, 26, 27, //81696
27, 26, 27, 29, 29, 30, 29, 25, 21, 17, 13, 13, 12, 10, 12, 13, //81712
15, 16, 16, 16, 17, 16, 16, 16, 14, 11, 10, 9, 6, 5, 4, 3, //81728
4, 5, 8, 10, 10, 10, 9, 8, 8, 8, 5, 4, 1, -3, -5, -7, //81744
-9, -9, -10, -12, -12, -11, -10, -8, -9, -11, -10, -7, -7, -7, -7, -11, //81760
-13, -12, -11, -10, -8, -9, -7, -5, -3, -1, 3, 7, 10, 11, 11, 10, //81776
10, 11, 13, 13, 13, 13, 13, 12, 13, 15, 16, 16, 16, 19, 22, 22, //81792
22, 20, 18, 18, 16, 13, 11, 10, 9, 10, 10, 10, 11, 12, 14, 17, //81808
18, 15, 13, 12, 9, 10, 11, 10, 10, 13, 14, 15, 15, 15, 16, 19, //81824
19, 18, 17, 16, 14, 7, 4, 1, -3, -5, -7, -9, -9, -10, -11, -11, //81840
-9, -10, -10, -11, -11, -10, -7, -6, -4, -2, -2, -2, -3, -6, -7, -9, //81856
-12, -13, -12, -11, -9, -7, -5, -2, -3, -5, -5, -5, -6, -5, -6, -7, //81872
-8, -8, -8, -8, -7, -6, -4, -2, -1, 1, 3, 4, 5, 5, 6, 7, //81888
6, 4, 5, 6, 7, 7, 6, 7, 7, 6, 7, 8, 9, 9, 7, 4, //81904
1, -2, -4, -4, -1, 1, 2, 3, 5, 11, 16, 20, 22, 23, 23, 24, //81920
24, 24, 25, 25, 25, 25, 24, 22, 22, 22, 20, 21, 20, 20, 19, 17, //81936
16, 17, 18, 18, 18, 18, 18, 20, 19, 20, 21, 21, 20, 20, 19, 17, //81952
17, 14, 11, 10, 7, 4, 2, -2, -5, -6, -5, -5, -4, -5, -7, -6, //81968
-6, -7, -8, -8, -9, -10, -10, -11, -10, -9, -9, -8, -8, -11, -10, -9, //81984
-10, -10, -10, -11, -12, -11, -11, -10, -8, -6, -4, 1, 4, 7, 9, 9, //82000
10, 10, 7, 5, 0, -4, -5, -4, -4, -4, -5, -5, -5, -4, -2, -1, //82016
-1, 0, 1, 1, 1, 0, 0, 0, 0, -1, -2, -3, -3, -2, 0, 1, //82032
4, 5, 5, 6, 6, 6, 9, 12, 12, 13, 13, 13, 12, 11, 11, 8, //82048
5, 0, -2, -3, -5, -8, -9, -11, -13, -12, -11, -11, -11, -10, -8, -7, //82064
-6, -6, -5, -5, -4, -3, -2, -2, -2, -1, -2, -4, -5, -9, -11, -13, //82080
-14, -15, -16, -16, -16, -16, -17, -17, -17, -19, -22, -23, -25, -29, -34, -37, //82096
-39, -41, -43, -44, -44, -44, -42, -39, -36, -32, -27, -26, -26, -26, -24, -25, //82112
-26, -27, -29, -31, -32, -34, -37, -39, -40, -38, -36, -36, -35, -35, -35, -33, //82128
-34, -34, -34, -35, -36, -37, -34, -33, -32, -29, -27, -26, -25, -25, -25, -24, //82144
-25, -27, -29, -29, -28, -27, -27, -25, -24, -23, -23, -22, -20, -20, -20, -19, //82160
-18, -16, -11, -8, -7, -6, -5, -2, 1, 4, 8, 11, 15, 21, 22, 19, //82176
19, 21, 20, 17, 17, 16, 16, 17, 18, 18, 20, 23, 25, 26, 27, 28, //82192
30, 30, 31, 33, 34, 34, 34, 34, 34, 33, 34, 33, 29, 26, 24, 21, //82208
19, 19, 19, 17, 16, 16, 16, 15, 16, 15, 13, 13, 13, 12, 11, 11, //82224
9, 7, 7, 7, 8, 8, 9, 9, 10, 11, 11, 10, 8, 7, 4, 3, //82240
3, 0, -3, -6, -9, -9, -9, -7, -6, -6, -5, -5, -5, -4, -3, -1, //82256
-1, -4, -4, -5, -5, -5, -5, -3, -2, -1, 0, 0, 0, 3, 7, 10, //82272
12, 12, 10, 12, 13, 12, 13, 15, 15, 14, 14, 14, 15, 19, 21, 20, //82288
21, 22, 22, 24, 29, 31, 31, 29, 30, 32, 30, 29, 28, 26, 26, 25, //82304
24, 24, 24, 24, 24, 23, 24, 24, 24, 21, 18, 17, 16, 15, 14, 13, //82320
10, 10, 11, 12, 16, 18, 17, 18, 18, 17, 17, 17, 16, 14, 11, 10, //82336
10, 11, 12, 13, 14, 13, 10, 6, 3, 1, 0, -2, -1, -2, -3, -4, //82352
-5, -7, -8, -10, -10, -10, -9, -9, -9, -8, -9, -12, -11, -9, -9, -9, //82368
-9, -10, -10, -11, -11, -11, -11, -11, -12, -11, -8, -6, -6, -6, -6, -5, //82384
-5, -6, -7, -8, -9, -9, -9, -9, -7, -6, -8, -8, -7, -6, -5, -6, //82400
-7, -7, -7, -6, -5, -6, -8, -8, -7, -6, -3, 1, 0, -1, -2, -5, //82416
-5, -2, 0, 2, 3, 4, 5, 6, 6, 6, 7, 8, 8, 6, 6, 5, //82432
4, 5, 9, 11, 13, 15, 15, 15, 16, 19, 21, 24, 27, 27, 28, 28, //82448
27, 25, 23, 23, 22, 21, 19, 19, 16, 14, 13, 12, 11, 10, 3, 0, //82464
-2, -6, -9, -13, -14, -16, -19, -19, -18, -18, -19, -20, -21, -22, -24, -25, //82480
-25, -25, -23, -22, -22, -20, -18, -16, -17, -18, -20, -24, -27, -29, -29, -29, //82496
-28, -27, -27, -25, -22, -19, -18, -18, -19, -19, -18, -17, -19, -20, -21, -22, //82512
-22, -21, -20, -17, -14, -11, -9, -9, -8, -7, -8, -8, -6, -5, -4, -2, //82528
0, 1, 3, 6, 7, 8, 11, 14, 17, 19, 19, 19, 19, 18, 18, 18, //82544
18, 19, 21, 23, 24, 26, 27, 27, 24, 22, 22, 22, 21, 19, 17, 17, //82560
16, 16, 16, 16, 12, 10, 10, 10, 10, 7, 6, 6, 6, 5, 4, 4, //82576
4, 4, 3, 3, 5, 6, 5, 4, 0, -2, -6, -8, -9, -10, -10, -11, //82592
-11, -10, -8, -8, -10, -13, -15, -17, -19, -19, -19, -20, -23, -24, -24, -25, //82608
-26, -27, -28, -28, -28, -29, -28, -29, -31, -31, -31, -30, -29, -28, -28, -29, //82624
-31, -31, -31, -30, -31, -33, -34, -31, -31, -30, -27, -26, -27, -31, -32, -33, //82640
-33, -34, -34, -32, -31, -31, -32, -33, -34, -37, -38, -38, -37, -36, -34, -33, //82656
-31, -29, -27, -25, -21, -20, -21, -21, -18, -15, -13, -14, -15, -15, -15, -18, //82672
-17, -16, -12, -8, -5, 0, 4, 8, 10, 10, 10, 9, 11, 12, 11, 12, //82688
11, 11, 13, 15, 17, 18, 22, 23, 23, 24, 27, 28, 27, 25, 26, 26, //82704
26, 27, 27, 27, 25, 24, 25, 26, 25, 23, 24, 24, 20, 17, 17, 17, //82720
15, 15, 14, 18, 20, 18, 16, 16, 14, 12, 14, 17, 17, 16, 16, 15, //82736
14, 14, 14, 16, 18, 19, 19, 20, 21, 18, 17, 16, 16, 14, 13, 12, //82752
9, 8, 8, 7, 2, 0, -3, -7, -7, -7, -6, -3, -2, -3, -5, -7, //82768
-8, -9, -9, -9, -9, -6, -5, -5, -4, -1, -1, -2, -1, -1, -2, -1, //82784
1, 1, 2, 5, 5, 4, 3, 3, 4, 7, 7, 7, 9, 11, 13, 14, //82800
13, 13, 11, 7, 5, 6, 7, 8, 11, 14, 14, 12, 11, 9, 10, 10, //82816
9, 10, 14, 15, 14, 12, 12, 10, 7, 6, 6, 7, 9, 11, 11, 11, //82832
11, 9, 8, 8, 7, 9, 13, 17, 19, 23, 24, 24, 21, 18, 14, 13, //82848
13, 13, 13, 14, 17, 18, 17, 17, 19, 21, 24, 26, 28, 28, 26, 20, //82864
17, 15, 13, 10, 5, 3, 2, 2, 3, 5, 6, 5, 3, 1, -2, -5, //82880
-8, -10, -10, -9, -8, -9, -8, -8, -10, -11, -11, -12, -14, -13, -14, -15, //82896
-16, -17, -18, -19, -19, -17, -18, -17, -16, -15, -14, -12, -12, -12, -12, -12, //82912
-10, -6, -1, 1, 6, 12, 14, 13, 17, 19, 19, 19, 18, 19, 20, 20, //82928
19, 21, 24, 24, 23, 24, 25, 25, 23, 23, 23, 23, 23, 23, 21, 20, //82944
20, 19, 20, 21, 18, 18, 19, 18, 16, 18, 20, 18, 15, 12, 10, 7, //82960
4, 2, 2, 2, 0, -3, -2, -3, -3, -3, -3, -3, -2, -3, -4, -6, //82976
-7, -7, -6, -6, -6, -7, -9, -8, -8, -8, -6, -6, -4, -3, -4, -4, //82992
-5, -7, -6, -5, -5, -5, -3, -3, -5, -6, -7, -8, -10, -13, -15, -18, //83008
-19, -20, -21, -23, -23, -24, -25, -23, -24, -24, -23, -22, -23, -24, -21, -21, //83024
-23, -24, -25, -28, -29, -29, -27, -27, -26, -21, -19, -20, -20, -17, -15, -14, //83040
-12, -11, -9, -8, -9, -7, -3, -1, -1, 1, 3, 3, 4, 6, 6, 6, //83056
5, 3, 2, -1, -1, 0, 1, 1, 2, 4, 4, 1, 0, -1, -4, -5, //83072
-5, -5, -5, -5, -5, -5, -4, -1, -2, -3, -2, 0, 2, 2, 2, 1, //83088
-2, -5, -6, -6, -7, -8, -9, -9, -7, -7, -8, -9, -12, -13, -11, -11, //83104
-11, -9, -8, -9, -9, -9, -10, -11, -15, -19, -23, -24, -24, -24, -24, -25, //83120
-27, -29, -31, -31, -31, -32, -32, -32, -33, -35, -36, -36, -35, -36, -37, -37, //83136
-37, -37, -37, -37, -34, -35, -36, -38, -40, -42, -42, -42, -42, -40, -39, -38, //83152
-35, -32, -29, -26, -24, -21, -20, -19, -16, -14, -13, -9, -10, -13, -14, -14, //83168
-14, -13, -10, -6, -3, -1, 0, 1, 2, 2, 2, 3, 6, 5, 3, 3, //83184
3, 1, -2, -5, -9, -9, -8, -7, -4, 0, 4, 5, 6, 13, 14, 15, //83200
14, 11, 10, 9, 9, 9, 9, 11, 12, 13, 16, 18, 19, 20, 22, 25, //83216
28, 27, 22, 20, 20, 18, 18, 23, 27, 29, 33, 35, 35, 36, 35, 32, //83232
30, 27, 25, 26, 26, 24, 24, 24, 22, 22, 21, 22, 25, 28, 25, 24, //83248
24, 21, 15, 11, 11, 13, 13, 13, 14, 15, 17, 15, 15, 17, 17, 17, //83264
15, 16, 16, 17, 17, 14, 11, 15, 14, 9, 6, 6, 2, 0, 2, 4, //83280
4, 6, 8, 8, 7, 7, 7, 6, 5, 2, 2, 4, 4, 6, 5, 3, //83296
0, -2, -2, -1, 1, 5, 5, 5, 5, 4, 3, 3, 4, 5, 4, 4, //83312
4, 4, 4, 4, 2, 3, 5, 6, 9, 12, 13, 13, 13, 9, 7, 10, //83328
9, 8, 5, 5, 8, 7, 9, 11, 12, 14, 16, 17, 19, 20, 20, 19, //83344
20, 20, 17, 15, 12, 9, 11, 12, 11, 9, 8, 5, 5, 6, 7, 10, //83360
10, 9, 7, 5, 2, 0, -4, -7, -9, -11, -14, -15, -16, -19, -19, -16, //83376
-16, -15, -13, -15, -15, -15, -14, -13, -13, -12, -13, -16, -18, -22, -23, -22, //83392
-20, -20, -19, -17, -16, -15, -15, -16, -10, -6, -8, -8, -7, -7, -6, -8, //83408
-10, -11, -11, -11, -9, -6, -2, -2, -2, -1, -2, -4, -4, -2, 0, 0, //83424
0, -1, -2, -4, -5, -4, -6, -7, -8, -9, -11, -11, -10, -7, -6, -8, //83440
-11, -15, -15, -15, -14, -10, -2, 0, 2, 4, 4, 7, 8, 8, 6, 3, //83456
3, 2, 3, 10, 15, 19, 26, 30, 26, 26, 23, 19, 14, 12, 13, 11, //83472
6, 1, 0, 2, 6, 12, 16, 19, 22, 21, 17, 14, 10, -3, -9, -17, //83488
-21, -18, -12, -8, -4, 0, 4, 8, 8, 6, 3, -3, -9, -13, -23, -28, //83504
-31, -32, -30, -28, -17, -12, -13, -13, -12, -7, -9, -11, -11, -13, -19, -25, //83520
-30, -35, -37, -38, -40, -32, -24, -20, -17, -16, -15, -11, -9, -6, 1, 10, //83536
20, 17, 11, 5, -4, -13, -16, -17, -16, -12, -10, -9, -6, -1, 4, 6, //83552
7, 14, 18, 19, 17, 14, 11, 4, 0, -4, -6, -6, -1, 5, 6, 7, //83568
12, 14, 7, 6, 7, 6, 5, 4, 4, 10, 17, 21, 23, 23, 23, 22, //83584
20, 18, 18, 14, 9, 3, -2, -4, -2, 0, 4, 13, 19, 21, 24, 23, //83600
21, 20, 19, 13, 3, -5, -14, -18, -19, -18, -8, -2, 1, 6, 12, 14, //83616
11, 9, 8, 11, 13, 8, 1, -6, -12, -22, -31, -37, -37, -35, -33, -31, //83632
-25, -22, -26, -36, -41, -42, -42, -39, -38, -35, -28, -17, -13, -11, -8, -8, //83648
-12, -15, -19, -20, -20, -22, -23, -17, -8, -2, -4, -10, -20, -30, -38, -44, //83664
-46, -40, -31, -24, -17, -12, -8, -9, -14, -20, -26, -29, -36, -51, -52, -54, //83680
-57, -58, -55, -41, -28, -14, -1, 8, 14, 12, 3, -4, -10, -14, -14, -17, //83696
-19, -13, -6, -4, -3, 0, 4, 3, 3, 4, 11, 17, 17, 15, 16, 16, //83712
15, 13, 12, 13, 15, 15, 18, 24, 29, 29, 27, 26, 23, 18, 15, 14, //83728
18, 17, 15, 17, 15, 7, 5, 4, 4, 6, 8, 9, 13, 16, 18, 21, //83744
23, 20, 14, 9, 8, 8, 9, 9, 9, 9, 9, 6, 5, 14, 21, 29, //83760
33, 36, 39, 32, 24, 16, 8, 3, -4, -6, -5, -3, 0, 5, 9, 10, //83776
12, 15, 17, 14, 12, 9, 4, 0, -4, -7, -8, -9, -11, -12, -5, 0, //83792
8, 18, 24, 25, 25, 23, 16, 8, 2, -3, -9, -10, -7, -2, 3, 8, //83808
11, 13, 12, 13, 16, 16, 16, 15, 13, 11, 11, 11, 10, 9, 9, 9, //83824
9, 14, 18, 24, 29, 30, 31, 33, 33, 34, 33, 31, 32, 33, 34, 36, //83840
39, 48, 49, 46, 44, 42, 41, 41, 43, 45, 46, 45, 46, 47, 48, 48, //83856
45, 43, 35, 28, 24, 24, 22, 17, 11, 9, 10, 14, 20, 25, 30, 34, //83872
32, 25, 17, 6, -1, -8, -13, -15, -16, -19, -24, -27, -27, -26, -23, -18, //83888
-21, -23, -25, -30, -36, -33, -30, -30, -30, -30, -33, -38, -40, -40, -42, -44, //83904
-43, -44, -47, -49, -49, -50, -51, -51, -50, -49, -48, -46, -46, -49, -52, -54, //83920
-57, -56, -56, -55, -54, -54, -49, -47, -43, -40, -38, -38, -42, -42, -43, -46, //83936
-45, -41, -34, -24, -13, -4, -1, 1, -2, -3, -2, -3, -5, -15, -19, -18, //83952
-19, -15, -3, 2, 10, 15, 18, 24, 29, 25, 22, 19, 15, 12, 5, 1, //83968
-5, -8, -4, 2, 11, 20, 25, 33, 43, 47, 52, 55, 54, 52, 49, 46, //83984
40, 32, 22, 17, 22, 29, 42, 54, 64, 68, 67, 63, 56, 52, 54, 54, //84000
52, 50, 48, 45, 43, 38, 39, 40, 34, 26, 23, 22, 22, 18, 10, 6, //84016
1, -9, -11, -10, -9, -8, -2, 4, 12, 15, 13, 14, 14, 14, 19, 22, //84032
17, 7, -5, -12, -14, -9, -5, -3, 0, 3, 8, 14, 20, 29, 28, 19, //84048
9, 6, 1, -11, -7, -3, -4, -3, 3, 5, 8, 12, 15, 15, 11, 13, //84064
13, 10, 9, 12, 10, 3, -7, -14, -20, -34, -38, -37, -34, -29, -25, -26, //84080
-26, -21, -15, -10, -11, -18, -22, -29, -40, -47, -46, -43, -40, -44, -46, -43, //84096
-39, -40, -44, -48, -46, -52, -58, -56, -53, -52, -48, -47, -51, -53, -56, -59, //84112
-56, -48, -45, -47, -53, -61, -73, -80, -85, -86, -83, -81, -83, -79, -73, -68, //84128
-58, -43, -23, -15, -13, -15, -21, -41, -50, -54, -60, -70, -76, -77, -76, -74, //84144
-70, -64, -59, -57, -58, -62, -66, -67, -65, -62, -63, -63, -60, -59, -58, -55, //84160
-50, -42, -37, -40, -45, -42, -42, -46, -46, -47, -48, -46, -50, -53, -48, -45, //84176
-46, -42, -39, -35, -28, -23, -16, -9, -2, 8, 15, 12, 9, 6, 2, -4, //84192
-6, -4, -4, -4, -2, 5, 19, 31, 43, 51, 58, 66, 67, 65, 60, 51, //84208
42, 32, 29, 30, 31, 30, 34, 42, 47, 55, 61, 67, 73, 74, 74, 74, //84224
73, 70, 72, 70, 67, 70, 76, 75, 77, 83, 85, 90, 98, 103, 107, 111, //84240
109, 103, 95, 89, 88, 84, 81, 85, 85, 79, 78, 78, 79, 85, 89, 90, //84256
88, 81, 78, 77, 73, 72, 72, 69, 63, 64, 64, 63, 65, 67, 66, 65, //84272
69, 72, 72, 70, 64, 53, 46, 39, 33, 30, 31, 35, 38, 40, 43, 48, //84288
42, 37, 37, 38, 37, 35, 32, 25, 18, 14, 9, 5, 4, 1, 1, 3, //84304
3, 5, 6, 4, 5, 4, -4, -15, -19, -29, -37, -37, -37, -39, -35, -31, //84320
-31, -24, -5, -1, -1, -1, -6, -17, -28, -35, -47, -51, -49, -52, -51, -44, //84336
-37, -34, -33, -33, -32, -31, -37, -41, -44, -49, -53, -54, -51, -48, -35, -26, //84352
-21, -13, -8, -10, -18, -20, -23, -34, -45, -54, -70, -70, -63, -52, -38, -22, //84368
-18, -17, -18, -22, -25, -34, -41, -48, -57, -63, -62, -53, -46, -41, -31, -22, //84384
-17, -19, -28, -37, -43, -50, -57, -55, -58, -64, -65, -74, -79, -77, -74, -70, //84400
-69, -69, -74, -78, -75, -75, -76, -71, -67, -66, -68, -69, -80, -86, -85, -86, //84416
-82, -72, -64, -63, -63, -66, -69, -66, -58, -56, -52, -46, -45, -38, -29, -29, //84432
-31, -28, -30, -30, -31, -35, -33, -31, -34, -22, -16, -17, -12, -9, -19, -16, //84448
-8, -9, -11, -6, -7, -6, 3, 10, 15, 25, 27, 32, 39, 39, 44, 55, //84464
52, 51, 55, 59, 59, 66, 74, 75, 81, 87, 80, 70, 70, 75, 77, 79, //84480
92, 89, 83, 81, 76, 71, 74, 78, 77, 77, 80, 86, 94, 91, 88, 88, //84496
88, 89, 86, 85, 87, 86, 82, 71, 71, 73, 76, 81, 85, 94, 101, 101, //84512
99, 97, 90, 93, 92, 84, 83, 84, 82, 79, 76, 74, 72, 69, 69, 69, //84528
70, 72, 77, 79, 76, 82, 82, 75, 76, 72, 65, 63, 61, 51, 32, 26, //84544
24, 25, 25, 29, 32, 20, 7, -6, -15, -17, -15, -15, -21, -31, -38, -47, //84560
-47, -50, -50, -47, -54, -61, -62, -75, -76, -68, -69, -60, -47, -39, -39, -45, //84576
-49, -52, -55, -56, -66, -77, -91, -106, -105, -93, -88, -84, -76, -72, -70, -66, //84592
-58, -52, -51, -53, -63, -72, -78, -92, -105, -117, -118, -114, -116, -116, -112, -113, //84608
-106, -96, -89, -78, -76, -77, -75, -78, -74, -65, -58, -54, -52, -48, -52, -58, //84624
-58, -62, -64, -61, -65, -70, -76, -83, -86, -82, -78, -67, -60, -61, -58, -50, //84640
-46, -38, -31, -27, -26, -27, -28, -34, -42, -51, -62, -66, -74, -79, -76, -76, //84656
-74, -69, -61, -50, -41, -35, -27, -23, -24, -24, -21, -21, -27, -34, -39, -43, //84672
-48, -50, -46, -39, -32, -25, -14, -11, -8, 0, 2, -5, -7, -8, -11, -13, //84688
-11, -12, -11, -2, 3, 5, 19, 33, 30, 27, 24, 17, 9, 2, 1, -1, //84704
-3, -5, 2, 11, 12, 19, 30, 32, 36, 42, 49, 55, 56, 58, 59, 57, //84720
56, 56, 54, 52, 56, 54, 51, 59, 63, 63, 73, 77, 79, 79, 75, 72, //84736
73, 74, 72, 71, 69, 63, 62, 59, 58, 64, 79, 90, 96, 105, 111, 108, //84752
98, 91, 89, 92, 88, 76, 65, 59, 58, 56, 63, 83, 91, 93, 88, 95, //84768
105, 102, 99, 94, 88, 81, 70, 70, 69, 67, 67, 70, 74, 75, 74, 72, //84784
71, 72, 71, 75, 76, 71, 64, 56, 52, 50, 48, 43, 38, 36, 30, 27, //84800
30, 32, 33, 41, 40, 35, 33, 30, 17, 10, 9, 8, 4, 2, -3, -7, //84816
-5, -1, 4, 11, 8, 9, 13, 16, 14, 10, 10, 7, 6, 4, -4, -9, //84832
-13, -19, -23, -30, -38, -39, -39, -36, -31, -20, -3, 3, 3, -1, 1, 1, //84848
-12, -17, -25, -39, -52, -61, -62, -68, -70, -67, -59, -43, -39, -36, -33, -33, //84864
-37, -41, -41, -44, -51, -62, -73, -74, -81, -81, -72, -70, -67, -62, -56, -48, //84880
-42, -37, -28, -23, -28, -36, -37, -47, -55, -54, -60, -64, -59, -61, -64, -65, //84896
-65, -67, -75, -83, -86, -89, -90, -92, -100, -107, -114, -116, -114, -109, -98, -92, //84912
-89, -89, -85, -79, -77, -73, -72, -76, -82, -82, -78, -78, -75, -68, -61, -50, //84928
-46, -42, -36, -33, -26, -20, -24, -23, -21, -25, -30, -32, -29, -25, -28, -31, //84944
-29, -30, -27, -22, -22, -28, -31, -24, -17, -11, 0, 9, 14, 14, 11, 16, //84960
19, 15, 17, 14, 10, 14, 26, 32, 35, 39, 35, 26, 32, 37, 41, 48, //84976
53, 55, 60, 60, 57, 61, 68, 73, 79, 81, 79, 80, 81, 82, 85, 87, //84992
88, 84, 82, 82, 77, 73, 74, 76, 73, 75, 80, 83, 84, 81, 82, 82, //85008
81, 81, 79, 76, 64, 58, 60, 64, 68, 78, 86, 92, 93, 96, 94, 73, //85024
66, 57, 47, 47, 51, 57, 58, 58, 58, 59, 61, 61, 63, 67, 60, 47, //85040
37, 34, 26, 17, 9, 4, 7, 6, 2, 2, 4, 4, -2, -1, 4, 4, //85056
0, -3, -1, -1, -7, -5, 3, -4, -8, -7, -7, -7, -9, -6, -2, -5, //85072
-11, -15, -15, -15, -17, -19, -22, -23, -24, -30, -34, -34, -38, -40, -39, -39, //85088
-35, -35, -37, -29, -28, -27, -26, -35, -48, -55, -63, -74, -77, -74, -76, -80, //85104
-78, -73, -64, -59, -56, -55, -59, -65, -70, -76, -76, -76, -81, -82, -78, -71, //85120
-66, -62, -57, -48, -45, -57, -59, -55, -57, -62, -60, -57, -56, -55, -56, -60, //85136
-61, -59, -59, -56, -50, -44, -46, -48, -47, -52, -57, -53, -55, -59, -64, -69, //85152
-66, -65, -68, -67, -65, -64, -64, -64, -63, -60, -54, -52, -55, -47, -36, -32, //85168
-29, -23, -18, -18, -19, -16, -14, -16, -20, -22, -23, -25, -28, -23, -21, -19, //85184
-14, -10, -9, -6, -6, -8, -11, -9, -8, -11, -7, -1, 1, -3, -9, -8, //85200
-8, -8, -8, -6, -3, -6, -6, -5, -3, 4, 5, 4, 7, 11, 17, 23, //85216
27, 27, 28, 29, 28, 25, 22, 22, 30, 37, 42, 45, 46, 52, 59, 60, //85232
61, 65, 71, 69, 60, 56, 56, 55, 58, 63, 66, 71, 79, 82, 85, 87, //85248
87, 81, 79, 76, 70, 71, 72, 70, 72, 69, 65, 64, 60, 63, 64, 62, //85264
65, 69, 72, 73, 78, 82, 84, 86, 89, 90, 91, 88, 86, 87, 88, 87, //85280
87, 85, 82, 81, 82, 83, 81, 76, 70, 62, 58, 55, 52, 49, 48, 44, //85296
41, 42, 39, 38, 39, 32, 24, 16, 11, 12, 7, 0, 1, 2, 1, 1, //85312
1, 2, 5, 12, 16, 18, 18, 15, 11, 5, -1, 2, -2, -12, -17, -17, //85328
-19, -16, -10, -9, -7, -1, -1, -2, -1, -2, -4, -6, -8, -12, -20, -22, //85344
-21, -26, -24, -23, -24, -23, -24, -22, -19, -18, -17, -17, -16, -13, -12, -13, //85360
-18, -24, -28, -32, -35, -38, -40, -38, -38, -40, -36, -33, -35, -35, -29, -25, //85376
-20, -18, -19, -17, -24, -33, -37, -39, -40, -45, -51, -55, -58, -60, -61, -61, //85392
-60, -62, -67, -68, -71, -72, -70, -71, -76, -83, -94, -95, -95, -97, -98, -97, //85408
-92, -90, -91, -91, -86, -85, -90, -91, -88, -88, -93, -93, -89, -87, -84, -77, //85424
-66, -65, -65, -61, -53, -51, -52, -49, -46, -47, -52, -56, -50, -49, -47, -41, //85440
-41, -42, -39, -41, -42, -42, -42, -36, -37, -35, -28, -23, -20, -15, -13, -5, //85456
3, 6, 7, 7, 8, 12, 16, 18, 23, 32, 39, 44, 48, 49, 42, 38, //85472
36, 35, 33, 28, 33, 41, 40, 43, 57, 66, 74, 87, 96, 100, 100, 101, //85488
107, 102, 92, 86, 76, 73, 75, 76, 80, 87, 96, 96, 94, 100, 107, 108, //85504
110, 106, 101, 103, 108, 104, 100, 103, 106, 103, 101, 103, 104, 103, 97, 92, //85520
95, 96, 96, 96, 91, 86, 90, 87, 80, 75, 70, 65, 63, 62, 60, 57, //85536
54, 53, 45, 42, 44, 44, 39, 25, 23, 26, 28, 34, 39, 29, 26, 25, //85552
19, 14, 15, 14, 6, -5, -11, -15, -32, -38, -35, -31, -31, -30, -25, -27, //85568
-28, -25, -27, -31, -23, -20, -29, -36, -37, -47, -57, -64, -67, -69, -67, -60, //85584
-57, -55, -48, -37, -31, -30, -28, -26, -34, -48, -61, -72, -83, -93, -103, -103, //85600
-87, -85, -85, -83, -79, -80, -78, -72, -70, -71, -71, -73, -70, -72, -77, -70, //85616
-60, -61, -60, -58, -58, -59, -61, -66, -71, -73, -74, -76, -81, -77, -70, -71, //85632
-72, -65, -61, -57, -52, -47, -39, -33, -34, -37, -39, -44, -51, -60, -63, -60, //85648
-60, -69, -75, -68, -69, -75, -76, -67, -55, -57, -56, -52, -51, -49, -49, -52, //85664
-48, -45, -47, -47, -43, -44, -43, -41, -39, -38, -35, -25, -17, -17, -20, -21, //85680
-24, -28, -26, -25, -33, -41, -40, -40, -37, -29, -23, -21, -15, -11, -12, -12, //85696
-10, -13, -20, -24, -26, -26, -24, -22, -21, -21, -16, 0, 9, 17, 23, 30, //85712
36, 34, 28, 27, 29, 28, 24, 25, 26, 28, 30, 33, 41, 47, 51, 55, //85728
55, 51, 53, 58, 58, 54, 54, 54, 52, 59, 67, 70, 75, 80, 79, 84, //85744
89, 92, 97, 104, 106, 105, 103, 102, 98, 94, 92, 90, 86, 84, 85, 84, //85760
83, 84, 88, 95, 103, 104, 104, 107, 109, 101, 92, 91, 91, 87, 86, 89, //85776
87, 87, 86, 84, 82, 86, 86, 85, 83, 76, 69, 64, 60, 58, 53, 46, //85792
45, 42, 42, 42, 39, 37, 41, 45, 47, 47, 44, 37, 35, 30, 24, 24, //85808
29, 27, 24, 22, 20, 16, 18, 22, 20, 24, 31, 33, 30, 25, 15, 7, //85824
3, -1, -8, -11, -13, -15, -16, -16, -14, -11, -12, -15, -16, -24, -28, -32, //85840
-37, -37, -33, -33, -36, -38, -38, -37, -41, -43, -43, -45, -50, -55, -59, -61, //85856
-62, -63, -65, -65, -59, -58, -57, -56, -54, -53, -56, -58, -60, -65, -67, -67, //85872
-70, -70, -68, -69, -70, -70, -67, -66, -68, -71, -82, -86, -83, -81, -85, -89, //85888
-91, -92, -92, -91, -91, -90, -92, -97, -97, -99, -101, -97, -98, -99, -98, -99, //85904
-100, -97, -92, -87, -85, -84, -86, -90, -93, -90, -87, -88, -81, -73, -71, -69, //85920
-65, -62, -63, -64, -64, -61, -58, -54, -54, -57, -57, -55, -54, -49, -43, -43, //85936
-46, -46, -43, -37, -34, -32, -30, -32, -31, -22, -22, -19, -11, -7, 0, 6, //85952
10, 11, 12, 14, 12, 13, 19, 24, 28, 33, 37, 42, 49, 53, 55, 51, //85968
50, 53, 54, 54, 57, 63, 61, 60, 64, 71, 81, 93, 92, 89, 88, 86, //85984
81, 81, 80, 80, 83, 86, 91, 93, 96, 95, 95, 94, 89, 90, 93, 90, //86000
85, 81, 81, 87, 88, 87, 88, 92, 95, 93, 90, 87, 86, 87, 86, 89, //86016
93, 91, 89, 86, 84, 88, 90, 90, 88, 84, 82, 75, 66, 58, 49, 46, //86032
50, 48, 40, 36, 34, 29, 28, 32, 34, 39, 43, 37, 25, 17, 11, 4, //86048
-1, -2, -7, -11, -9, -12, -18, -15, -7, -5, 3, 3, -2, -4, -4, -5, //86064
-9, -15, -20, -26, -33, -35, -38, -39, -38, -42, -49, -58, -63, -70, -77, -78, //86080
-80, -77, -70, -64, -54, -43, -40, -41, -45, -54, -63, -67, -72, -82, -87, -86, //86096
-89, -88, -86, -88, -86, -80, -72, -64, -59, -57, -60, -61, -61, -63, -59, -47, //86112
-40, -41, -35, -35, -36, -32, -36, -42, -48, -55, -57, -56, -55, -56, -64, -58, //86128
-54, -52, -43, -28, -23, -20, -16, -14, -12, -10, -19, -28, -33, -46, -66, -72, //86144
-76, -72, -69, -70, -59, -48, -41, -38, -32, -25, -21, -20, -19, -21, -27, -31, //86160
-37, -42, -38, -38, -45, -45, -43, -44, -41, -31, -26, -25, -20, -22, -24, -18, //86176
-22, -28, -28, -29, -37, -44, -38, -38, -35, -31, -30, -18, 0, 2, 3, -1, //86192
-7, -19, -28, -34, -36, -33, -32, -30, -20, -11, -6, 3, 19, 31, 35, 45, //86208
51, 50, 52, 50, 47, 46, 45, 44, 45, 51, 54, 53, 56, 61, 62, 66, //86224
68, 68, 73, 76, 74, 75, 73, 68, 68, 69, 67, 67, 69, 69, 69, 81, //86240
87, 91, 101, 108, 109, 114, 115, 112, 106, 103, 100, 88, 81, 81, 82, 82, //86256
87, 93, 95, 97, 98, 92, 94, 100, 101, 98, 96, 92, 88, 82, 77, 77, //86272
79, 77, 76, 77, 77, 75, 83, 83, 77, 77, 81, 77, 69, 68, 63, 57, //86288
56, 50, 42, 39, 41, 40, 38, 39, 40, 41, 42, 39, 35, 31, 26, 18, //86304
10, 3, 3, 6, 7, 7, 11, 21, 23, 18, 22, 25, 19, 14, 12, 7, //86320
5, 5, 4, 4, 6, 0, -7, -6, -12, -27, -30, -31, -32, -36, -40, -33, //86336
-31, -27, -26, -26, -17, -22, -35, -41, -45, -53, -60, -65, -71, -71, -69, -66, //86352
-57, -52, -47, -45, -45, -42, -48, -49, -46, -52, -60, -65, -71, -71, -69, -70, //86368
-68, -68, -69, -67, -64, -61, -63, -60, -60, -66, -72, -80, -91, -94, -99, -105, //86384
-104, -102, -106, -107, -105, -104, -101, -95, -95, -95, -94, -97, -101, -104, -104, -108, //86400
-109, -103, -102, -100, -87, -80, -77, -72, -71, -71, -67, -65, -65, -66, -67, -68, //86416
-70, -70, -72, -70, -60, -58, -55, -47, -42, -37, -30, -31, -35, -30, -25, -33, //86432
-31, -24, -25, -30, -25, -27, -32, -31, -28, -26, -19, -11, -8, -6, 0, 0, //86448
0, 6, 11, 17, 19, 19, 25, 26, 23, 21, 23, 29, 25, 26, 32, 31, //86464
31, 38, 38, 36, 42, 51, 56, 67, 78, 83, 86, 87, 83, 76, 74, 77, //86480
75, 76, 81, 81, 81, 78, 77, 77, 71, 72, 73, 69, 65, 67, 72, 71, //86496
69, 72, 75, 78, 76, 76, 79, 77, 76, 70, 66, 68, 71, 73, 79, 88, //86512
95, 94, 92, 94, 85, 76, 73, 71, 62, 59, 63, 62, 68, 72, 71, 71, //86528
70, 67, 61, 55, 54, 48, 43, 38, 31, 25, 23, 19, 14, 16, 17, 12, //86544
14, 6, 1, 7, 5, 0, 3, 6, 7, 7, 9, 8, 3, -1, -8, -17, //86560
-20, -22, -24, -21, -18, -21, -25, -22, -25, -28, -26, -27, -25, -25, -30, -37, //86576
-38, -37, -48, -50, -47, -48, -48, -48, -46, -45, -49, -51, -55, -63, -61, -61, //86592
-59, -55, -58, -57, -57, -62, -62, -60, -58, -54, -50, -48, -49, -49, -46, -49, //86608
-50, -51, -53, -52, -51, -50, -55, -60, -55, -54, -59, -58, -54, -51, -50, -51, //86624
-50, -54, -59, -61, -67, -70, -64, -63, -62, -58, -54, -53, -54, -52, -51, -54, //86640
-54, -50, -50, -51, -52, -51, -41, -44, -43, -39, -45, -42, -41, -47, -48, -47, //86656
-48, -50, -48, -41, -35, -31, -27, -25, -25, -24, -23, -26, -28, -25, -26, -29, //86672
-30, -31, -32, -28, -24, -22, -19, -17, -14, -9, -10, -12, -10, -8, -5, -5, //86688
-7, -8, -4, -1, -3, 0, 3, -1, -3, 0, 3, 8, 8, 9, 15, 17, //86704
23, 31, 36, 42, 49, 52, 53, 52, 52, 51, 48, 47, 46, 46, 47, 57, //86720
62, 64, 72, 81, 82, 90, 92, 84, 81, 81, 78, 75, 72, 73, 77, 80, //86736
79, 79, 84, 85, 81, 81, 83, 80, 79, 77, 72, 76, 80, 74, 71, 79, //86752
84, 72, 72, 80, 77, 70, 73, 69, 68, 74, 73, 66, 68, 71, 65, 60, //86768
62, 63, 71, 72, 65, 68, 73, 67, 63, 59, 55, 58, 60, 44, 33, 34, //86784
34, 20, 10, 21, 19, 15, 19, 17, 9, 19, 19, 9, 11, 18, 12, 13, //86800
16, 12, 11, 17, 5, 3, 7, 1, 2, 6, 0, 1, -1, -1, -3, -3, //86816
6, 6, 8, 15, 15, 6, 1, -4, -9, -12, -14, -26, -27, -28, -38, -39, //86832
-34, -38, -35, -31, -32, -34, -23, -26, -32, -28, -27, -34, -38, -42, -43, -43, //86848
-42, -38, -43, -42, -40, -44, -54, -56, -46, -47, -52, -51, -54, -58, -57, -56, //86864
-53, -56, -59, -56, -60, -60, -57, -61, -71, -67, -67, -79, -86, -78, -78, -74, //86880
-72, -71, -66, -70, -69, -66, -68, -72, -73, -75, -76, -74, -72, -71, -64, -59, //86896
-54, -51, -52, -54, -54, -54, -49, -45, -50, -56, -54, -55, -52, -46, -47, -50, //86912
-48, -47, -43, -38, -38, -34, -28, -28, -34, -36, -32, -34, -33, -30, -33, -35, //86928
-33, -34, -35, -28, -17, -18, -16, -12, -16, -14, -6, -4, -7, -7, -4, 3, //86944
6, 6, 6, 10, 13, 10, 11, 12, 12, 15, 18, 18, 16, 23, 29, 28, //86960
32, 37, 34, 38, 43, 45, 40, 35, 39, 40, 43, 43, 39, 41, 42, 44, //86976
44, 40, 40, 41, 39, 35, 35, 42, 45, 42, 47, 51, 52, 51, 54, 56, //86992
52, 55, 57, 55, 52, 49, 44, 40, 47, 51, 45, 48, 48, 44, 42, 44, //87008
42, 36, 36, 35, 30, 27, 24, 20, 21, 24, 24, 26, 31, 35, 38, 37, //87024
31, 36, 38, 33, 34, 35, 32, 31, 31, 30, 26, 27, 27, 22, 19, 21, //87040
29, 31, 27, 25, 26, 33, 36, 28, 32, 34, 34, 36, 36, 32, 28, 30, //87056
30, 28, 32, 27, 20, 22, 23, 25, 23, 24, 27, 27, 25, 26, 32, 28, //87072
23, 25, 26, 25, 30, 28, 22, 19, 18, 8, 7, 12, 10, 5, 6, 5, //87088
0, -5, -2, 3, 2, 2, -1, -6, -10, -8, -3, -15, -19, -13, -12, -14, //87104
-9, -5, -9, -13, -8, -12, -16, -15, -16, -19, -25, -23, -27, -35, -29, -23, //87120
-31, -36, -35, -32, -31, -33, -35, -38, -40, -44, -46, -45, -49, -44, -46, -56, //87136
-57, -52, -50, -47, -44, -43, -42, -39, -39, -35, -33, -37, -41, -46, -47, -41, //87152
-41, -46, -45, -37, -38, -42, -45, -46, -48, -55, -61, -58, -55, -56, -55, -59, //87168
-59, -52, -47, -43, -42, -42, -43, -41, -41, -43, -43, -48, -49, -48, -51, -52, //87184
-45, -42, -42, -41, -37, -37, -39, -39, -36, -36, -45, -45, -41, -43, -45, -42, //87200
-35, -29, -23, -19, -17, -13, -8, -7, -10, -12, -8, -10, -14, -12, -7, -2, //87216
3, 12, 13, 13, 15, 18, 19, 19, 24, 32, 33, 31, 34, 34, 37, 38, //87232
35, 35, 39, 45, 45, 43, 41, 37, 38, 37, 37, 42, 41, 49, 55, 52, //87248
50, 52, 55, 53, 52, 53, 45, 41, 47, 47, 46, 44, 45, 45, 41, 46, //87264
46, 44, 43, 44, 43, 34, 32, 36, 32, 28, 28, 29, 30, 32, 37, 36, //87280
35, 37, 34, 30, 25, 25, 27, 26, 28, 27, 25, 24, 20, 22, 22, 18, //87296
17, 16, 14, 13, 13, 14, 5, 5, 3, -1, 3, 12, 10, 9, 9, 8, //87312
3, 2, 1, -2, -2, -3, -5, -7, -10, -9, -10, -10, -10, -10, -9, -8, //87328
-8, -6, -2, -3, -3, -3, -4, -1, 4, 2, -1, 2, 7, 1, 0, 4, //87344
3, 0, -2, 0, 0, 0, 3, 2, -1, 0, 1, 2, 1, 2, 5, 4, //87360
5, 5, 4, 4, 3, 2, -2, -5, -1, -1, -3, -4, -4, -6, -9, -6, //87376
-6, -7, -3, -2, -5, -12, -13, -11, -12, -15, -17, -20, -22, -23, -21, -18, //87392
-21, -19, -18, -20, -23, -23, -20, -24, -24, -22, -27, -33, -35, -39, -40, -41, //87408
-40, -39, -40, -38, -37, -38, -40, -37, -31, -34, -34, -32, -37, -38, -35, -32, //87424
-30, -29, -23, -24, -24, -23, -22, -17, -19, -21, -22, -25, -25, -20, -18, -19, //87440
-19, -15, -13, -12, -8, -5, -6, -5, -3, -3, -3, 2, 4, 3, 8, 8, //87456
3, 3, 5, 4, 6, 6, 3, 1, 0, -3, -4, -5, -10, -11, -2, 3, //87472
3, 6, 8, 7, 6, 6, 8, 10, 15, 17, 14, 15, 16, 16, 17, 19, //87488
22, 23, 27, 29, 25, 23, 21, 17, 14, 13, 13, 14, 18, 21, 24, 28, //87504
27, 24, 23, 20, 17, 17, 16, 13, 13, 15, 14, 11, 9, 7, 4, 4, //87520
8, 10, 9, 10, 7, 2, 1, 2, 1, 1, 0, -3, -2, 4, 4, 5, //87536
7, 7, 6, 6, 5, 7, 8, 7, 7, 9, 11, 11, 11, 12, 13, 15, //87552
14, 16, 19, 16, 14, 14, 13, 14, 17, 19, 21, 21, 21, 18, 16, 16, //87568
17, 17, 17, 17, 14, 10, 13, 14, 12, 13, 14, 9, 8, 9, 8, 6, //87584
12, 14, 12, 10, 7, 5, 2, -1, -3, -5, -6, -4, -5, -3, -4, -4, //87600
-3, -3, 1, 1, 1, 1, -1, 4, 3, 3, 3, -2, -7, -8, -8, -9, //87616
-13, -13, -14, -16, -17, -21, -22, -18, -17, -17, -18, -18, -17, -21, -21, -23, //87632
-24, -23, -26, -23, -25, -26, -23, -21, -20, -22, -22, -19, -19, -18, -20, -22, //87648
-23, -27, -31, -33, -38, -40, -44, -45, -44, -43, -37, -35, -36, -36, -34, -29, //87664
-26, -26, -28, -30, -32, -32, -31, -30, -29, -31, -30, -28, -28, -26, -24, -24, //87680
-23, -24, -22, -22, -21, -16, -15, -14, -12, -12, -12, -12, -9, -7, -6, -3, //87696
-4, -4, -3, -4, -2, -2, -3, -4, -3, 0, 0, 2, 6, 0, 1, 6, //87712
6, 6, 9, 11, 11, 11, 11, 10, 12, 13, 12, 12, 11, 11, 15, 18, //87728
20, 20, 21, 26, 29, 30, 30, 30, 31, 34, 35, 35, 34, 33, 31, 28, //87744
29, 31, 33, 35, 33, 33, 33, 32, 34, 36, 36, 37, 37, 35, 32, 28, //87760
27, 25, 27, 27, 22, 19, 18, 17, 16, 16, 16, 13, 11, 11, 10, 10, //87776
9, 10, 11, 6, 5, 7, 8, 10, 9, 6, 6, 4, 5, 6, 7, 6, //87792
7, 9, 5, 6, 8, 6, 6, 8, 9, 9, 10, 11, 13, 15, 17, 19, //87808
19, 18, 19, 20, 19, 18, 19, 17, 16, 16, 15, 15, 14, 12, 13, 13, //87824
13, 12, 12, 10, 8, 10, 12, 14, 12, 6, 4, 2, 3, 5, 5, 6, //87840
4, 4, 5, 6, 6, 5, 6, 6, 5, 3, 2, 2, 1, 0, -2, -2, //87856
-4, -3, -3, -4, -4, -4, -5, -7, -10, -11, -12, -13, -11, -11, -12, -11, //87872
-8, -8, -11, -11, -10, -10, -11, -12, -12, -13, -14, -15, -17, -15, -17, -20, //87888
-20, -23, -23, -21, -22, -24, -26, -27, -29, -28, -25, -24, -24, -22, -20, -19, //87904
-19, -18, -22, -25, -25, -25, -25, -24, -22, -26, -27, -26, -29, -31, -28, -25, //87920
-23, -23, -21, -20, -17, -17, -18, -17, -19, -21, -20, -21, -20, -18, -18, -17, //87936
-15, -13, -14, -13, -8, -6, -4, -3, -2, -1, 1, 3, 6, 7, 7, 8, //87952
9, 10, 9, 8, 8, 5, 5, 5, 5, 6, 7, 9, 9, 10, 11, 12, //87968
12, 11, 11, 10, 9, 9, 11, 10, 10, 9, 5, 2, 0, 0, 0, 2, //87984
4, 3, 1, 1, 0, 0, 3, 3, 5, 4, 3, 3, 6, 9, 9, 11, //88000
12, 9, 8, 10, 10, 9, 8, 9, 8, 9, 10, 10, 10, 11, 11, 12, //88016
12, 12, 11, 11, 10, 10, 12, 14, 12, 10, 11, 12, 13, 14, 14, 12, //88032
12, 13, 17, 19, 18, 16, 18, 18, 19, 22, 21, 23, 26, 29, 32, 31, //88048
30, 29, 25, 22, 22, 20, 18, 19, 20, 19, 18, 19, 19, 18, 15, 15, //88064
16, 17, 17, 16, 17, 19, 18, 18, 19, 19, 19, 18, 16, 15, 15, 15, //88080
12, 8, 8, 8, 9, 9, 8, 9, 9, 11, 14, 14, 14, 14, 15, 16, //88096
15, 16, 16, 9, 5, 1, 0, -2, -4, -2, -2, 0, 2, 1, 0, -3, //88112
-5, -6, -9, -11, -14, -15, -14, -13, -11, -9, -9, -8, -8, -8, -8, -8, //88128
-10, -13, -16, -17, -18, -18, -21, -24, -24, -25, -28, -29, -31, -32, -33, -36, //88144
-37, -38, -38, -36, -36, -36, -36, -36, -36, -35, -33, -35, -34, -32, -34, -34, //88160
-35, -37, -37, -36, -37, -37, -37, -37, -37, -34, -32, -33, -33, -35, -37, -37, //88176
-37, -35, -31, -31, -31, -29, -27, -26, -24, -22, -21, -20, -18, -17, -15, -13, //88192
-12, -9, -6, -1, 2, 3, 4, 5, 7, 7, 7, 8, 8, 6, 7, 9, //88208
11, 14, 17, 19, 21, 23, 26, 26, 26, 25, 22, 22, 23, 20, 16, 15, //88224
11, 7, 9, 13, 14, 14, 14, 12, 11, 10, 9, 9, 7, 5, 5, 8, //88240
12, 13, 13, 12, 12, 15, 14, 13, 14, 14, 13, 13, 14, 12, 9, 10, //88256
11, 11, 12, 11, 10, 8, 5, 2, 2, 1, -3, -6, -5, -5, -6, -7, //88272
-7, -7, -4, -5, -6, -8, -11, -13, -11, -10, -11, -11, -11, -11, -10, -9, //88288
-9, -7, -3, 0, 2, 3, 4, 3, 1, 0, 1, 1, 1, 2, 5, 6, //88304
7, 8, 10, 12, 10, 11, 13, 14, 15, 16, 14, 14, 14, 13, 13, 17, //88320
16, 15, 16, 16, 18, 20, 18, 17, 14, 12, 11, 12, 11, 10, 6, 4, //88336
7, 9, 9, 8, 7, 4, 2, 3, 4, 4, 3, 1, 0, 1, 5, 5, //88352
4, 2, -1, -4, -4, -5, -8, -11, -9, -10, -12, -12, -12, -12, -11, -11, //88368
-12, -13, -14, -16, -16, -14, -13, -13, -13, -14, -14, -13, -12, -14, -13, -13, //88384
-15, -16, -14, -13, -16, -18, -19, -20, -22, -21, -20, -20, -19, -20, -21, -19, //88400
-15, -11, -12, -13, -9, -8, -8, -7, -5, -8, -10, -8, -7, -5, -2, -3, //88416
-6, -4, -2, -5, -8, -8, -10, -10, -8, -6, -5, -4, -2, 0, 3, 5, //88432
5, 6, 6, 6, 6, 6, 6, 7, 9, 10, 10, 11, 11, 9, 9, 12, //88448
13, 10, 10, 10, 11, 12, 12, 13, 13, 13, 13, 14, 14, 15, 16, 17, //88464
17, 17, 17, 19, 21, 21, 18, 16, 16, 15, 14, 12, 9, 7, 7, 7, //88480
6, 3, 0, -7, -10, -10, -11, -12, -12, -13, -15, -15, -14, -12, -11, -13, //88496
-16, -15, -13, -14, -15, -12, -8, -6, -3, 1, 6, 7, 8, 9, 9, 8, //88512
6, 4, 3, 2, 2, 2, 1, 1, 2, 3, 4, 6, 5, 4, 5, 6, //88528
6, 5, 7, 9, 8, 6, 8, 10, 10, 11, 11, 11, 12, 13, 15, 18, //88544
17, 15, 16, 17, 18, 19, 20, 24, 26, 27, 29, 31, 31, 30, 28, 25, //88560
23, 23, 21, 20, 19, 19, 21, 23, 22, 21, 20, 19, 19, 19, 18, 18, //88576
19, 19, 17, 15, 17, 17, 16, 16, 17, 17, 17, 17, 17, 15, 14, 15, //88592
14, 13, 10, 10, 11, 9, 7, 6, 5, 4, 0, -3, -5, -7, -7, -7, //88608
-11, -13, -13, -12, -10, -10, -9, -7, -7, -8, -8, -7, -9, -11, -12, -14, //88624
-16, -18, -19, -19, -20, -21, -22, -22, -21, -20, -22, -24, -27, -27, -28, -30, //88640
-30, -30, -33, -36, -36, -33, -31, -28, -27, -29, -30, -29, -28, -28, -29, -29, //88656
-28, -30, -30, -31, -32, -32, -32, -31, -30, -29, -30, -30, -28, -29, -29, -31, //88672
-32, -30, -29, -30, -29, -28, -29, -30, -28, -22, -20, -19, -18, -18, -16, -12, //88688
-13, -15, -14, -12, -11, -9, -6, -4, -4, 0, 4, 5, 7, 10, 12, 10, //88704
6, 8, 9, 10, 12, 15, 17, 19, 20, 20, 20, 18, 18, 17, 14, 13, //88720
13, 12, 11, 10, 7, 7, 9, 9, 10, 12, 12, 11, 5, 3, 3, 4, //88736
4, 2, 1, -1, -3, -4, -6, -6, -7, -8, -8, -8, -5, 1, 1, 0, //88752
0, 0, -2, -2, -1, -1, -2, -5, -6, -5, -5, -6, -8, -10, -8, -10, //88768
-11, -9, -4, 2, 1, -1, 1, 4, 4, 1, 4, 5, 3, 1, -1, -3, //88784
-4, -7, -9, -9, -7, -6, -6, -5, -7, -11, -13, -12, -14, -15, -14, -12, //88800
-11, -11, -9, -6, -3, -4, -2, -2, -2, -2, -2, -2, 1, 1, -1, 0, //88816
0, 0, 1, 2, 3, 4, 5, 5, 6, 8, 9, 10, 11, 13, 15, 16, //88832
16, 14, 11, 13, 14, 12, 8, 12, 16, 16, 14, 15, 21, 21, 19, 18, //88848
17, 17, 16, 15, 15, 16, 18, 18, 15, 16, 17, 17, 16, 15, 18, 20, //88864
21, 18, 16, 17, 15, 13, 13, 13, 13, 14, 13, 11, 11, 11, 10, 7, //88880
7, 7, 3, -1, -2, -2, -4, -8, -10, -9, -5, -3, -4, -4, -2, -1, //88896
-2, -2, -2, -3, -4, -5, -8, -7, -5, -7, -11, -14, -13, -12, -13, -15, //88912
-12, -8, -9, -8, -4, -2, -2, 1, 4, 5, 4, 4, 7, 7, 8, 11, //88928
11, 9, 10, 9, 9, 13, 16, 14, 14, 15, 14, 13, 14, 13, 12, 11, //88944
10, 9, 9, 8, 6, 7, 9, 10, 10, 10, 11, 13, 14, 12, 13, 16, //88960
16, 15, 15, 16, 19, 22, 21, 19, 20, 20, 18, 17, 18, 18, 14, 9, //88976
7, 6, 6, 6, 6, 4, 5, 4, 1, 2, 0, -2, -2, -1, 2, 2, //88992
1, 1, 2, 3, 2, 0, -2, -5, -9, -10, -9, -5, -3, -2, -2, -2, //89008
0, 2, 2, 0, -3, -5, -7, -9, -10, -11, -10, -10, -12, -11, -9, -9, //89024
-9, -8, -7, -6, -5, -6, -7, -6, -6, -7, -7, -5, -3, -3, -1, 1, //89040
2, 3, 3, 2, 4, 7, 9, 10, 13, 15, 14, 15, 15, 15, 12, 11, //89056
11, 11, 11, 12, 12, 13, 13, 11, 11, 11, 8, 8, 8, 8, 7, 6, //89072
8, 10, 12, 10, 7, 8, 6, 5, 5, 6, 5, 3, 2, 1, 0, -3, //89088
-7, -9, -9, -8, -7, -7, -9, -9, -8, -9, -10, -10, -9, -10, -11, -11, //89104
-9, -8, -8, -9, -8, -5, -5, -6, -8, -8, -6, -7, -7, -5, -3, -3, //89120
-4, -5, -6, -7, -11, -15, -17, -16, -16, -20, -23, -24, -26, -31, -35, -37, //89136
-37, -36, -34, -33, -35, -36, -35, -36, -38, -38, -38, -38, -37, -34, -28, -28, //89152
-30, -30, -31, -33, -29, -27, -28, -29, -27, -26, -26, -23, -23, -26, -24, -24, //89168
-25, -24, -24, -24, -22, -17, -17, -19, -19, -17, -16, -14, -14, -13, -12, -13, //89184
-14, -14, -13, -12, -12, -12, -9, -6, -6, -7, -7, -8, -7, -4, -4, -4, //89200
-4, -3, 0, 2, 3, 4, 6, 4, 4, 7, 7, 7, 9, 12, 12, 12, //89216
11, 11, 12, 12, 14, 15, 16, 20, 21, 19, 18, 16, 13, 9, 9, 10, //89232
12, 14, 14, 14, 15, 16, 16, 16, 14, 16, 16, 12, 10, 9, 4, 0, //89248
-2, -3, -6, -7, -4, -7, -7, -4, -5, -7, -6, -4, -5, -6, -5, -3, //89264
-4, -5, -5, -5, -6, -9, -11, -12, -12, -11, -10, -9, -7, -3, -2, -5, //89280
-5, -6, -6, -2, 2, 4, 3, 3, 3, 1, 2, 5, 9, 11, 11, 12, //89296
15, 18, 18, 17, 17, 18, 15, 14, 13, 12, 12, 13, 13, 13, 16, 17, //89312
16, 17, 17, 17, 16, 15, 14, 12, 8, 9, 11, 12, 14, 17, 18, 19, //89328
20, 22, 23, 19, 16, 13, 13, 13, 13, 14, 14, 13, 10, 8, 7, 8, //89344
9, 10, 11, 11, 10, 8, 8, 8, 6, 5, 5, 2, 2, 3, 3, 1, //89360
1, 1, -1, -5, -7, -4, -4, -5, -5, -5, -6, -5, -5, -5, -6, -7, //89376
-8, -8, -6, -5, -4, -4, -8, -9, -9, -9, -8, -8, -5, -6, -6, -2, //89392
0, -1, -1, -2, -2, -2, -3, -3, -3, -3, -3, -4, -3, 0, 0, 0, //89408
0, -2, -5, -5, -4, -4, -4, -2, -2, 1, 2, 3, 4, 4, 2, 0, //89424
-2, -2, -2, 0, -4, -5, -3, -2, -1, -1, 1, 5, 4, 4, 5, 4, //89440
4, 6, 7, 9, 10, 10, 10, 11, 14, 16, 17, 19, 19, 17, 18, 20, //89456
18, 15, 14, 14, 12, 9, 8, 6, 2, 3, 3, 3, 6, 7, 7, 5, //89472
4, 8, 7, 5, 2, 0, -1, -4, -6, -7, -8, -8, -8, -6, -4, -4, //89488
-4, -4, -5, -6, -5, -5, -6, -6, -11, -17, -17, -16, -17, -18, -17, -16, //89504
-17, -17, -16, -13, -12, -12, -13, -13, -9, -11, -14, -14, -11, -13, -14, -11, //89520
-9, -10, -11, -13, -11, -11, -13, -12, -13, -12, -10, -10, -10, -10, -8, -5, //89536
-2, 2, 3, 6, 8, 6, 7, 7, 5, 6, 7, 6, 6, 6, 6, 6, //89552
3, 3, 4, 4, 1, 3, 4, 1, 1, 3, 2, 2, 0, -1, -1, 0, //89568
2, 3, 4, 6, 6, 7, 7, 7, 8, 8, 7, 8, 10, 8, 6, 5, //89584
4, 4, 7, 9, 9, 9, 8, 5, 8, 10, 9, 7, 4, -1, -1, -1, //89600
-1, -1, -1, -1, 1, 0, -5, -7, -7, -12, -15, -21, -24, -23, -26, -27, //89616
-22, -18, -20, -23, -21, -20, -19, -16, -16, -19, -17, -19, -23, -26, -25, -25, //89632
-28, -27, -26, -27, -26, -33, -33, -29, -29, -30, -32, -31, -29, -26, -25, -31, //89648
-31, -30, -33, -35, -37, -37, -35, -39, -42, -43, -41, -39, -40, -39, -36, -36, //89664
-37, -34, -32, -32, -30, -27, -30, -29, -31, -33, -31, -30, -33, -30, -25, -23, //89680
-21, -16, -10, -9, -9, -8, -2, 0, -2, 0, 6, 14, 20, 21, 22, 22, //89696
22, 20, 19, 19, 18, 18, 14, 12, 9, 8, 11, 13, 13, 18, 19, 18, //89712
21, 20, 17, 18, 22, 20, 18, 19, 17, 14, 15, 13, 13, 10, 7, 15, //89728
15, 16, 18, 21, 24, 21, 21, 21, 20, 22, 21, 18, 15, 13, 14, 11, //89744
13, 13, 6, 6, 8, 6, 3, 3, 5, 6, 4, 0, 1, 1, -4, -5, //89760
-2, -8, -9, -9, -12, -11, -8, -4, -5, -7, -8, -9, -10, -9, -9, -10, //89776
-10, -8, -8, -13, -11, -8, -7, -4, 2, 6, 8, 8, 9, 11, 12, 11, //89792
12, 15, 12, 7, 9, 8, 7, 9, 11, 10, 12, 15, 13, 10, 18, 18, //89808
18, 21, 23, 22, 26, 27, 26, 25, 26, 28, 31, 32, 31, 32, 34, 34, //89824
33, 33, 29, 23, 22, 20, 19, 20, 22, 24, 21, 20, 18, 16, 16, 15, //89840
12, 11, 10, 10, 10, 10, 13, 14, 13, 12, 14, 13, 14, 17, 16, 13, //89856
13, 14, 12, 12, 13, 12, 9, 7, 7, 5, 2, 1, 0, -1, -1, -1, //89872
-2, -4, 0, 2, 2, 1, 1, 2, -1, -3, -1, -2, -6, -6, -5, -4, //89888
-1, 1, -1, -8, -5, -7, -12, -11, -8, -7, -8, -7, -6, -7, -7, -5, //89904
-6, -9, -12, -13, -11, -11, -9, -7, -8, -10, -6, -3, -3, -4, -6, -7, //89920
-7, -5, -2, -1, -1, 2, 1, -1, 1, 3, 0, -2, 0, 2, 5, 6, //89936
8, 9, 11, 14, 12, 10, 12, 14, 14, 14, 14, 13, 10, 8, 6, 8, //89952
8, 3, 7, 12, 12, 14, 16, 14, 15, 18, 18, 16, 16, 18, 18, 18, //89968
15, 12, 11, 13, 15, 14, 12, 13, 10, 7, 6, 5, 3, -2, -5, -6, //89984
-7, -10, -14, -16, -17, -17, -18, -19, -21, -20, -20, -21, -23, -25, -25, -30, //90000
-31, -29, -30, -30, -25, -24, -23, -19, -17, -19, -17, -13, -12, -13, -14, -15, //90016
-14, -15, -16, -16, -17, -18, -17, -19, -22, -18, -14, -17, -17, -13, -10, -11, //90032
-10, -7, -9, -10, -11, -11, -9, -6, -4, -1, 0, 1, 1, 2, 3, 3, //90048
3, 2, 5, 8, 9, 9, 10, 12, 11, 11, 13, 12, 10, 11, 13, 13, //90064
12, 13, 18, 19, 20, 21, 21, 19, 22, 23, 22, 20, 21, 22, 19, 19, //90080
19, 17, 16, 16, 14, 12, 10, 10, 11, 13, 17, 20, 20, 20, 22, 19, //90096
17, 14, 10, 8, 4, 4, 5, 4, 3, 2, 0, -1, -1, 0, 1, -5, //90112
-5, -5, -7, -10, -10, -11, -15, -17, -18, -19, -18, -12, -11, -12, -12, -11, //90128
-13, -11, -8, -6, -7, -9, -8, -9, -11, -14, -18, -20, -18, -17, -17, -18, //90144
-18, -16, -18, -19, -18, -18, -21, -21, -19, -18, -20, -21, -20, -22, -23, -23, //90160
-23, -20, -14, -13, -15, -15, -15, -16, -19, -19, -20, -22, -22, -21, -23, -23, //90176
-20, -18, -18, -19, -18, -18, -20, -21, -19, -17, -16, -13, -10, -8, -7, 0, //90192
5, 10, 10, 9, 9, 8, 8, 9, 9, 8, 10, 10, 9, 10, 12, 11, //90208
11, 10, 10, 9, 9, 12, 13, 13, 14, 16, 16, 15, 16, 16, 17, 18, //90224
18, 16, 12, 8, 4, 0, -1, 1, 2, 1, 0, 2, -1, -3, -1, 1, //90240
0, -2, -4, -6, -6, -5, -5, -6, -4, -4, -6, -6, -3, -2, -3, -3, //90256
-2, -2, -5, -6, -8, -10, -9, -7, -5, -6, -8, -10, -13, -15, -18, -18, //90272
-17, -16, -16, -16, -15, -15, -13, -11, -11, -9, -8, -9, -9, -7, -5, -3, //90288
-1, 0, -1, -3, -2, -2, -2, -1, 0, 0, -1, -1, -2, -5, -6, -4, //90304
-6, -6, 0, 3, 4, 4, 2, 1, 1, 1, 1, 5, 8, 9, 11, 11, //90320
9, 8, 10, 9, 8, 9, 10, 8, 8, 7, 6, 5, 6, 5, 4, 7, //90336
11, 11, 16, 18, 17, 14, 11, 6, 5, 6, 5, 4, 4, 4, 4, 4, //90352
6, 9, 10, 10, 8, 8, 10, 10, 9, 10, 12, 11, 11, 14, 13, 13, //90368
16, 18, 19, 20, 17, 13, 7, 2, -2, -10, -12, -11, -11, -11, -10, -8, //90384
-7, -6, -5, -5, -7, -8, -11, -14, -17, -20, -22, -23, -24, -26, -27, -26, //90400
-25, -24, -23, -22, -22, -20, -19, -19, -19, -17, -16, -14, -13, -15, -16, -17, //90416
-17, -17, -16, -16, -16, -14, -10, -7, -5, -2, 0, 0, 3, 4, 4, 5, //90432
6, 7, 7, 9, 11, 13, 15, 15, 15, 16, 16, 15, 16, 18, 18, 17, //90448
17, 17, 16, 15, 17, 17, 18, 20, 20, 22, 25, 27, 27, 27, 27, 25, //90464
24, 24, 24, 22, 22, 23, 22, 22, 22, 21, 22, 25, 26, 27, 30, 31, //90480
30, 30, 30, 29, 29, 26, 22, 19, 17, 15, 14, 12, 11, 12, 12, 12, //90496
9, 8, 7, 7, 10, 13, 13, 13, 13, 12, 12, 14, 17, 20, 23, 24, //90512
24, 25, 24, 21, 21, 19, 18, 15, 13, 9, 5, 3, 1, 0, -1, -1, //90528
-2, -4, -4, -3, -2, 0, 1, 0, -2, -5, -9, -9, -8, -7, -6, -5, //90544
-4, -3, -2, -1, 1, 5, 5, 5, 6, 6, 7, 9, 10, 10, 9, 10, //90560
9, 8, 9, 9, 7, 6, 4, 3, 4, 4, 4, 5, 5, 7, 9, 8, //90576
7, 5, 3, 2, 1, 1, 1, 1, 2, 3, 4, 6, 8, 9, 9, 7, //90592
4, 1, -1, -4, -6, -6, -9, -10, -11, -11, -9, -7, -6, -5, -2, 0, //90608
1, 0, -3, -4, -4, -3, -3, -3, -5, -9, -12, -12, -12, -11, -9, -9, //90624
-12, -15, -20, -23, -26, -28, -29, -32, -31, -32, -33, -33, -34, -34, -35, -35, //90640
-36, -37, -38, -41, -43, -43, -44, -46, -47, -48, -50, -51, -50, -48, -46, -46, //90656
-46, -45, -44, -43, -40, -36, -35, -34, -31, -30, -28, -27, -26, -26, -25, -24, //90672
-26, -26, -25, -26, -26, -21, -20, -20, -17, -15, -16, -18, -17, -16, -17, -18, //90688
-19, -20, -21, -21, -19, -17, -12, -8, -7, -5, -2, 1, 0, -1, -1, -2, //90704
-3, -4, -4, -2, -2, -3, -2, 0, 0, 1, 2, 2, 6, 8, 7, 6, //90720
6, 3, -2, -3, -2, -3, -3, 0, 3, 3, 5, 6, 6, 6, 7, 8, //90736
10, 13, 13, 11, 9, 7, 2, 0, 1, -1, -1, -1, -2, -1, 1, -1, //90752
-1, 1, 2, 0, -1, -1, -2, -1, -1, -2, -1, 1, 2, 3, 3, 3, //90768
4, 4, 5, 6, 6, 4, 3, 2, 2, 1, -1, -3, -5, -5, -6, -7, //90784
-8, -10, -12, -12, -9, -7, -3, -1, -2, -3, -5, -7, -9, -9, -8, -7, //90800
-5, -3, -4, -7, -9, -7, -7, -2, 3, 5, 7, 9, 8, 5, 6, 6, //90816
6, 6, 4, 3, 3, 4, 5, 7, 10, 10, 11, 12, 15, 17, 19, 19, //90832
19, 19, 16, 14, 13, 11, 9, 10, 10, 11, 12, 12, 13, 16, 18, 19, //90848
20, 19, 17, 18, 19, 18, 18, 19, 19, 18, 16, 14, 16, 15, 11, 9, //90864
8, 6, 5, 3, 1, -1, -1, -1, -2, -3, -4, -4, -4, -5, -6, -7, //90880
-9, -10, -8, -3, 1, 3, 4, 3, 3, 3, 3, 3, 1, -2, -4, -4, //90896
-2, 4, 5, 5, 5, 5, 5, 8, 7, 8, 9, 9, 9, 8, 8, 9, //90912
9, 10, 10, 13, 16, 18, 21, 23, 23, 23, 23, 23, 22, 23, 22, 20, //90928
19, 20, 20, 19, 19, 20, 20, 21, 22, 22, 21, 17, 14, 12, 12, 12, //90944
13, 14, 15, 16, 17, 21, 25, 27, 29, 32, 35, 37, 38, 39, 37, 36, //90960
38, 38, 38, 38, 39, 39, 39, 39, 37, 37, 37, 34, 33, 33, 31, 30, //90976
31, 30, 31, 32, 30, 30, 29, 27, 26, 24, 23, 23, 17, 13, 14, 15, //90992
14, 13, 13, 11, 8, 7, 4, 5, 5, 6, 6, 4, 2, 2, 4, 3, //91008
0, 0, 0, -2, -3, -4, -5, -7, -9, -12, -12, -12, -13, -14, -15, -16, //91024
-17, -19, -20, -18, -15, -13, -10, -6, -3, 0, 0, 0, 1, 2, 1, 0, //91040
1, 0, -1, -1, -1, -1, 0, 0, -1, -2, -1, 0, 2, 2, 2, 4, //91056
4, 5, 5, 6, 9, 8, 5, 2, 1, 0, 0, 1, 3, 5, 6, 7, //91072
8, 11, 15, 15, 16, 18, 17, 18, 18, 19, 19, 19, 16, 14, 13, 11, //91088
11, 12, 13, 12, 12, 12, 9, 9, 11, 11, 10, 8, 8, 10, 10, 11, //91104
13, 13, 13, 12, 12, 10, 8, 6, 0, -4, -7, -10, -14, -20, -27, -30, //91120
-30, -30, -30, -29, -27, -27, -26, -25, -28, -31, -34, -38, -42, -44, -48, -48, //91136
-51, -54, -56, -58, -59, -58, -55, -53, -52, -53, -52, -54, -55, -54, -54, -55, //91152
-57, -60, -61, -60, -60, -60, -60, -59, -59, -58, -57, -56, -56, -55, -54, -53, //91168
-51, -49, -50, -51, -52, -54, -55, -53, -51, -49, -46, -45, -45, -45, -44, -44, //91184
-43, -42, -41, -41, -39, -37, -35, -32, -31, -29, -27, -25, -24, -22, -19, -18, //91200
-16, -13, -10, -8, -6, -5, -4, 0, 7, 10, 13, 15, 18, 18, 18, 18, //91216
17, 16, 14, 15, 16, 16, 15, 14, 14, 14, 14, 16, 19, 23, 26, 27, //91232
28, 28, 28, 28, 27, 27, 27, 27, 26, 24, 20, 19, 18, 18, 17, 15, //91248
12, 12, 13, 15, 15, 15, 16, 15, 14, 14, 14, 11, 10, 11, 10, 9, //91264
8, 6, 5, 3, 1, 2, 3, 4, 3, 2, 3, 4, 4, 3, 1, -1, //91280
-2, -3, -4, -3, -3, -3, -1, 1, 2, 2, 2, 2, 2, 0, 0, -1, //91296
-2, -3, -4, -5, -5, -4, -3, -2, 0, 1, 2, 2, 3, 5, 7, 7, //91312
8, 8, 7, 6, 6, 4, 3, 4, 5, 6, 8, 11, 14, 15, 13, 14, //91328
14, 14, 16, 17, 18, 18, 19, 19, 18, 18, 14, 11, 12, 14, 14, 15, //91344
20, 20, 19, 18, 19, 20, 20, 18, 16, 16, 15, 12, 12, 12, 8, 6, //91360
8, 11, 14, 18, 19, 17, 15, 12, 10, 8, 8, 7, 4, 3, 1, 1, //91376
2, 5, 6, 5, 4, 2, -1, -4, -6, -7, -6, -5, -5, -6, -7, -8, //91392
-9, -11, -13, -11, -8, -6, -5, -5, -7, -10, -10, -11, -13, -14, -13, -12, //91408
-13, -13, -10, -10, -11, -10, -12, -12, -12, -10, -10, -13, -15, -16, -16, -14, //91424
-15, -15, -13, -14, -16, -17, -18, -18, -19, -19, -18, -17, -15, -14, -14, -12, //91440
-9, -7, -5, -4, -4, -5, -5, -5, -4, -3, -2, -1, 0, 0, 1, 2, //91456
4, 6, 5, 5, 5, 5, 6, 9, 10, 11, 11, 10, 7, 7, 7, 8, //91472
10, 11, 13, 15, 17, 18, 19, 20, 22, 24, 27, 29, 30, 31, 33, 33, //91488
33, 33, 34, 34, 33, 32, 32, 34, 35, 34, 33, 33, 30, 27, 23, 20, //91504
18, 15, 12, 9, 4, 3, 3, 3, 4, 4, 3, 1, -1, -2, -3, -4, //91520
-4, -4, -4, -4, -4, -2, -2, -3, -6, -7, -9, -12, -12, -12, -12, -13, //91536
-12, -13, -14, -15, -16, -16, -16, -15, -15, -15, -15, -15, -15, -14, -14, -14, //91552
-12, -10, -9, -10, -10, -11, -12, -12, -12, -11, -10, -10, -10, -8, -8, -7, //91568
-6, -6, -6, -4, -1, 2, 3, 3, 3, 4, 4, 4, 5, 8, 10, 11, //91584
13, 18, 21, 22, 22, 23, 24, 24, 22, 23, 23, 23, 24, 27, 29, 29, //91600
29, 27, 25, 25, 22, 22, 22, 20, 17, 15, 15, 14, 13, 11, 9, 7, //91616
6, 6, 5, 5, 4, 2, 1, -1, -2, -4, -6, -9, -10, -9, -9, -10, //91632
-10, -10, -11, -13, -15, -15, -16, -15, -14, -13, -14, -15, -16, -17, -19, -20, //91648
-21, -23, -25, -26, -25, -23, -23, -22, -23, -24, -24, -24, -24, -25, -25, -27, //91664
-29, -30, -32, -34, -36, -37, -38, -39, -39, -39, -39, -39, -40, -40, -40, -40, //91680
-41, -41, -41, -40, -40, -40, -40, -41, -43, -44, -44, -44, -45, -43, -42, -40, //91696
-38, -36, -34, -34, -32, -32, -33, -33, -33, -32, -30, -30, -28, -26, -27, -28, //91712
-29, -29, -27, -24, -19, -13, -10, -6, -5, -3, -2, -1, 0, 0, 1, 1, //91728
2, 5, 8, 12, 13, 15, 18, 19, 18, 19, 20, 21, 22, 22, 22, 23, //91744
23, 20, 20, 21, 23, 25, 26, 28, 27, 24, 21, 18, 15, 13, 13, 13, //91760
12, 11, 12, 12, 11, 9, 7, 6, 7, 10, 12, 13, 13, 11, 7, 6, //91776
7, 7, 5, 5, 6, 5, 4, 4, 4, 0, 0, 1, 1, 2, 3, 2, //91792
1, -1, -1, 0, -1, -3, -5, -7, -7, -6, -5, -3, -1, 1, 0, -3, //91808
-5, -5, -5, -4, -3, -4, -4, -3, -3, -2, -1, 0, -1, -3, -3, 0, //91824
3, 6, 7, 7, 6, 4, 3, 3, 2, 3, 4, 4, 5, 8, 11, 11, //91840
11, 11, 11, 9, 8, 8, 10, 12, 11, 11, 10, 10, 7, 4, 3, 4, //91856
5, 7, 9, 10, 9, 6, 1, -1, -1, -1, 0, 1, 4, 7, 7, 8, //91872
8, 9, 8, 5, 7, 10, 12, 15, 16, 18, 19, 19, 18, 17, 17, 20, //91888
22, 23, 24, 24, 25, 25, 24, 24, 25, 26, 26, 27, 27, 26, 23, 20, //91904
12, 9, 7, 5, 3, 1, 1, -1, -1, 0, 1, -1, -5, -8, -10, -12, //91920
-12, -10, -10, -11, -11, -11, -12, -13, -14, -15, -16, -17, -16, -14, -13, -15, //91936
-19, -21, -22, -21, -20, -20, -18, -14, -11, -10, -9, -9, -10, -13, -14, -13, //91952
-11, -9, -7, -4, -1, 3, 3, 4, 4, 4, 4, 5, 8, 10, 11, 11, //91968
12, 12, 12, 13, 14, 15, 15, 14, 13, 13, 12, 11, 10, 8, 6, 6, //91984
7, 9, 13, 16, 16, 15, 15, 16, 16, 16, 17, 18, 18, 17, 17, 15, //92000
13, 11, 9, 8, 6, 6, 2, 2, 3, 4, 5, 6, 6, 7, 8, 8, //92016
9, 10, 12, 11, 8, 7, 4, 1, -1, -2, -3, -3, 0, 0, 0, -1, //92032
-2, -3, -7, -10, -11, -12, -12, -12, -10, -9, -9, -10, -11, -15, -18, -19, //92048
-19, -19, -19, -19, -19, -20, -22, -24, -25, -26, -26, -24, -23, -21, -23, -26, //92064
-28, -30, -31, -32, -33, -34, -34, -32, -31, -29, -27, -26, -28, -30, -30, -28, //92080
-28, -29, -28, -26, -25, -22, -20, -17, -15, -13, -11, -8, -6, -4, -1, -1, //92096
0, -1, -2, -3, -5, -4, 1, 4, 6, 8, 11, 11, 10, 10, 11, 12, //92112
12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 17, 18, 18, 17, 16, 15, //92128
15, 15, 13, 13, 13, 14, 15, 15, 16, 16, 16, 16, 16, 15, 15, 15, //92144
14, 12, 12, 13, 13, 12, 9, 9, 9, 5, 3, 0, -3, -5, -6, -5, //92160
-6, -7, -8, -9, -11, -12, -12, -11, -12, -11, -10, -10, -11, -14, -17, -21, //92176
-22, -22, -21, -22, -22, -21, -21, -22, -23, -26, -29, -30, -30, -30, -28, -26, //92192
-26, -25, -24, -22, -21, -19, -15, -13, -10, -7, -5, -3, -3, -5, -7, -7, //92208
-6, -5, -5, -3, -1, 1, 3, 2, 2, 1, -1, -4, -3, -2, -4, -8, //92224
-9, -10, -11, -12, -15, -19, -19, -19, -19, -18, -14, -12, -14, -13, -13, -12, //92240
-12, -14, -16, -14, -13, -11, -11, -10, -8, -8, -10, -10, -8, -6, -5, -3, //92256
-1, 0, 0, -2, -4, -4, -4, -3, 1, 6, 11, 12, 12, 12, 10, 8, //92272
9, 9, 7, 7, 9, 9, 7, 3, 4, 4, 2, 0, 2, 5, 5, 4, //92288
4, 3, 1, -1, -5, -7, -4, -4, -5, -5, -3, -1, -3, -3, -3, -4, //92304
-5, -3, -2, -2, 2, 7, 8, 9, 9, 7, 3, 0, 0, 0, 1, 1, //92320
1, 2, 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, 0, -3, -3, -4, //92336
-6, -8, -7, -8, -10, -11, -10, -8, -7, -3, -2, -3, -3, -3, -3, -4, //92352
-5, -7, -7, -5, -4, -1, 1, 4, 6, 8, 12, 15, 16, 15, 15, 15, //92368
16, 18, 18, 17, 18, 17, 18, 20, 20, 18, 17, 17, 18, 18, 18, 19, //92384
22, 24, 25, 26, 27, 25, 21, 21, 20, 19, 19, 18, 19, 18, 18, 20, //92400
23, 22, 19, 17, 14, 11, 8, 2, -1, -3, -6, -7, -9, -11, -12, -11, //92416
-12, -12, -11, -12, -13, -14, -14, -13, -13, -13, -13, -12, -12, -12, -11, -11, //92432
-11, -12, -12, -11, -10, -10, -12, -12, -12, -9, -7, -8, -10, -10, -10, -10, //92448
-10, -9, -7, -7, -7, -5, -2, 1, 4, 6, 9, 11, 12, 13, 14, 15, //92464
14, 13, 13, 13, 13, 14, 13, 13, 14, 15, 15, 15, 17, 17, 16, 16, //92480
15, 14, 13, 10, 8, 6, 6, 9, 11, 13, 16, 19, 23, 23, 23, 24, //92496
24, 22, 25, 29, 32, 33, 34, 35, 35, 35, 35, 34, 33, 31, 30, 30, //92512
32, 33, 32, 32, 32, 30, 30, 29, 28, 26, 24, 22, 19, 17, 12, 8, //92528
4, 0, -2, -2, 0, 2, 3, 2, 2, 2, 1, 0, -3, -5, -7, -10, //92544
-11, -11, -11, -13, -16, -16, -15, -15, -15, -13, -13, -13, -15, -16, -17, -18, //92560
-19, -19, -19, -17, -15, -13, -11, -11, -10, -9, -9, -9, -9, -8, -5, -3, //92576
-3, -1, -1, -2, -4, -6, -9, -11, -13, -14, -13, -11, -8, -7, -6, -5, //92592
-6, -8, -9, -10, -10, -10, -9, -9, -8, -7, -6, -5, -4, -3, -1, 1, //92608
2, 4, 7, 9, 9, 7, 7, 7, 8, 8, 8, 10, 11, 11, 11, 12, //92624
12, 10, 7, 4, 3, 3, 2, 2, 2, 2, 0, -1, 0, 0, -1, -2, //92640
-2, -1, 0, 1, 2, 0, -2, -3, -3, -3, -3, -2, 0, 0, 0, 0, //92656
-1, -3, -7, -12, -15, -17, -19, -21, -21, -19, -19, -18, -18, -19, -21, -23, //92672
-26, -30, -32, -35, -39, -41, -44, -42, -40, -37, -34, -30, -25, -21, -17, -15, //92688
-13, -13, -15, -16, -16, -16, -14, -15, -16, -17, -18, -19, -21, -24, -25, -26, //92704
-27, -25, -21, -16, -15, -16, -16, -17, -19, -21, -22, -22, -22, -21, -18, -15, //92720
-13, -12, -12, -13, -13, -13, -13, -13, -11, -9, -8, -8, -8, -9, -9, -9, //92736
-9, -10, -10, -8, -6, -6, -5, -5, -5, -6, -8, -6, -4, -3, -1, 2, //92752
5, 8, 9, 10, 12, 13, 14, 15, 16, 17, 17, 14, 13, 12, 11, 9, //92768
9, 7, 8, 10, 11, 12, 12, 11, 11, 11, 11, 11, 10, 10, 9, 9, //92784
10, 10, 9, 6, 3, 2, 1, 0, 1, 2, 2, 2, 2, 4, 5, 5, //92800
5, 6, 7, 11, 14, 15, 15, 14, 11, 9, 9, 10, 11, 13, 15, 16, //92816
18, 19, 19, 18, 13, 11, 7, 4, 3, 2, 2, 1, -1, -2, -4, -5, //92832
-5, -6, -6, -4, -3, -4, -4, -5, -6, -7, -9, -9, -10, -11, -11, -9, //92848
-6, -5, -5, -6, -7, -8, -11, -12, -13, -14, -14, -12, -12, -13, -15, -16, //92864
-18, -20, -19, -15, -10, -4, -2, 2, 6, 6, 3, 2, 0, -2, -2, -1, //92880
2, 5, 9, 12, 14, 16, 19, 21, 24, 27, 28, 29, 30, 30, 30, 29, //92896
30, 30, 28, 28, 28, 29, 31, 33, 34, 33, 32, 32, 33, 33, 32, 33, //92912
34, 34, 32, 31, 27, 23, 21, 18, 14, 15, 17, 18, 19, 20, 20, 16, //92928
13, 10, 8, 5, 1, -1, 1, 1, 0, 0, -4, -8, -10, -11, -14, -16, //92944
-18, -17, -15, -15, -16, -16, -17, -18, -20, -21, -21, -21, -22, -21, -18, -17, //92960
-20, -21, -24, -27, -27, -25, -26, -22, -17, -16, -16, -15, -16, -18, -20, -21, //92976
-21, -18, -12, -9, -6, -6, -7, -8, -7, -6, -5, -3, -3, -2, 0, 1, //92992
1, 0, 0, 0, 0, -1, -1, 1, 4, 7, 8, 9, 13, 15, 12, 9, //93008
9, 10, 10, 11, 12, 13, 12, 11, 10, 10, 12, 11, 12, 13, 14, 16, //93024
19, 22, 23, 22, 22, 22, 21, 19, 20, 23, 23, 22, 21, 20, 17, 14, //93040
13, 13, 14, 14, 13, 13, 11, 10, 9, 6, 6, 7, 6, 5, 6, 6, //93056
5, 2, 3, 2, 1, -2, -4, -5, -4, -4, -4, -4, -6, -5, -6, -6, //93072
-6, -8, -10, -10, -9, -8, -8, -9, -15, -20, -23, -24, -28, -32, -32, -32, //93088
-30, -27, -23, -20, -19, -18, -18, -18, -17, -12, -11, -11, -11, -9, -8, -9, //93104
-10, -12, -13, -14, -9, -7, -6, -4, -3, -4, -4, -5, -7, -9, -9, -10, //93120
-10, -10, -11, -11, -8, -5, -6, -5, -2, -1, 0, 3, 6, 9, 9, 10, //93136
14, 16, 18, 20, 21, 22, 25, 25, 25, 23, 19, 17, 15, 15, 14, 13, //93152
14, 12, 11, 13, 14, 14, 14, 10, 7, 5, 4, 3, 2, 3, 5, 6, //93168
7, 8, 6, 4, 2, 0, 1, 4, 9, 8, 4, 1, 0, -1, -3, -3, //93184
-5, -6, -6, -6, -7, -8, -8, -9, -10, -10, -8, -7, -7, -7, -9, -9, //93200
-9, -10, -9, -9, -9, -7, -6, -6, -5, -5, -9, -10, -11, -14, -17, -18, //93216
-17, -18, -18, -17, -17, -19, -19, -22, -26, -26, -27, -28, -28, -26, -21, -16, //93232
-15, -14, -12, -10, -11, -13, -10, -10, -12, -14, -13, -13, -17, -18, -18, -17, //93248
-15, -13, -13, -11, -11, -14, -16, -16, -16, -17, -17, -15, -13, -13, -12, -11, //93264
-9, -10, -10, -9, -9, -9, -7, -3, 4, 7, 9, 9, 8, 8, 11, 8, //93280
5, 8, 12, 8, 8, 10, 10, 5, 1, 1, -2, -3, 0, 4, 9, 12, //93296
14, 15, 16, 17, 16, 16, 19, 22, 19, 15, 16, 16, 15, 12, 12, 15, //93312
7, 4, 7, 7, 5, 4, 5, 8, 8, 5, 4, 4, 4, 5, 6, 8, //93328
11, 10, 4, 1, 1, 0, -1, 0, 2, 2, 0, -3, -4, -3, -4, -5, //93344
-7, -9, -8, -6, -7, -9, -5, -3, -7, -7, -4, -2, -2, -1, 2, 4, //93360
4, 4, 1, 0, -1, -5, -7, -4, -2, 1, 2, 2, 5, 4, 2, 3, //93376
3, -1, -4, -1, 2, 2, 1, 2, 3, -3, -5, -3, 1, 2, -1, 2, //93392
6, 6, 1, -1, 2, 0, -2, -1, 0, 1, 2, 1, 0, 3, 5, 4, //93408
1, 0, 0, -1, -4, -4, 0, 0, -2, -5, -5, -7, -11, -16, -15, -10, //93424
-7, -6, -3, 0, -1, -2, -2, 0, 2, 3, 4, 5, 6, 6, 5, 2, //93440
1, 0, -4, -2, 3, 5, 6, 9, 9, 7, 2, -3, -2, 1, 0, 0, //93456
3, 7, 6, -3, -4, -2, -3, -7, -10, -9, -10, -13, -16, -16, -13, -14, //93472
-17, -16, -14, -13, -14, -13, -11, -7, -4, -6, -6, -6, -8, -10, -11, -10, //93488
-11, -12, -9, -7, -13, -16, -17, -16, -14, -15, -7, 2, 6, 5, 5, 8, //93504
10, 6, 1, -1, -2, 0, 2, 3, 7, 12, 11, 9, 12, 18, 19, 16, //93520
18, 27, 28, 26, 25, 26, 22, 20, 20, 20, 20, 19, 16, 18, 22, 25, //93536
22, 20, 19, 17, 14, 15, 19, 21, 21, 22, 23, 19, 13, 11, 12, 11, //93552
9, 11, 16, 17, 17, 16, 14, 13, 10, 7, 6, 9, 13, 12, 11, 14, //93568
14, 13, 10, 8, 9, 8, 5, 7, 13, 14, 12, 12, 12, 11, 8, 3, //93584
0, -2, -2, 1, 1, -1, -1, -2, -3, -5, -6, -6, -8, -10, -12, -14, //93600
-20, -22, -23, -24, -27, -30, -29, -26, -26, -26, -23, -19, -22, -27, -27, -28, //93616
-32, -33, -32, -32, -31, -28, -26, -23, -24, -27, -28, -28, -28, -29, -29, -25, //93632
-20, -17, -16, -17, -16, -17, -20, -21, -19, -18, -18, -17, -14, -11, -11, -11, //93648
-10, -7, -4, -1, 1, 4, 7, 7, 7, 8, 7, 4, 1, 1, 2, 3, //93664
5, 7, 7, 7, 3, 1, 0, 1, 2, 3, 6, 7, 7, 6, 5, 0, //93680
-1, -1, -1, 0, 3, 7, 9, 10, 10, 8, 6, 2, 1, 2, -1, -5, //93696
-6, -4, -4, -6, -7, -9, -14, -14, -14, -13, -13, -10, -9, -8, -6, -8, //93712
-11, -15, -17, -19, -21, -19, -17, -19, -21, -21, -20, -22, -20, -17, -14, -13, //93728
-13, -12, -11, -13, -16, -20, -21, -22, -26, -27, -27, -24, -20, -20, -19, -18, //93744
-18, -19, -22, -22, -23, -23, -20, -19, -21, -16, -14, -16, -17, -17, -17, -16, //93760
-14, -11, -10, -7, -3, -3, -4, -5, -7, -7, -7, -7, -5, -1, 1, 4, //93776
5, 5, 6, 6, 4, 1, 2, 6, 6, 4, 5, 2, -2, -3, -2, -2, //93792
2, 3, 4, 5, 5, 5, 8, 7, 5, 5, 6, 8, 9, 10, 11, 11, //93808
10, 6, 8, 10, 12, 15, 18, 23, 25, 24, 22, 22, 17, 14, 13, 12, //93824
10, 11, 17, 20, 22, 23, 25, 26, 22, 23, 23, 22, 23, 24, 23, 22, //93840
21, 19, 20, 19, 16, 16, 18, 18, 16, 14, 16, 17, 16, 10, 7, 5, //93856
2, 1, 1, 1, -2, -2, -1, 0, 1, 2, 3, 2, 2, 4, 3, 6, //93872
8, 7, 6, 4, 1, -4, -7, -7, -8, -9, -8, -3, -2, -2, -1, -1, //93888
-3, -2, 1, 1, 0, -2, -3, -6, -8, -9, -12, -12, -10, -10, -10, -10, //93904
-7, -2, -1, -1, -1, -2, -2, -2, -2, -2, 0, 3, 5, 5, 7, 10, //93920
11, 12, 12, 14, 18, 19, 19, 20, 22, 21, 19, 20, 21, 21, 25, 28, //93936
28, 28, 28, 26, 25, 25, 25, 23, 22, 21, 20, 21, 22, 22, 20, 20, //93952
19, 18, 17, 14, 11, 11, 10, 9, 8, 6, 5, 3, 0, 1, 2, 2, //93968
0, -3, -3, -3, -3, -4, -5, -4, -3, -3, -3, -1, 0, 0, -1, -2, //93984
-1, -4, -9, -13, -16, -17, -21, -22, -23, -24, -24, -22, -17, -15, -14, -12, //94000
-12, -15, -14, -12, -11, -11, -11, -9, -7, -6, -5, -4, -3, -3, -1, 0, //94016
0, 2, 2, 0, 0, 0, -1, -2, -5, -6, -7, -8, -8, -6, -5, -3, //94032
-1, -1, 0, 6, 8, 7, 4, 3, 1, -3, -4, -3, 1, 4, 4, 7, //94048
8, 9, 10, 12, 13, 12, 12, 11, 12, 12, 14, 16, 15, 14, 14, 14, //94064
17, 22, 23, 22, 24, 27, 28, 31, 32, 32, 30, 27, 26, 26, 27, 27, //94080
25, 22, 20, 18, 14, 10, 11, 9, 7, 8, 9, 9, 11, 9, 8, 8, //94096
6, 3, 2, 1, 0, 0, 0, -1, 1, 2, 1, 0, 0, -2, -5, -5, //94112
-5, -6, -8, -6, -6, -7, -8, -9, -10, -10, -10, -9, -7, -7, -6, -8, //94128
-10, -10, -9, -10, -8, -6, -5, -1, 1, 2, 3, 3, 1, 1, 3, 3, //94144
3, 2, 3, 2, -2, -4, -5, -6, -7, -9, -9, -9, -10, -10, -10, -7, //94160
-8, -10, -11, -13, -15, -14, -12, -8, -5, -5, -4, -4, -4, -5, -8, -7, //94176
-5, -5, -4, -1, -1, -3, -3, -1, 1, 1, 2, 4, 3, 3, 3, 4, //94192
4, 3, 0, -2, -2, -3, -3, -3, -3, -1, -1, -1, 1, 1, -1, -5, //94208
-7, -6, -7, -10, -11, -12, -13, -14, -16, -18, -19, -21, -22, -22, -18, -16, //94224
-17, -17, -16, -15, -17, -17, -17, -18, -19, -19, -18, -17, -16, -16, -16, -12, //94240
-10, -10, -10, -11, -12, -14, -16, -17, -18, -20, -19, -19, -20, -20, -17, -14, //94256
-12, -11, -8, -5, -5, -6, -6, -5, -5, -5, -3, -4, -6, -8, -10, -11, //94272
-13, -16, -16, -15, -14, -14, -16, -18, -19, -21, -24, -27, -29, -29, -29, -29, //94288
-26, -24, -20, -17, -17, -15, -13, -11, -9, -9, -9, -8, -8, -8, -7, -6, //94304
-6, -7, -6, -4, -4, -3, 0, 2, 2, 1, 1, 1, 0, 0, 0, -1, //94320
0, 0, 1, 4, 8, 9, 10, 10, 11, 12, 14, 16, 18, 18, 18, 13, //94336
11, 11, 11, 10, 11, 11, 13, 14, 15, 15, 15, 14, 12, 8, 7, 7, //94352
6, 8, 9, 10, 11, 11, 8, 7, 6, 7, 9, 10, 13, 14, 14, 14, //94368
14, 15, 15, 14, 12, 12, 13, 14, 17, 20, 22, 23, 23, 22, 20, 17, //94384
17, 15, 16, 15, 12, 12, 10, 7, 5, 3, 0, -2, -5, -9, -8, -7, //94400
-6, -4, -4, -5, -8, -8, -8, -9, -10, -9, -8, -10, -13, -14, -16, -18, //94416
-18, -19, -20, -19, -14, -12, -11, -10, -10, -12, -12, -12, -13, -14, -15, -15, //94432
-17, -18, -15, -12, -9, -5, -1, 4, 7, 10, 16, 18, 20, 20, 20, 18, //94448
15, 14, 14, 15, 19, 22, 25, 28, 29, 29, 27, 28, 27, 28, 28, 29, //94464
29, 29, 29, 28, 28, 26, 23, 19, 17, 14, 15, 17, 21, 22, 23, 23, //94480
23, 22, 20, 18, 18, 17, 13, 9, 7, 5, 1, -2, -3, -3, -5, -6, //94496
-5, -5, -5, -5, -4, -4, -5, -6, -8, -12, -12, -14, -16, -15, -13, -15, //94512
-17, -19, -20, -22, -25, -27, -28, -28, -28, -27, -27, -28, -28, -25, -23, -24, //94528
-23, -21, -20, -20, -20, -17, -16, -17, -17, -16, -15, -14, -15, -16, -14, -11, //94544
-11, -10, -9, -8, -8, -6, 0, 2, 4, 5, 6, 7, 7, 6, 7, 10, //94560
13, 13, 13, 14, 13, 13, 12, 10, 10, 11, 12, 13, 13, 13, 13, 13, //94576
14, 13, 10, 11, 11, 8, 8, 9, 8, 6, 6, 6, 6, 6, 5, 5, //94592
8, 11, 12, 15, 16, 17, 19, 20, 20, 18, 18, 18, 19, 19, 18, 18, //94608
20, 22, 22, 22, 20, 18, 17, 16, 16, 17, 17, 15, 13, 13, 11, 9, //94624
7, 6, 6, 5, 4, 3, 3, 3, 4, 4, 3, 1, 1, 2, 2, 1, //94640
1, 0, -2, -2, -2, -5, -9, -11, -12, -12, -11, -12, -13, -13, -14, -15, //94656
-16, -17, -20, -22, -23, -24, -25, -25, -26, -26, -26, -25, -23, -21, -18, -15, //94672
-14, -12, -9, -7, -5, -4, -3, -3, -6, -9, -11, -12, -15, -15, -14, -12, //94688
-9, -9, -9, -6, -7, -8, -10, -10, -10, -12, -11, -10, -9, -7, -6, -4, //94704
-1, 0, 2, 5, 8, 10, 11, 12, 12, 12, 12, 13, 13, 14, 14, 15, //94720
15, 15, 16, 16, 17, 18, 18, 17, 15, 15, 13, 13, 14, 15, 15, 13, //94736
12, 11, 11, 11, 12, 13, 13, 12, 11, 11, 10, 11, 11, 12, 12, 12, //94752
13, 13, 12, 11, 10, 9, 7, 3, 2, 0, -4, -7, -9, -11, -13, -17, //94768
-20, -22, -25, -25, -24, -22, -21, -18, -14, -12, -13, -14, -15, -16, -19, -21, //94784
-22, -21, -19, -18, -18, -18, -17, -16, -17, -18, -19, -20, -22, -22, -22, -22, //94800
-24, -27, -29, -32, -35, -36, -35, -33, -30, -28, -22, -19, -19, -20, -21, -21, //94816
-21, -20, -19, -18, -18, -18, -17, -18, -18, -18, -16, -17, -17, -17, -17, -15, //94832
-13, -12, -10, -8, -8, -8, -7, -5, -3, -2, -2, -4, -6, -7, -8, -7, //94848
-7, -3, -1, 1, 2, 2, 0, 0, 1, 1, 2, 4, 7, 7, 6, 7, //94864
8, 10, 10, 10, 10, 10, 7, 3, 2, 3, 2, 1, 1, 1, 1, 2, //94880
3, 4, 3, 0, -1, 0, 3, 5, 5, 9, 11, 11, 10, 8, 7, 8, //94896
9, 9, 9, 8, 8, 8, 9, 10, 11, 13, 17, 17, 16, 14, 13, 13, //94912
9, 7, 5, 1, -3, -5, -5, -4, -1, 0, -1, -2, -1, -3, -3, -1, //94928
2, 1, 2, 5, 5, 3, 1, -1, -1, -2, -3, -3, -3, -3, -5, -6, //94944
-7, -7, -7, -7, -7, -7, -6, -4, -4, -2, -1, -2, -4, -4, -4, -5, //94960
-5, -4, -3, -2, 0, 3, 5, 7, 5, 6, 8, 10, 11, 12, 15, 14, //94976
14, 15, 16, 20, 21, 20, 17, 17, 18, 16, 14, 13, 12, 12, 10, 8, //94992
6, 5, 5, 5, 6, 7, 5, 1, -1, -3, -5, -4, -2, 1, 3, 5, //95008
7, 8, 9, 9, 6, 3, 1, 2, 3, 4, 5, 6, 7, 6, 6, 6, //95024
6, 8, 10, 11, 12, 12, 12, 10, 8, 5, 5, 5, 4, 4, 2, 0, //95040
-1, -1, -1, -2, -2, -3, -4, -5, -4, -4, -4, -4, -3, -6, -7, -6, //95056
-7, -8, -9, -9, -9, -9, -6, -7, -11, -13, -15, -17, -20, -22, -23, -24, //95072
-24, -20, -17, -17, -16, -14, -13, -11, -9, -7, -6, -6, -5, -5, -5, -4, //95088
-4, -4, -4, -2, -1, -2, 0, 0, 0, 0, 4, 6, 7, 8, 10, 15, //95104
18, 19, 19, 18, 18, 19, 17, 16, 17, 17, 17, 17, 18, 18, 15, 13, //95120
14, 13, 12, 13, 15, 17, 21, 23, 24, 25, 25, 23, 19, 18, 18, 17, //95136
16, 16, 17, 19, 20, 21, 21, 21, 21, 20, 18, 18, 18, 19, 18, 18, //95152
17, 15, 14, 12, 12, 12, 11, 12, 13, 16, 18, 18, 18, 18, 18, 17, //95168
15, 13, 11, 10, 11, 11, 12, 12, 9, 3, -2, -4, -5, -7, -9, -13, //95184
-16, -18, -20, -20, -20, -19, -18, -17, -16, -16, -18, -19, -21, -21, -20, -20, //95200
-19, -19, -19, -19, -18, -17, -18, -17, -17, -17, -16, -16, -14, -14, -14, -14, //95216
-15, -17, -18, -17, -17, -16, -13, -8, -8, -7, -6, -6, -6, -6, -6, -6, //95232
-5, -3, 1, 5, 7, 10, 12, 13, 16, 16, 15, 13, 12, 12, 12, 14, //95248
16, 17, 18, 17, 15, 12, 11, 11, 6, 5, 6, 6, 5, 5, 6, 7, //95264
6, 7, 8, 9, 10, 11, 11, 11, 12, 14, 12, 10, 9, 7, 2, 0, //95280
1, 1, -1, -4, -5, -8, -8, -9, -10, -11, -11, -11, -12, -13, -14, -15, //95296
-19, -20, -21, -22, -23, -24, -24, -26, -27, -25, -25, -26, -26, -25, -24, -24, //95312
-22, -22, -22, -22, -22, -22, -22, -20, -20, -21, -21, -21, -22, -23, -22, -21, //95328
-19, -17, -16, -16, -15, -14, -14, -15, -16, -16, -16, -17, -17, -16, -15, -15, //95344
-15, -14, -12, -9, -7, -6, -5, -3, -2, 3, 6, 8, 9, 12, 13, 12, //95360
10, 5, 0, -5, -9, -9, -8, -6, -4, -3, -1, -1, 0, 0, 1, 0, //95376
-3, -4, -3, -2, -1, -3, -2, -2, -3, -5, -5, -4, -3, -3, -2, -2, //95392
2, 3, 3, 4, 6, 6, 7, 8, 10, 13, 14, 16, 20, 23, 24, 24, //95408
22, 20, 18, 17, 17, 17, 17, 15, 16, 18, 20, 23, 25, 26, 27, 27, //95424
25, 23, 21, 17, 14, 13, 13, 11, 9, 9, 9, 10, 12, 11, 11, 10, //95440
10, 9, 7, 6, 4, 2, -1, -2, -3, -8, -9, -8, -8, -8, -8, -8, //95456
-7, -6, -5, -5, -7, -9, -11, -13, -14, -14, -12, -13, -14, -15, -17, -16, //95472
-13, -11, -10, -9, -7, -6, -6, -5, -6, -7, -7, -10, -10, -9, -9, -10, //95488
-12, -12, -10, -9, -8, -4, 2, 2, 2, 3, 4, 6, 5, 5, 4, 3, //95504
3, 5, 6, 7, 7, 7, 8, 12, 16, 19, 20, 21, 21, 18, 18, 18, //95520
18, 17, 14, 14, 15, 16, 17, 18, 21, 20, 20, 21, 22, 25, 29, 29, //95536
28, 28, 26, 19, 16, 15, 12, 10, 11, 13, 12, 11, 9, 7, 4, 3, //95552
1, -1, -2, -5, -11, -14, -16, -16, -16, -17, -19, -22, -25, -26, -26, -25, //95568
-26, -28, -28, -29, -29, -29, -29, -30, -32, -31, -29, -30, -30, -31, -31, -31, //95584
-28, -25, -23, -22, -23, -23, -22, -20, -18, -17, -18, -18, -18, -18, -18, -15, //95600
-13, -12, -11, -10, -9, -7, -5, -2, -1, 0, 3, 6, 7, 5, 2, -4, //95616
-9, -13, -13, -14, -14, -13, -13, -11, -7, -4, -2, -1, -1, -2, -4, -3, //95632
-3, -4, -5, -3, -1, 0, 3, 6, 8, 7, 6, 6, 6, 5, 3, 3, //95648
3, 2, 2, 5, 9, 10, 12, 12, 13, 16, 18, 19, 22, 22, 22, 20, //95664
22, 25, 25, 23, 21, 20, 19, 18, 18, 18, 15, 13, 13, 12, 10, 8, //95680
8, 4, 3, 3, 4, 6, 6, 5, 3, 2, 2, 2, -1, -2, -3, -4, //95696
-6, -4, -2, 0, 2, 4, 4, 2, 3, 4, 4, 4, 1, -2, -3, -3, //95712
-4, -7, -7, -7, -9, -10, -10, -10, -8, -6, -5, -5, -6, -7, -6, -6, //95728
-5, -5, -5, -5, -5, -4, -5, -5, -5, -7, -7, -6, -5, -4, -2, 0, //95744
0, 0, 2, 1, -2, -3, -3, -3, -2, 0, 3, 5, 7, 10, 11, 12, //95760
15, 15, 15, 16, 16, 15, 16, 17, 17, 18, 18, 19, 21, 23, 25, 27, //95776
28, 29, 28, 28, 28, 26, 22, 21, 21, 20, 19, 19, 18, 17, 16, 15, //95792
15, 13, 10, 9, 9, 6, 4, 5, 3, 2, 2, 2, 1, 1, 1, 0, //95808
-2, -5, -8, -12, -13, -13, -13, -13, -13, -13, -12, -11, -11, -10, -10, -12, //95824
-14, -14, -13, -14, -17, -19, -21, -23, -23, -20, -19, -18, -17, -15, -14, -11, //95840
-10, -9, -10, -13, -16, -16, -17, -18, -19, -20, -21, -22, -22, -19, -16, -13, //95856
-10, -9, -7, -6, -6, -6, -8, -10, -12, -14, -14, -15, -16, -17, -18, -19, //95872
-18, -14, -12, -10, -10, -12, -14, -15, -16, -17, -18, -19, -22, -26, -28, -28, //95888
-26, -24, -21, -19, -17, -17, -15, -14, -15, -16, -15, -15, -15, -14, -15, -16, //95904
-16, -14, -13, -10, -9, -8, -8, -11, -12, -10, -9, -9, -9, -9, -9, -10, //95920
-9, -6, -6, -4, 1, 2, 3, 6, 9, 9, 8, 8, 9, 9, 7, 7, //95936
7, 7, 7, 7, 9, 11, 11, 11, 11, 9, 7, 10, 11, 12, 14, 14, //95952
10, 6, 6, 6, 6, 7, 6, 5, 6, 7, 9, 13, 15, 17, 17, 18, //95968
18, 17, 17, 17, 18, 18, 18, 18, 17, 12, 7, 5, 3, 2, 1, 0, //95984
-1, -4, -6, -4, -3, -2, -1, -5, -8, -9, -7, -7, -9, -7, -6, -7, //96000
-9, -8, -4, -1, 1, 3, 5, 5, 6, 6, 4, 2, 2, 1, -5, -8, //96016
-7, -7, -10, -10, -8, -8, -8, -8, -9, -10, -10, -10, -9, -8, -5, -2, //96032
-2, -1, 3, 9, 14, 18, 21, 23, 24, 25, 26, 28, 30, 30, 29, 30, //96048
31, 31, 31, 31, 31, 30, 29, 29, 27, 25, 24, 25, 25, 26, 28, 30, //96064
30, 29, 28, 27, 27, 26, 24, 21, 20, 20, 21, 22, 22, 21, 19, 16, //96080
15, 15, 13, 12, 11, 9, 7, 5, 4, 1, 0, -1, -5, -8, -10, -12, //96096
-14, -16, -17, -18, -19, -20, -21, -22, -23, -24, -25, -27, -27, -27, -28, -30, //96112
-31, -32, -33, -36, -38, -38, -40, -43, -44, -43, -41, -38, -36, -35, -35, -33, //96128
-33, -33, -29, -27, -26, -29, -28, -25, -25, -22, -19, -18, -17, -17, -17, -16, //96144
-11, -8, -9, -9, -8, -5, 0, 1, 3, 5, 6, 9, 11, 13, 13, 12, //96160
10, 9, 10, 11, 11, 11, 12, 14, 15, 16, 16, 16, 16, 15, 13, 12, //96176
12, 10, 9, 8, 8, 9, 8, 8, 7, 5, 5, 4, 3, 2, 4, 6, //96192
6, 7, 10, 13, 17, 22, 23, 24, 25, 24, 23, 24, 24, 23, 20, 20, //96208
20, 20, 20, 19, 16, 15, 14, 12, 11, 11, 13, 13, 12, 11, 12, 13, //96224
13, 12, 11, 8, 4, 3, 3, 1, 0, 0, 0, 1, 3, 3, 3, 3, //96240
0, -3, -6, -9, -10, -13, -17, -19, -21, -23, -23, -24, -25, -26, -26, -26, //96256
-25, -22, -21, -21, -20, -19, -19, -16, -15, -14, -15, -15, -16, -16, -14, -12, //96272
-11, -10, -8, -7, -5, -1, -1, -3, 0, -1, -3, -4, -4, -6, -8, -8, //96288
-9, -11, -11, -9, -8, -6, -1, 2, 4, 7, 8, 9, 10, 10, 8, 7, //96304
5, 4, 5, 7, 10, 12, 14, 16, 18, 19, 20, 19, 17, 17, 16, 16, //96320
14, 11, 12, 12, 12, 15, 17, 17, 15, 13, 14, 13, 11, 11, 11, 8, //96336
7, 9, 9, 10, 11, 13, 15, 18, 19, 19, 19, 18, 13, 10, 8, 7, //96352
4, -1, -2, -3, -4, -5, -5, -5, -6, -6, -6, -5, -5, -8, -9, -10, //96368
-11, -13, -14, -16, -18, -18, -17, -17, -15, -13, -13, -12, -10, -8, -6, -6, //96384
-8, -11, -15, -18, -21, -23, -25, -26, -26, -23, -21, -20, -19, -17, -16, -15, //96400
-13, -13, -14, -15, -17, -19, -21, -22, -22, -22, -23, -23, -22, -21, -21, -19, //96416
-16, -15, -14, -15, -16, -18, -19, -22, -24, -24, -24, -22, -20, -20, -18, -16, //96432
-15, -13, -11, -10, -11, -11, -10, -11, -11, -11, -11, -10, -7, -5, -3, -2, //96448
-1, -1, -2, -3, -2, -2, -2, -2, -2, -3, -4, -5, -5, -4, -4, -5, //96464
-5, -3, 0, 3, 6, 8, 8, 8, 8, 9, 9, 8, 7, 4, 0, -1, //96480
0, 2, 3, 4, 5, 4, 4, 7, 10, 9, 8, 8, 7, 7, 9, 13, //96496
14, 14, 14, 15, 16, 18, 20, 21, 22, 23, 23, 21, 20, 20, 20, 18, //96512
16, 16, 17, 17, 17, 13, 10, 8, 5, 2, 2, 2, 1, 0, -1, -2, //96528
-2, -3, -4, -5, -5, -6, -5, -4, -3, -2, 0, 3, 3, 4, 5, 6, //96544
8, 9, 11, 11, 10, 6, 1, -3, -5, -7, -8, -8, -6, -5, -4, -2, //96560
2, 6, 9, 13, 16, 16, 15, 16, 17, 17, 17, 19, 20, 20, 20, 21, //96576
23, 24, 25, 26, 26, 25, 24, 22, 19, 15, 12, 12, 12, 10, 9, 5, //96592
2, 1, 1, 1, 4, 5, 5, 4, 4, 4, 2, -1, -5, -9, -9, -7, //96608
-5, -6, -8, -9, -9, -6, -2, 1, 2, 2, 2, -1, -1, 1, 2, 2, //96624
1, 1, -1, -2, -3, -3, -3, -3, -2, -1, -1, 2, 6, 7, 6, 5, //96640
4, 2, 0, -1, -2, -2, -3, -5, -4, -5, -7, -7, -7, -8, -9, -11, //96656
-12, -13, -14, -16, -16, -15, -16, -17, -17, -16, -14, -13, -11, -9, -9, -10, //96672
-11, -10, -11, -12, -13, -13, -14, -15, -15, -14, -15, -14, -12, -12, -12, -11, //96688
-10, -9, -8, -5, -4, -3, -2, -2, -2, 1, 5, 6, 8, 10, 11, 13, //96704
15, 16, 16, 16, 17, 17, 17, 18, 19, 19, 20, 22, 23, 22, 21, 21, //96720
20, 16, 14, 11, 9, 8, 6, 6, 4, 3, 3, 4, 4, 6, 8, 8, //96736
9, 10, 9, 10, 12, 12, 12, 10, 11, 11, 10, 9, 7, 4, 1, -1, //96752
-3, -6, -8, -12, -14, -15, -15, -15, -14, -16, -16, -15, -13, -12, -12, -10, //96768
-8, -7, -4, -2, 1, 2, 3, 3, 0, -2, -4, -4, -2, -1, -1, -1, //96784
-3, -6, -8, -8, -9, -13, -16, -18, -20, -21, -21, -20, -20, -20, -19, -19, //96800
-17, -16, -16, -14, -12, -10, -6, -5, -4, -3, -3, -4, -7, -8, -8, -8, //96816
-7, -7, -8, -10, -13, -14, -16, -17, -17, -17, -17, -16, -13, -13, -13, -13, //96832
-13, -11, -9, -6, -2, -1, 1, 1, 2, 4, 4, 1, 1, 3, 5, 6, //96848
7, 8, 8, 6, 6, 8, 9, 10, 11, 14, 16, 19, 20, 21, 21, 21, //96864
20, 18, 17, 15, 13, 13, 16, 20, 21, 24, 26, 26, 24, 24, 25, 25, //96880
26, 28, 28, 27, 27, 26, 24, 23, 22, 20, 18, 15, 13, 10, 7, 4, //96896
2, 0, -3, -6, -8, -10, -13, -14, -13, -13, -13, -12, -11, -9, -8, -7, //96912
-5, -5, -6, -8, -9, -12, -14, -15, -16, -16, -14, -13, -14, -14, -12, -11, //96928
-10, -10, -9, -8, -7, -5, -5, -7, -11, -13, -14, -15, -16, -15, -13, -12, //96944
-12, -12, -10, -7, -6, -5, -5, -6, -8, -13, -16, -18, -20, -20, -20, -20, //96960
-19, -18, -17, -14, -9, -7, -5, -4, -4, -4, -7, -7, -7, -10, -12, -10, //96976
-9, -8, -9, -9, -9, -12, -13, -12, -10, -8, -6, -4, -3, -2, -2, -4, //96992
-4, -2, -1, 0, 1, 2, 2, 2, 3, 4, 6, 7, 6, 6, 5, 3, //97008
3, 4, 5, 5, 6, 9, 9, 12, 12, 13, 15, 16, 18, 18, 21, 22, //97024
22, 21, 18, 17, 17, 17, 18, 19, 19, 18, 17, 16, 16, 17, 18, 18, //97040
16, 14, 14, 11, 9, 7, 2, -2, -5, -8, -11, -12, -11, -11, -11, -10, //97056
-8, -7, -8, -9, -10, -10, -10, -10, -11, -11, -10, -9, -10, -10, -9, -5, //97072
-3, -1, 2, 4, 6, 6, 4, 1, 0, -1, -4, -8, -10, -14, -16, -19, //97088
-23, -23, -22, -21, -19, -17, -17, -16, -17, -18, -18, -16, -18, -21, -22, -22, //97104
-21, -18, -15, -15, -17, -17, -15, -15, -13, -11, -10, -12, -15, -14, -15, -15, //97120
-14, -13, -12, -10, -9, -8, -6, -6, -6, -6, -5, -2, 1, 2, 2, 5, //97136
9, 8, 8, 12, 15, 15, 15, 15, 16, 18, 20, 21, 22, 23, 23, 21, //97152
19, 17, 15, 13, 12, 11, 9, 6, 5, 3, 4, 5, 6, 7, 7, 5, //97168
5, 5, 4, 3, 3, 2, 0, -2, -3, -2, -2, -3, -4, -4, -4, -5, //97184
-6, -6, -6, -7, -8, -10, -11, -11, -12, -13, -14, -14, -16, -18, -18, -18, //97200
-19, -19, -18, -18, -17, -15, -13, -12, -11, -10, -9, -8, -8, -7, -7, -7, //97216
-4, -4, -6, -7, -7, -8, -9, -6, -3, 0, 1, 0, 0, 0, -1, 0, //97232
2, 2, 3, 3, 3, 4, 4, 4, 4, 6, 4, 1, 2, 3, 4, 5, //97248
6, 6, 7, 7, 7, 10, 12, 14, 15, 17, 22, 25, 27, 28, 31, 34, //97264
32, 32, 33, 34, 35, 38, 40, 42, 42, 40, 39, 36, 36, 38, 39, 38, //97280
37, 34, 32, 31, 32, 30, 27, 25, 23, 21, 20, 18, 14, 11, 7, 4, //97296
5, 5, 3, 2, 1, -2, -4, -7, -9, -11, -16, -19, -18, -15, -13, -11, //97312
-10, -10, -14, -14, -14, -15, -16, -19, -23, -25, -25, -24, -22, -21, -17, -16, //97328
-16, -16, -16, -16, -17, -19, -22, -22, -22, -22, -21, -21, -21, -20, -20, -23, //97344
-24, -24, -25, -25, -24, -23, -22, -21, -21, -21, -21, -22, -23, -23, -22, -21, //97360
-22, -22, -22, -22, -21, -15, -12, -11, -8, -6, -5, -1, 0, 0, 1, 2, //97376
2, 1, 2, 3, 3, 2, -1, -2, -3, -4, -5, -6, -3, -1, 1, 3, //97392
5, 5, 3, 3, 2, 3, 3, 4, 5, 6, 7, 9, 13, 16, 17, 16, //97408
14, 11, 9, 8, 7, 6, 5, 2, -2, -4, -5, -6, -7, -7, -5, -5, //97424
-5, -5, -5, -5, -6, -4, -4, -4, -3, -3, -3, -4, -2, 1, 4, 9, //97440
12, 14, 17, 21, 24, 29, 31, 32, 32, 30, 30, 29, 26, 22, 18, 16, //97456
13, 12, 11, 11, 10, 6, 4, 2, 1, 0, 0, -1, -4, -6, -10, -14, //97472
-19, -22, -23, -25, -27, -28, -28, -27, -26, -24, -22, -21, -21, -21, -21, -21, //97488
-21, -20, -19, -21, -22, -22, -22, -22, -22, -23, -23, -22, -22, -22, -22, -23, //97504
-23, -22, -22, -19, -16, -17, -18, -18, -16, -14, -13, -12, -9, -6, -3, -3, //97520
-2, -2, -3, -4, -5, -5, -4, -3, -1, 0, 2, 3, 4, 6, 8, 11, //97536
12, 12, 13, 14, 16, 18, 19, 20, 20, 20, 21, 22, 23, 26, 30, 31, //97552
33, 32, 31, 30, 28, 27, 27, 26, 25, 23, 23, 20, 18, 14, 11, 9, //97568
9, 10, 10, 10, 11, 14, 16, 17, 18, 18, 17, 15, 13, 13, 14, 14, //97584
15, 17, 20, 20, 21, 23, 24, 27, 28, 27, 24, 22, 22, 18, 15, 13, //97600
12, 10, 7, 3, 0, -2, -4, -4, -3, -1, -1, -2, -1, 0, 1, 1, //97616
0, -1, -1, -2, -7, -11, -13, -14, -14, -10, -8, -6, -3, -2, 0, 0, //97632
1, 1, -3, -8, -13, -21, -26, -29, -29, -29, -26, -26, -26, -25, -23, -20, //97648
-18, -17, -16, -16, -17, -18, -19, -20, -20, -19, -16, -13, -13, -13, -13, -11, //97664
-6, -2, 0, 0, -1, -1, 0, 1, 3, 5, 8, 9, 11, 11, 10, 9, //97680
7, 6, 3, 3, 3, 4, 7, 10, 16, 19, 22, 23, 23, 20, 16, 13, //97696
11, 9, 9, 9, 11, 13, 15, 18, 19, 18, 16, 15, 13, 13, 11, 9, //97712
7, 6, 6, 6, 4, 3, 1, 0, 0, -2, -5, -7, -8, -8, -8, -7, //97728
-7, -8, -9, -9, -9, -9, -10, -11, -12, -13, -14, -17, -19, -20, -21, -22, //97744
-24, -25, -25, -25, -25, -26, -27, -27, -27, -27, -25, -25, -26, -26, -26, -23, //97760
-20, -17, -15, -13, -12, -12, -13, -15, -18, -20, -21, -21, -21, -21, -22, -22, //97776
-19, -15, -9, -6, -5, -4, -5, -6, -8, -8, -7, -6, -7, -8, -10, -11, //97792
-12, -15, -15, -14, -13, -11, -10, -10, -8, -6, -5, -3, 1, 4, 3, 1, //97808
0, 1, 1, 0, 0, 0, 2, 3, 3, 3, 5, 7, 9, 14, 18, 23, //97824
23, 22, 21, 21, 21, 21, 22, 24, 24, 24, 23, 21, 22, 21, 21, 21, //97840
18, 16, 16, 17, 18, 19, 25, 29, 31, 30, 27, 24, 15, 11, 8, 8, //97856
8, 6, 3, 3, 7, 10, 11, 11, 13, 13, 11, 7, 4, 5, 5, 4, //97872
1, -1, -3, -6, -8, -7, -4, -2, -7, -10, -10, -11, -12, -14, -19, -21, //97888
-24, -25, -23, -14, -7, 1, 6, 8, 6, 0, -3, -5, -7, -9, -13, -17, //97904
-21, -22, -20, -18, -11, -7, -3, -1, -3, -7, -9, -7, -1, 3, 4, 1, //97920
0, -2, -6, -6, -3, -2, -6, -12, -16, -17, -17, -17, -14, -6, 2, 5, //97936
5, 8, 11, 10, 7, 4, -2, -7, -12, -15, -16, -13, 0, 8, 16, 25, //97952
30, 31, 29, 26, 21, 13, 5, -4, -3, -1, 4, 7, 9, 11, 11, 12, //97968
15, 18, 16, 16, 15, 12, 12, 16, 21, 24, 25, 25, 22, 19, 10, 7, //97984
8, 8, 5, -3, -8, -11, -13, -16, -17, -12, -6, -1, 1, 4, 8, 14, //98000
17, 19, 21, 23, 16, 5, -6, -11, -15, -21, -26, -22, -17, -15, -13, -9, //98016
-4, 0, 0, -5, -11, -19, -24, -27, -28, -27, -24, -24, -24, -19, -14, -12, //98032
-12, -11, -11, -11, -16, -24, -25, -24, -25, -25, -23, -22, -18, -18, -17, -12, //98048
-7, -5, -5, -4, -3, -1, 2, 5, 4, 2, -2, -8, -18, -27, -27, -26, //98064
-26, -23, -20, -20, -16, -8, -4, 1, 10, 15, 16, 12, 6, 1, -2, -2, //98080
1, 6, 9, 11, 11, 12, 15, 17, 16, 9, 5, 2, 1, 2, 4, 9, //98096
11, 9, 6, 6, 6, 6, 5, 3, 3, 6, 5, 10, 20, 27, 26, 23, //98112
18, 18, 16, 11, 8, 8, 6, 4, 2, 3, 9, 15, 17, 21, 25, 24, //98128
22, 15, 9, 9, 11, 10, 7, 9, 9, 6, 3, 2, 1, -4, -4, -2, //98144
-4, -7, -4, 0, 3, 4, 4, 2, 1, 0, -6, -13, -17, -23, -28, -27, //98160
-21, -17, -15, -11, -8, -4, -2, 0, 7, 6, 1, -3, -9, -14, -12, -12, //98176
-10, -5, -2, -4, -16, -20, -20, -19, -23, -23, -17, -18, -24, -26, -25, -20, //98192
-14, -9, -5, -1, -7, -13, -13, -11, -11, -14, -14, -10, -9, -9, -3, 7, //98208
12, 11, 10, 10, 12, 13, 8, 6, 8, 7, 3, 4, 13, 19, 19, 17, //98224
15, 13, 13, 12, 11, 14, 11, 4, 0, 3, 9, 7, 6, 16, 22, 18, //98240
13, 14, 11, 7, 3, 2, 7, 11, 9, 9, 15, 22, 28, 34, 37, 39, //98256
36, 24, 12, 5, 4, 4, 5, 8, 10, 7, 2, 4, 7, 6, 5, 5, //98272
6, 8, 2, -5, -4, 1, 1, 2, 7, 11, 7, -1, -4, -5, -7, -9, //98288
-8, -7, -8, -10, -13, -12, -10, -6, -3, -1, -2, -5, -8, -12, -16, -21, //98304
-30, -37, -41, -42, -45, -50, -44, -37, -33, -30, -29, -29, -28, -27, -25, -22, //98320
-20, -17, -16, -15, -14, -14, -15, -14, -15, -20, -23, -21, -25, -28, -26, -22, //98336
-18, -11, 1, 12, 21, 24, 23, 16, 10, 6, 6, 6, 8, 8, 8, 11, //98352
13, 13, 14, 18, 18, 18, 18, 15, 9, 11, 13, 13, 15, 21, 30, 32, //98368
33, 35, 35, 31, 24, 27, 31, 34, 38, 42, 43, 43, 45, 46, 47, 47, //98384
43, 39, 38, 35, 31, 30, 33, 38, 37, 33, 34, 34, 33, 35, 37, 31, //98400
24, 23, 19, 16, 16, 20, 29, 31, 32, 31, 21, 7, 6, 6, 8, 17, //98416
25, 21, 18, 16, 13, 13, 13, 9, 6, 4, 0, -5, -2, 4, 8, 11, //98432
10, 4, -5, -5, 0, 2, 1, -1, -8, -12, -13, -14, -13, -11, -13, -16, //98448
-22, -27, -31, -33, -29, -25, -22, -17, -15, -22, -24, -26, -27, -28, -32, -30, //98464
-27, -29, -30, -24, -11, -7, -7, -8, -12, -19, -25, -18, -13, -11, -10, -14, //98480
-17, -18, -19, -24, -31, -35, -42, -50, -56, -60, -58, -55, -50, -44, -37, -29, //98496
-21, -19, -14, -6, -2, -7, -18, -26, -36, -45, -50, -52, -50, -47, -45, -43, //98512
-42, -38, -34, -30, -26, -26, -31, -40, -47, -49, -49, -51, -52, -53, -55, -57, //98528
-59, -63, -66, -69, -72, -70, -69, -69, -67, -68, -71, -70, -66, -56, -46, -36, //98544
-30, -27, -24, -20, -13, -8, -9, -14, -24, -45, -54, -60, -64, -63, -65, -64, //98560
-58, -55, -53, -48, -38, -31, -29, -30, -29, -24, -21, -26, -26, -22, -21, -22, //98576
-20, -19, -21, -22, -25, -25, -23, -18, -9, -4, -1, 9, 14, 20, 21, 18, //98592
16, 16, 17, 17, 19, 21, 22, 28, 37, 45, 51, 53, 44, 37, 33, 29, //98608
25, 32, 38, 40, 43, 48, 52, 61, 65, 66, 64, 63, 65, 65, 63, 70, //98624
74, 71, 68, 65, 63, 63, 62, 62, 68, 69, 70, 70, 69, 71, 75, 81, //98640
84, 87, 90, 86, 83, 81, 75, 67, 64, 66, 64, 62, 67, 76, 85, 85, //98656
86, 88, 87, 85, 80, 81, 82, 77, 69, 61, 56, 50, 46, 52, 58, 56, //98672
57, 58, 63, 69, 71, 69, 68, 62, 55, 50, 44, 35, 33, 34, 35, 38, //98688
48, 52, 53, 54, 51, 47, 42, 35, 28, 21, 15, 10, 2, 0, -2, -5, //98704
-3, 1, 5, 7, 9, 13, 15, 11, 7, 1, -1, -3, -9, -15, -17, -18, //98720
-21, -25, -28, -27, -29, -36, -41, -42, -43, -44, -44, -42, -41, -38, -35, -36, //98736
-33, -29, -28, -36, -48, -56, -64, -72, -75, -75, -72, -67, -61, -57, -55, -54, //98752
-51, -48, -48, -51, -58, -68, -74, -79, -82, -79, -74, -66, -57, -47, -39, -38, //98768
-37, -33, -34, -35, -37, -42, -46, -53, -59, -64, -66, -64, -63, -57, -49, -43, //98784
-36, -38, -38, -33, -30, -26, -25, -30, -33, -39, -45, -47, -47, -45, -45, -44, //98800
-44, -44, -40, -35, -35, -36, -35, -31, -27, -28, -28, -26, -28, -29, -30, -31, //98816
-30, -31, -36, -40, -43, -44, -45, -44, -44, -51, -56, -58, -61, -65, -64, -61, //98832
-60, -59, -61, -63, -57, -48, -39, -33, -28, -21, -23, -28, -30, -30, -34, -36, //98848
-35, -33, -32, -29, -21, -17, -15, -14, -14, -8, -3, -3, 0, 3, 9, 15, //98864
12, 13, 14, 11, 4, -6, -3, -3, -5, 1, 5, 8, 9, 6, 7, 8, //98880
9, 19, 22, 31, 41, 44, 50, 55, 63, 70, 69, 69, 70, 68, 69, 70, //98896
73, 78, 78, 77, 76, 77, 80, 83, 82, 82, 83, 85, 88, 91, 91, 96, //98912
97, 96, 98, 98, 102, 104, 97, 91, 89, 90, 89, 89, 92, 91, 92, 92, //98928
88, 85, 83, 80, 80, 77, 74, 68, 60, 49, 45, 42, 41, 46, 48, 48, //98944
47, 46, 52, 59, 65, 65, 61, 60, 60, 59, 58, 53, 51, 50, 49, 51, //98960
58, 61, 59, 48, 38, 31, 26, 18, 12, 6, 0, -2, 0, 3, 14, 24, //98976
28, 30, 30, 27, 17, 5, -7, -17, -29, -37, -40, -44, -49, -52, -51, -49, //98992
-48, -43, -39, -38, -38, -40, -41, -46, -48, -46, -43, -36, -38, -44, -41, -48, //99008
-55, -57, -58, -53, -54, -56, -57, -54, -44, -47, -47, -45, -52, -59, -69, -76, //99024
-83, -88, -90, -93, -92, -88, -85, -78, -73, -68, -67, -70, -72, -74, -77, -90, //99040
-94, -92, -96, -99, -94, -77, -74, -78, -74, -73, -79, -76, -76, -76, -76, -78, //99056
-77, -80, -79, -71, -66, -65, -60, -54, -53, -54, -50, -51, -54, -48, -47, -51, //99072
-55, -55, -49, -46, -43, -38, -34, -33, -34, -36, -36, -37, -45, -49, -52, -48, //99088
-45, -48, -51, -51, -52, -53, -52, -44, -41, -38, -33, -30, -25, -27, -29, -26, //99104
-24, -18, -8, 1, 7, 16, 25, 28, 21, 26, 28, 28, 31, 32, 26, 21, //99120
14, 6, 3, 7, 14, 16, 15, 13, 15, 19, 19, 21, 26, 30, 33, 41, //99136
40, 37, 39, 38, 34, 30, 30, 32, 28, 28, 35, 40, 50, 56, 59, 65, //99152
70, 77, 79, 79, 84, 83, 82, 81, 77, 77, 78, 77, 79, 82, 86, 87, //99168
87, 86, 86, 87, 88, 93, 102, 112, 113, 110, 105, 101, 92, 91, 91, 91, //99184
91, 91, 89, 85, 84, 85, 88, 91, 87, 86, 84, 80, 77, 76, 74, 70, //99200
67, 66, 67, 74, 75, 74, 71, 63, 60, 64, 64, 63, 62, 61, 53, 50, //99216
48, 45, 46, 50, 50, 50, 48, 47, 49, 50, 53, 55, 54, 50, 45, 32, //99232
21, 13, 6, 4, 4, 3, 2, 0, -3, -6, -8, -8, -11, -11, -12, -17, //99248
-23, -24, -26, -29, -32, -30, -20, -14, -9, -5, 0, 4, 6, 6, 1, -6, //99264
-11, -15, -21, -28, -29, -23, -18, -19, -16, -12, -15, -19, -19, -19, -21, -24, //99280
-25, -31, -42, -42, -48, -53, -52, -51, -50, -45, -42, -40, -38, -34, -31, -29, //99296
-30, -30, -30, -34, -40, -45, -46, -46, -46, -43, -42, -38, -35, -35, -34, -34, //99312
-34, -35, -36, -34, -32, -33, -35, -43, -50, -54, -65, -68, -69, -68, -68, -74, //99328
-70, -69, -71, -64, -59, -60, -58, -56, -58, -60, -61, -68, -73, -78, -84, -84, //99344
-78, -76, -75, -77, -78, -79, -84, -84, -85, -83, -84, -89, -88, -88, -94, -96, //99360
-95, -91, -87, -84, -84, -83, -81, -81, -81, -77, -70, -66, -63, -65, -64, -61, //99376
-64, -65, -54, -52, -50, -48, -48, -49, -47, -40, -33, -24, -16, -17, -16, -9, //99392
-6, -2, 4, 0, 0, 2, -3, -2, 2, 3, 8, 12, 15, 18, 29, 37, //99408
39, 40, 43, 42, 42, 42, 41, 46, 51, 54, 57, 59, 64, 70, 77, 82, //99424
88, 97, 101, 100, 101, 98, 92, 88, 86, 85, 81, 79, 78, 77, 77, 78, //99440
80, 82, 84, 89, 94, 98, 99, 99, 100, 98, 98, 97, 94, 94, 91, 88, //99456
87, 82, 84, 87, 90, 93, 92, 92, 91, 86, 81, 80, 76, 61, 58, 60, //99472
56, 54, 60, 59, 56, 55, 56, 55, 59, 62, 61, 61, 58, 52, 42, 38, //99488
41, 46, 48, 43, 42, 36, 28, 30, 38, 38, 42, 46, 42, 35, 29, 24, //99504
22, 19, 18, 22, 23, 21, 19, 15, 11, 5, -4, -8, -16, -19, -18, -20, //99520
-22, -22, -21, -21, -19, -22, -23, -18, -20, -26, -23, -16, -18, -18, -19, -24, //99536
-28, -25, -27, -30, -29, -31, -38, -41, -45, -50, -50, -47, -47, -50, -56, -63, //99552
-66, -71, -75, -82, -90, -90, -86, -87, -86, -83, -82, -80, -78, -78, -73, -71, //99568
-73, -73, -76, -75, -77, -83, -87, -87, -79, -75, -75, -78, -82, -84, -78, -76, //99584
-73, -69, -71, -73, -74, -79, -82, -82, -83, -89, -86, -85, -88, -88, -85, -81, //99600
-79, -78, -80, -82, -83, -77, -71, -68, -62, -56, -54, -49, -45, -40, -36, -35, //99616
-32, -32, -32, -32, -34, -43, -50, -53, -55, -57, -55, -51, -50, -49, -47, -42, //99632
-36, -32, -34, -34, -34, -33, -25, -24, -24, -19, -14, -12, -10, -7, -5, -5, //99648
-2, 2, 7, 8, 8, 10, 12, 14, 20, 20, 16, 18, 20, 13, 15, 19, //99664
18, 19, 22, 21, 21, 22, 23, 25, 32, 32, 28, 27, 27, 29, 36, 39, //99680
41, 41, 40, 44, 51, 62, 74, 82, 88, 95, 94, 90, 87, 87, 89, 91, //99696
91, 94, 93, 91, 91, 92, 94, 92, 92, 93, 86, 84, 84, 81, 78, 76, //99712
70, 71, 73, 76, 81, 90, 93, 94, 96, 97, 96, 92, 92, 92, 90, 89, //99728
88, 84, 78, 73, 72, 71, 68, 66, 68, 68, 64, 65, 66, 64, 63, 64, //99744
61, 54, 52, 46, 36, 31, 32, 33, 35, 36, 35, 34, 35, 33, 32, 28, //99760
24, 26, 24, 16, 21, 23, 20, 20, 17, 15, 14, 12, 9, 4, -2, -4, //99776
-7, -12, -16, -21, -21, -20, -22, -22, -21, -17, -16, -17, -16, -15, -18, -19, //99792
-19, -18, -19, -23, -27, -27, -27, -28, -27, -26, -30, -29, -26, -27, -28, -29, //99808
-30, -30, -31, -32, -34, -39, -43, -45, -46, -46, -44, -43, -43, -43, -43, -44, //99824
-47, -54, -58, -62, -65, -65, -64, -67, -66, -63, -62, -61, -56, -56, -58, -58, //99840
-58, -60, -66, -73, -76, -79, -84, -86, -86, -84, -83, -82, -80, -75, -74, -74, //99856
-78, -83, -85, -85, -82, -83, -85, -84, -79, -77, -77, -75, -72, -69, -66, -64, //99872
-62, -62, -63, -62, -63, -64, -66, -68, -71, -77, -77, -77, -75, -74, -72, -67, //99888
-65, -62, -61, -63, -60, -53, -49, -47, -48, -50, -54, -56, -58, -59, -59, -56, //99904
-50, -48, -42, -36, -32, -27, -22, -14, -7, -6, -2, 1, 1, 0, 0, 1, //99920
0, 3, 11, 14, 14, 16, 22, 25, 26, 28, 32, 35, 35, 37, 39, 35, //99936
31, 32, 34, 38, 42, 48, 52, 54, 62, 69, 78, 86, 90, 92, 97, 104, //99952
107, 113, 121, 124, 124, 125, 126, 127, 127, 122, 116, 111, 105, 101, 98, 98, //99968
100, 101, 103, 102, 108, 113, 108, 107, 105, 97, 97, 96, 96, 98, 98, 95, //99984
89, 88, 89, 86, 84, 88, 86, 82, 83, 86, 77, 72, 71, 75, 77, 73, //100000
72, 71, 71, 66, 58, 56, 48, 43, 41, 38, 41, 52, 53, 51, 52, 51, //100016
47, 48, 46, 41, 40, 39, 33, 23, 24, 22, 19, 23, 18, 12, 8, 7, //100032
11, 12, 9, 9, 7, 3, -5, -11, -11, -16, -24, -31, -34, -39, -40, -34, //100048
-29, -30, -30, -31, -37, -44, -45, -42, -40, -34, -30, -30, -34, -42, -54, -60, //100064
-61, -60, -58, -59, -64, -67, -67, -64, -63, -61, -57, -58, -58, -60, -66, -70, //100080
-77, -82, -88, -96, -101, -106, -103, -103, -102, -95, -85, -71, -69, -67, -63, -63, //100096
-69, -80, -88, -93, -101, -106, -111, -109, -103, -101, -95, -89, -88, -84, -80, -75, //100112
-69, -71, -71, -68, -71, -77, -78, -77, -71, -64, -62, -62, -64, -58, -58, -63, //100128
-66, -68, -69, -68, -72, -72, -69, -68, -68, -66, -63, -58, -51, -42, -36, -30, //100144
-26, -19, -16, -18, -23, -34, -42, -50, -57, -57, -57, -51, -45, -41, -32, -27, //100160
-19, -11, -8, -5, 2, 5, 5, 6, 7, 9, 3, -1, -1, -5, -8, -6, //100176
-3, 5, 8, 6, 4, 5, 10, 13, 13, 14, 15, 20, 20, 21, 21, 22, //100192
26, 24, 26, 34, 39, 42, 43, 47, 50, 48, 48, 45, 39, 43, 47, 53, //100208
57, 62, 69, 71, 69, 71, 74, 75, 80, 83, 82, 83, 85, 84, 85, 83, //100224
82, 81, 79, 76, 73, 74, 76, 76, 79, 82, 87, 94, 98, 97, 95, 92, //100240
92, 92, 87, 86, 84, 81, 81, 80, 80, 87, 88, 88, 90, 90, 90, 87, //100256
86, 86, 85, 83, 69, 65, 65, 61, 59, 64, 72, 75, 76, 78, 78, 79, //100272
78, 77, 75, 71, 65, 56, 47, 42, 39, 35, 31, 33, 35, 36, 34, 34, //100288
34, 34, 32, 26, 21, 16, 2, -6, -9, -10, -14, -15, -10, -9, -8, -3, //100304
3, 4, 3, 1, -2, -4, -8, -20, -25, -28, -32, -35, -38, -35, -28, -22, //100320
-20, -21, -24, -27, -29, -31, -33, -34, -32, -31, -32, -32, -30, -32, -37, -41, //100336
-50, -57, -61, -70, -72, -71, -69, -67, -64, -54, -50, -45, -43, -45, -47, -54, //100352
-63, -70, -74, -79, -85, -86, -84, -80, -72, -65, -63, -59, -56, -57, -59, -60, //100368
-64, -68, -73, -80, -84, -84, -83, -81, -75, -69, -67, -65, -63, -67, -70, -69, //100384
-68, -65, -66, -66, -67, -69, -71, -74, -75, -72, -72, -70, -67, -63, -57, -56, //100400
-58, -64, -66, -66, -69, -73, -73, -82, -84, -83, -83, -84, -80, -69, -63, -60, //100416
-59, -56, -51, -55, -59, -62, -64, -66, -68, -67, -64, -58, -51, -50, -43, -35, //100432
-31, -24, -15, -4, 0, -2, -2, 1, 1, -1, -4, -2, -1, -9, -17, -14, //100448
-6, -2, 1, 7, 10, 13, 20, 26, 35, 45, 51, 49, 46, 43, 38, 35, //100464
39, 41, 46, 52, 56, 67, 71, 71, 75, 77, 77, 75, 75, 76, 78, 81, //100480
83, 88, 93, 93, 93, 93, 93, 93, 95, 99, 102, 101, 97, 97, 97, 95, //100496
91, 91, 87, 83, 83, 87, 95, 105, 110, 113, 113, 110, 104, 93, 87, 81, //100512
74, 71, 70, 69, 71, 71, 69, 72, 78, 84, 88, 87, 87, 82, 71, 65, //100528
59, 57, 54, 48, 48, 47, 46, 50, 54, 55, 53, 46, 36, 30, 28, 20, //100544
20, 27, 28, 21, 21, 26, 26, 28, 30, 24, 23, 26, 25, 24, 27, 29, //100560
24, 24, 26, 20, 12, 0, -11, -14, -13, -13, -11, -8, -9, -13, -16, -14, //100576
-11, -11, -13, -17, -17, -20, -28, -31, -33, -34, -39, -43, -42, -43, -43, -45, //100592
-44, -38, -37, -36, -36, -39, -40, -47, -55, -58, -59, -59, -61, -68, -71, -74, //100608
-71, -67, -65, -58, -53, -54, -62, -73, -87, -92, -96, -97, -96, -94, -92, -93, //100624
-95, -92, -88, -85, -84, -82, -81, -80, -79, -83, -84, -82, -79, -75, -74, -74, //100640
-74, -81, -88, -88, -88, -92, -94, -95, -95, -96, -94, -93, -88, -80, -77, -74, //100656
-59, -59, -63, -64, -63, -61, -57, -55, -52, -47, -43, -46, -48, -47, -49, -50, //100672
-47, -38, -29, -22, -24, -27, -28, -30, -32, -35, -37, -31, -22, -18, -12, -5, //100688
-2, -1, 2, 2, -1, 0, 1, -2, -6, -6, -3, -5, -3, 8, 10, 10, //100704
11, 11, 12, 17, 21, 26, 33, 41, 41, 45, 51, 48, 47, 49, 43, 37, //100720
33, 29, 26, 25, 27, 26, 30, 38, 44, 55, 63, 69, 75, 81, 82, 76, //100736
74, 74, 74, 72, 74, 86, 93, 100, 107, 111, 115, 117, 116, 112, 109, 112, //100752
107, 100, 94, 90, 90, 88, 86, 91, 96, 100, 105, 106, 104, 101, 100, 95, //100768
87, 86, 90, 93, 93, 91, 93, 90, 88, 86, 84, 83, 81, 81, 84, 82, //100784
79, 81, 85, 81, 76, 70, 63, 59, 55, 53, 53, 51, 49, 47, 48, 50, //100800
47, 47, 52, 52, 49, 46, 42, 32, 21, 17, 13, 8, 11, 14, 17, 21, //100816
25, 25, 21, 14, 5, 0, -6, -12, -15, -15, -23, -25, -27, -29, -30, -32, //100832
-33, -36, -37, -34, -33, -30, -31, -34, -36, -41, -44, -45, -48, -43, -39, -41, //100848
-41, -38, -35, -33, -32, -31, -29, -27, -28, -31, -34, -39, -46, -52, -57, -58, //100864
-57, -62, -63, -57, -55, -53, -48, -49, -51, -48, -48, -50, -55, -58, -59, -59, //100880
-62, -64, -63, -63, -63, -60, -61, -68, -71, -69, -68, -69, -68, -69, -72, -74, //100896
-73, -74, -75, -75, -76, -79, -82, -84, -84, -81, -77, -76, -77, -74, -70, -72, //100912
-69, -66, -69, -73, -77, -82, -85, -86, -89, -90, -87, -90, -91, -86, -86, -90, //100928
-89, -89, -89, -90, -88, -83, -82, -81, -80, -76, -70, -66, -64, -62, -60, -59, //100944
-60, -57, -53, -49, -44, -42, -35, -32, -32, -32, -30, -27, -22, -20, -13, -8, //100960
-7, 4, 5, 4, 7, 9, 5, 5, 5, 2, 4, 11, 15, 14, 14, 18, //100976
23, 26, 27, 29, 35, 40, 43, 50, 57, 59, 61, 65, 69, 63, 64, 66, //100992
64, 68, 71, 65, 64, 65, 66, 67, 73, 88, 91, 93, 96, 97, 100, 98, //101008
93, 86, 81, 84, 83, 82, 86, 88, 89, 94, 101, 107, 111, 109, 106, 105, //101024
103, 99, 92, 82, 74, 73, 69, 66, 70, 73, 71, 75, 76, 73, 72, 71, //101040
74, 76, 78, 76, 72, 71, 65, 58, 57, 58, 57, 55, 51, 53, 55, 52, //101056
48, 47, 52, 52, 47, 42, 37, 31, 30, 30, 32, 35, 35, 30, 24, 17, //101072
13, 14, 17, 16, 8, 0, -5, -11, -13, -11, -11, -9, -6, -6, -6, -2, //101088
-3, -6, -6, -14, -19, -21, -24, -28, -29, -26, -26, -24, -22, -27, -33, -34, //101104
-34, -27, -21, -23, -32, -34, -33, -36, -40, -40, -48, -55, -60, -64, -62, -62, //101120
-57, -53, -54, -50, -45, -48, -50, -49, -51, -57, -60, -68, -75, -76, -73, -66, //101136
-60, -61, -60, -62, -67, -71, -77, -78, -82, -83, -81, -80, -78, -81, -80, -74, //101152
-71, -70, -74, -77, -77, -80, -78, -75, -80, -82, -86, -89, -87, -83, -75, -71, //101168
-73, -70, -65, -60, -53, -50, -50, -50, -46, -47, -54, -62, -68, -74, -72, -69, //101184
-72, -71, -67, -64, -56, -52, -47, -41, -39, -43, -46, -46, -42, -40, -42, -40, //101200
-39, -35, -31, -28, -23, -19, -17, -19, -17, -10, -10, -10, -7, -5, -9, -7, //101216
-4, -5, -3, -3, -5, 0, 5, 8, 11, 16, 24, 28, 33, 40, 40, 37, //101232
34, 29, 27, 28, 30, 32, 32, 33, 38, 45, 50, 56, 65, 69, 74, 79, //101248
77, 74, 72, 68, 66, 68, 73, 82, 84, 88, 92, 89, 86, 87, 88, 85, //101264
81, 83, 88, 88, 92, 90, 89, 94, 94, 92, 90, 90, 93, 93, 93, 92, //101280
92, 93, 90, 90, 92, 94, 95, 90, 87, 83, 82, 85, 85, 82, 84, 85, //101296
86, 87, 87, 82, 76, 75, 70, 66, 68, 66, 58, 55, 53, 52, 50, 49, //101312
49, 44, 43, 46, 48, 46, 45, 42, 40, 37, 30, 24, 22, 19, 17, 11, //101328
9, 11, 10, 12, 12, 10, 13, 14, 16, 16, 11, 4, -5, -8, -12, -14, //101344
-11, -11, -14, -14, -16, -17, -14, -13, -18, -21, -21, -22, -24, -27, -28, -30, //101360
-31, -30, -30, -30, -33, -37, -35, -31, -34, -35, -37, -43, -50, -56, -63, -67, //101376
-65, -62, -62, -63, -58, -56, -58, -59, -58, -59, -61, -66, -70, -68, -69, -75, //101392
-74, -73, -70, -70, -72, -68, -68, -73, -75, -77, -79, -78, -83, -86, -84, -83, //101408
-81, -76, -73, -76, -79, -78, -82, -85, -87, -91, -93, -93, -91, -93, -94, -88, //101424
-83, -77, -75, -75, -74, -77, -85, -88, -91, -95, -95, -90, -92, -96, -93, -92, //101440
-93, -89, -81, -78, -78, -76, -73, -72, -69, -69, -67, -65, -66, -66, -62, -61, //101456
-62, -61, -59, -50, -44, -38, -36, -37, -34, -35, -34, -27, -23, -23, -14, -10, //101472
-6, -3, -2, -1, -1, -3, -6, -8, -6, -7, -2, 2, 2, 10, 19, 18, //101488
23, 26, 27, 36, 46, 50, 53, 57, 58, 59, 66, 71, 73, 72, 74, 72, //101504
70, 80, 86, 86, 92, 96, 94, 102, 105, 102, 104, 108, 104, 107, 112, 112, //101520
111, 116, 114, 114, 120, 121, 116, 116, 115, 109, 108, 114, 108, 107, 108, 105, //101536
104, 106, 107, 108, 106, 105, 103, 100, 104, 98, 95, 94, 86, 89, 91, 92, //101552
101, 102, 100, 102, 98, 95, 91, 91, 91, 78, 77, 75, 65, 62, 64, 63, //101568
63, 61, 56, 51, 50, 56, 59, 56, 56, 54, 48, 41, 31, 24, 25, 14, //101584
5, 4, 3, 0, 1, 5, 2, 2, 3, 0, -15, -23, -26, -28, -31, -35, //101600
-40, -37, -37, -41, -39, -43, -46, -41, -45, -46, -48, -53, -46, -47, -47, -38, //101616
-36, -49, -50, -49, -54, -57, -56, -60, -64, -72, -81, -82, -89, -92, -88, -81, //101632
-79, -76, -66, -63, -58, -53, -56, -62, -66, -68, -78, -92, -96, -99, -105, -102, //101648
-94, -89, -86, -81, -79, -74, -67, -65, -68, -72, -73, -73, -76, -74, -69, -70, //101664
-65, -64, -63, -58, -68, -73, -73, -78, -83, -87, -89, -90, -95, -98, -95, -82, //101680
-76, -73, -67, -56, -50, -46, -41, -43, -45, -42, -46, -61, -68, -75, -82, -82, //101696
-82, -82, -76, -73, -72, -66, -51, -46, -44, -35, -28, -31, -33, -28, -25, -30, //101712
-38, -35, -32, -31, -33, -37, -34, -22, -19, -18, -16, -10, -2, -4, -6, -3, //101728
2, 0, -3, -3, -3, -1, 2, 6, 20, 30, 35, 37, 37, 30, 26, 25, //101744
25, 22, 19, 23, 23, 21, 25, 29, 35, 48, 56, 61, 60, 61, 65, 67, //101760
74, 75, 73, 74, 74, 74, 75, 74, 70, 67, 73, 77, 77, 79, 77, 80, //101776
86, 89, 94, 101, 104, 102, 101, 97, 90, 87, 85, 81, 79, 77, 82, 89, //101792
92, 94, 96, 96, 95, 94, 89, 85, 86, 84, 73, 68, 71, 73, 77, 83, //101808
90, 95, 96, 95, 93, 89, 84, 75, 70, 64, 61, 59, 53, 52, 56, 55, //101824
52, 54, 56, 56, 57, 57, 59, 60, 54, 47, 42, 37, 30, 27, 22, 18, //101840
18, 16, 15, 21, 25, 27, 29, 33, 32, 24, 24, 24, 21, 16, 9, 0, //101856
-3, -4, -7, -8, -1, 2, 5, 5, 2, 1, 0, -6, -11, -11, -11, -17, //101872
-20, -19, -18, -23, -25, -25, -31, -38, -40, -41, -42, -39, -37, -38, -35, -33, //101888
-35, -38, -42, -45, -48, -53, -64, -73, -76, -79, -83, -84, -84, -80, -74, -65, //101904
-60, -60, -56, -56, -60, -63, -65, -69, -77, -82, -85, -88, -89, -85, -82, -79, //101920
-75, -72, -69, -70, -73, -71, -68, -69, -74, -80, -83, -84, -89, -92, -90, -93, //101936
-96, -95, -94, -91, -91, -95, -93, -88, -86, -84, -83, -84, -84, -86, -91, -87, //101952
-81, -81, -77, -71, -68, -62, -59, -58, -54, -50, -48, -52, -51, -46, -48, -47, //101968
-42, -39, -35, -34, -31, -26, -21, -16, -17, -14, -9, -16, -22, -24, -21, -20, //101984
-20, -14, -9, -5, -2, 0, 4, 5, 0, -1, 5, 9, 20, 26, 30, 39, //102000
45, 47, 51, 50, 46, 40, 38, 42, 43, 45, 48, 49, 47, 52, 54, 49, //102016
51, 53, 50, 53, 58, 62, 63, 64, 67, 68, 73, 78, 85, 91, 88, 90, //102032
93, 91, 86, 83, 76, 65, 62, 63, 62, 62, 61, 66, 71, 76, 84, 92, //102048
99, 100, 97, 92, 85, 85, 77, 75, 78, 78, 90, 90, 95, 103, 102, 99, //102064
84, 80, 79, 71, 68, 61, 56, 53, 50, 54, 58, 69, 74, 72, 77, 78, //102080
69, 60, 59, 56, 45, 38, 27, 20, 20, 15, 9, 4, 7, 12, 11, 9, //102096
5, 3, 2, -3, 0, 7, 14, 16, 12, 9, 4, 1, 0, -11, -12, -13, //102112
-15, -17, -21, -24, -26, -23, -21, -23, -21, -20, -22, -25, -29, -32, -33, -34, //102128
-39, -43, -41, -41, -37, -39, -42, -35, -36, -49, -51, -52, -60, -68, -71, -75, //102144
-74, -66, -61, -60, -61, -57, -59, -60, -56, -53, -50, -54, -60, -61, -65, -71, //102160
-66, -62, -58, -53, -52, -53, -56, -59, -62, -66, -72, -73, -73, -77, -80, -78, //102176
-74, -73, -68, -65, -64, -63, -64, -66, -68, -67, -67, -70, -66, -68, -76, -80, //102192
-80, -81, -83, -82, -79, -74, -70, -68, -68, -66, -65, -65, -63, -53, -46, -44, //102208
-41, -36, -32, -26, -27, -30, -32, -31, -33, -38, -38, -39, -42, -45, -44, -38, //102224
-28, -22, -18, -16, -16, -15, -15, -15, -16, -13, -8, -9, -12, -7, -2, -4, //102240
-6, -7, -8, -11, -11, -10, -8, -4, -2, 1, 4, 8, 11, 16, 21, 26, //102256
30, 30, 29, 26, 23, 22, 29, 30, 32, 34, 37, 47, 51, 54, 54, 55, //102272
59, 62, 69, 73, 74, 73, 65, 60, 62, 61, 63, 65, 70, 71, 71, 71, //102288
74, 79, 78, 75, 72, 71, 73, 72, 72, 76, 73, 69, 65, 60, 61, 62, //102304
65, 67, 70, 73, 72, 74, 75, 78, 81, 78, 79, 77, 74, 73, 73, 75, //102320
69, 63, 63, 63, 63, 64, 65, 65, 63, 58, 54, 51, 47, 43, 42, 40, //102336
38, 38, 38, 38, 40, 38, 34, 34, 34, 34, 32, 30, 24, 17, 10, 5, //102352
3, 3, 0, 2, 8, 12, 14, 17, 22, 20, 16, 14, 8, 6, -1, -11, //102368
-12, -12, -11, -10, -9, -2, 2, 7, 7, 8, 13, 10, 6, 0, -10, -14, //102384
-19, -23, -29, -35, -34, -32, -33, -32, -30, -29, -29, -27, -25, -25, -28, -32, //102400
-37, -44, -50, -50, -55, -56, -53, -54, -53, -49, -47, -46, -52, -53, -48, -50, //102416
-49, -48, -49, -48, -54, -61, -63, -66, -71, -71, -70, -75, -80, -84, -89, -93, //102432
-94, -94, -92, -92, -94, -92, -90, -90, -90, -91, -93, -97, -101, -106, -110, -106, //102448
-105, -105, -102, -102, -99, -90, -80, -75, -72, -70, -73, -76, -76, -80, -77, -69, //102464
-66, -65, -62, -59, -56, -51, -46, -38, -38, -42, -42, -38, -36, -34, -33, -28, //102480
-22, -21, -16, -10, -12, -12, -13, -12, -3, -2, 0, 0, 1, 13, 14, 16, //102496
26, 33, 29, 27, 34, 38, 39, 40, 41, 43, 44, 48, 58, 63, 66, 65, //102512
61, 63, 63, 59, 57, 55, 52, 50, 52, 59, 65, 68, 75, 82, 87, 89, //102528
91, 94, 94, 91, 85, 81, 75, 73, 74, 69, 66, 65, 69, 76, 81, 87, //102544
89, 84, 83, 81, 80, 80, 82, 79, 76, 80, 88, 88, 86, 91, 92, 90, //102560
90, 85, 85, 85, 80, 74, 71, 72, 69, 59, 53, 54, 55, 66, 72, 76, //102576
76, 70, 63, 59, 56, 55, 55, 50, 37, 32, 31, 30, 28, 28, 32, 30, //102592
26, 25, 22, 18, 21, 21, 16, 9, 2, -9, -16, -23, -27, -27, -27, -29, //102608
-27, -26, -26, -21, -20, -18, -17, -16, -17, -24, -33, -39, -48, -53, -62, -69, //102624
-63, -61, -59, -54, -47, -34, -32, -32, -32, -32, -31, -36, -43, -51, -60, -70, //102640
-79, -77, -75, -74, -71, -67, -60, -57, -53, -47, -43, -41, -40, -41, -39, -39, //102656
-41, -44, -46, -47, -48, -46, -45, -44, -44, -45, -47, -48, -48, -51, -54, -55, //102672
-56, -61, -64, -61, -60, -63, -63, -59, -53, -51, -52, -52, -54, -56, -60, -63, //102688
-64, -63, -62, -65, -67, -65, -63, -62, -58, -50, -46, -48, -52, -51, -45, -44, //102704
-46, -43, -39, -39, -37, -33, -29, -31, -35, -35, -37, -41, -43, -43, -40, -38, //102720
-42, -41, -37, -35, -37, -40, -40, -39, -37, -35, -33, -30, -22, -14, -8, -4, //102736
1, 5, 6, 6, 2, -3, -4, -6, -10, -10, -10, -10, -3, 4, 9, 13, //102752
18, 29, 32, 32, 28, 25, 25, 28, 28, 31, 37, 42, 41, 38, 43, 47, //102768
49, 51, 54, 56, 57, 60, 65, 67, 61, 58, 60, 59, 54, 54, 59, 64, //102784
70, 72, 73, 76, 77, 80, 84, 89, 90, 87, 86, 81, 78, 80, 80, 80, //102800
76, 71, 71, 77, 85, 87, 89, 92, 90, 88, 89, 84, 82, 85, 83, 80, //102816
77, 76, 74, 70, 69, 67, 66, 67, 65, 63, 63, 63, 57, 54, 53, 49, //102832
40, 35, 37, 40, 40, 38, 40, 42, 37, 34, 36, 40, 41, 35, 29, 24, //102848
22, 21, 16, 13, 14, 13, 8, 7, 10, 13, 14, 12, 13, 11, 5, 3, //102864
3, -1, -4, -8, -10, -11, -13, -15, -12, -9, -2, 0, -1, -1, -9, -15, //102880
-19, -22, -24, -27, -32, -34, -34, -34, -35, -37, -33, -28, -31, -36, -38, -38, //102896
-43, -47, -51, -54, -57, -58, -56, -54, -53, -52, -53, -53, -54, -55, -56, -58, //102912
-60, -63, -66, -66, -66, -67, -66, -67, -68, -70, -74, -85, -88, -87, -89, -91, //102928
-90, -88, -86, -85, -87, -87, -84, -87, -93, -95, -94, -97, -98, -94, -92, -92, //102944
-94, -92, -81, -73, -69, -66, -61, -58, -59, -63, -67, -69, -73, -76, -73, -70, //102960
-67, -63, -61, -60, -56, -53, -54, -53, -49, -50, -53, -56, -52, -47, -51, -49, //102976
-43, -38, -35, -34, -30, -27, -28, -23, -19, -12, -7, -6, -5, -4, 0, 8, //102992
11, 14, 17, 17, 16, 22, 28, 29, 27, 31, 35, 34, 36, 43, 50, 50, //103008
46, 45, 43, 45, 45, 45, 48, 50, 51, 55, 67, 81, 82, 87, 91, 89, //103024
87, 83, 83, 81, 78, 78, 77, 81, 84, 84, 89, 96, 95, 94, 93, 90, //103040
90, 91, 91, 98, 104, 104, 104, 101, 97, 96, 101, 102, 96, 91, 93, 88, //103056
80, 82, 90, 90, 83, 79, 81, 83, 80, 79, 78, 78, 76, 70, 61, 59, //103072
55, 53, 51, 47, 41, 35, 30, 25, 25, 28, 27, 27, 24, 21, 23, 24, //103088
22, 17, 13, 10, 4, -9, -13, -12, -8, -7, -6, -2, -1, -5, -8, -6, //103104
-1, 0, -2, -5, -10, -21, -30, -32, -35, -39, -44, -53, -55, -56, -58, -62, //103120
-64, -63, -60, -51, -45, -43, -39, -36, -33, -39, -47, -48, -53, -57, -61, -63, //103136
-63, -63, -59, -59, -61, -58, -58, -57, -53, -50, -45, -41, -36, -33, -34, -31, //103152
-31, -34, -37, -43, -42, -46, -51, -52, -54, -57, -58, -58, -54, -54, -62, -63, //103168
-62, -59, -58, -54, -43, -37, -31, -29, -27, -23, -22, -28, -37, -46, -58, -73, //103184
-76, -80, -80, -79, -79, -71, -64, -57, -53, -48, -38, -37, -33, -29, -28, -27, //103200
-30, -34, -37, -39, -37, -34, -38, -42, -43, -39, -32, -33, -36, -32, -25, -28, //103216
-31, -30, -35, -38, -40, -44, -46, -41, -38, -38, -33, -23, -10, -5, -2, -5, //103232
-12, -16, -21, -25, -29, -28, -22, -21, -21, -12, -3, 6, 14, 21, 29, 31, //103248
30, 31, 30, 30, 30, 30, 26, 22, 24, 23, 19, 20, 21, 22, 26, 27, //103264
30, 37, 41, 42, 48, 53, 51, 45, 45, 46, 42, 39, 40, 43, 45, 47, //103280
54, 60, 67, 72, 75, 78, 73, 70, 72, 71, 68, 65, 64, 63, 58, 55, //103296
60, 65, 69, 73, 75, 77, 82, 83, 81, 78, 78, 76, 69, 68, 68, 68, //103312
67, 68, 70, 68, 71, 77, 80, 78, 78, 82, 78, 69, 66, 62, 57, 51, //103328
44, 40, 34, 33, 33, 30, 30, 31, 33, 38, 42, 41, 38, 36, 35, 31, //103344
26, 22, 20, 19, 18, 17, 17, 22, 24, 22, 21, 17, 17, 17, 12, 14, //103360
12, 10, 14, 14, 7, 3, 2, -1, -7, -9, -14, -17, -18, -20, -21, -16, //103376
-14, -14, -14, -12, -12, -19, -23, -24, -26, -32, -37, -39, -39, -40, -41, -41, //103392
-33, -29, -29, -25, -23, -25, -30, -34, -37, -42, -45, -48, -55, -58, -58, -55, //103408
-51, -50, -47, -44, -48, -53, -54, -57, -65, -72, -75, -82, -90, -94, -94, -98, //103424
-103, -101, -97, -97, -93, -89, -85, -82, -82, -80, -77, -75, -75, -79, -82, -84, //103440
-88, -91, -91, -84, -77, -70, -64, -59, -53, -51, -51, -49, -51, -54, -56, -60, //103456
-68, -73, -70, -67, -65, -61, -56, -51, -50, -45, -39, -36, -32, -30, -27, -24, //103472
-17, -17, -17, -11, -7, -7, -3, 0, 1, 1, 1, 4, 8, 9, 11, 14, //103488
17, 19, 22, 26, 25, 26, 25, 18, 17, 21, 25, 32, 34, 33, 37, 37, //103504
37, 39, 42, 46, 46, 46, 45, 47, 51, 50, 52, 56, 58, 66, 65, 63, //103520
62, 60, 55, 52, 52, 51, 46, 42, 44, 45, 42, 44, 48, 49, 57, 64, //103536
67, 66, 68, 68, 64, 65, 67, 68, 67, 66, 67, 66, 65, 65, 63, 62, //103552
63, 65, 62, 58, 57, 51, 44, 41, 43, 45, 44, 43, 40, 40, 41, 42, //103568
42, 40, 40, 41, 40, 38, 33, 31, 27, 21, 21, 19, 19, 20, 19, 16, //103584
13, 13, 12, 10, 10, 7, 5, 4, 2, -1, -7, -13, -14, -15, -16, -16, //103600
-17, -18, -14, -10, -6, -5, -5, -7, -12, -16, -21, -23, -23, -32, -30, -26, //103616
-27, -27, -26, -31, -33, -33, -31, -30, -32, -31, -34, -39, -39, -38, -40, -39, //103632
-38, -35, -33, -32, -31, -33, -35, -34, -31, -32, -35, -36, -36, -36, -34, -31, //103648
-30, -33, -36, -36, -34, -33, -32, -31, -31, -31, -28, -28, -28, -28, -29, -33, //103664
-33, -28, -30, -35, -37, -36, -36, -37, -34, -32, -34, -35, -39, -39, -37, -41, //103680
-46, -42, -37, -34, -31, -29, -27, -27, -30, -32, -32, -31, -35, -36, -35, -37, //103696
-37, -36, -45, -48, -46, -44, -42, -37, -36, -38, -39, -37, -35, -31, -30, -27, //103712
-27, -25, -22, -21, -21, -23, -25, -25, -23, -21, -18, -19, -18, -14, -14, -18, //103728
-19, -18, -17, -17, -16, -16, -12, -9, -9, -6, -3, -3, -1, 4, 9, 14, //103744
19, 24, 25, 26, 28, 33, 37, 38, 38, 37, 35, 36, 37, 39, 41, 39, //103760
37, 38, 38, 42, 49, 51, 51, 48, 49, 51, 49, 46, 46, 46, 47, 52, //103776
57, 60, 66, 71, 73, 75, 77, 77, 78, 76, 74, 71, 70, 67, 66, 66, //103792
62, 65, 73, 72, 71, 73, 73, 68, 65, 61, 58, 55, 52, 51, 48, 47, //103808
47, 44, 42, 38, 35, 34, 32, 30, 30, 31, 29, 26, 23, 19, 19, 18, //103824
20, 21, 19, 18, 16, 16, 15, 14, 17, 20, 22, 20, 16, 16, 17, 11, //103840
7, 6, 6, 3, -2, -6, 0, 5, 9, 13, 17, 19, 18, 15, 12, 7, //103856
3, -1, -2, -4, -9, -8, -5, -4, -4, -6, -7, -16, -18, -19, -22, -22, //103872
-23, -28, -31, -31, -31, -29, -27, -25, -25, -27, -28, -31, -37, -40, -46, -45, //103888
-42, -44, -40, -39, -41, -39, -39, -42, -52, -55, -54, -55, -54, -57, -59, -61, //103904
-60, -55, -53, -50, -46, -46, -50, -57, -63, -68, -72, -78, -80, -76, -71, -70, //103920
-71, -70, -70, -72, -72, -76, -79, -80, -81, -79, -76, -70, -68, -70, -67, -66, //103936
-70, -65, -60, -62, -61, -52, -52, -51, -48, -47, -45, -45, -46, -45, -39, -35, //103952
-46, -48, -45, -46, -44, -38, -29, -27, -22, -21, -24, -18, -19, -19, -12, -7, //103968
-8, -4, -2, -7, -9, -3, 0, 1, 4, 8, 13, 16, 15, 11, 12, 10, //103984
7, 12, 15, 14, 16, 21, 23, 19, 22, 28, 31, 33, 32, 33, 43, 49, //104000
45, 44, 47, 45, 41, 41, 46, 51, 51, 49, 53, 61, 58, 49, 58, 64, //104016
64, 66, 72, 73, 63, 61, 63, 62, 60, 58, 55, 54, 51, 47, 47, 54, //104032
56, 58, 60, 59, 56, 57, 52, 47, 48, 51, 49, 48, 46, 44, 43, 42, //104048
41, 38, 38, 40, 38, 31, 28, 31, 32, 32, 30, 27, 25, 27, 28, 29, //104064
31, 27, 23, 20, 18, 16, 14, 9, 8, 7, 3, -2, -1, 1, 0, 1, //104080
4, 3, -2, 0, 2, -1, -3, -3, -8, -10, -12, -14, -10, -4, -2, -1, //104096
-4, -9, -14, -20, -21, -19, -19, -26, -30, -26, -27, -28, -27, -24, -24, -25, //104112
-23, -20, -21, -22, -18, -13, -16, -20, -18, -15, -16, -15, -16, -21, -23, -22, //104128
-25, -27, -24, -21, -20, -17, -18, -19, -17, -12, -10, -10, -9, -8, -7, -6, //104144
-7, -7, -6, -10, -14, -13, -18, -18, -13, -16, -22, -22, -16, -17, -18, -14, //104160
-15, -22, -22, -20, -22, -28, -28, -22, -20, -19, -21, -21, -22, -23, -24, -25, //104176
-28, -32, -30, -34, -40, -38, -34, -33, -30, -23, -23, -28, -29, -29, -35, -37, //104192
-34, -32, -33, -31, -34, -36, -34, -28, -24, -27, -29, -29, -30, -32, -35, -35, //104208
-37, -40, -40, -39, -37, -34, -29, -26, -25, -23, -19, -20, -18, -18, -23, -28, //104224
-27, -27, -27, -24, -19, -16, -17, -17, -14, -15, -15, -8, -7, -9, -8, -4, //104240
0, 3, 7, 11, 13, 13, 22, 25, 22, 25, 29, 25, 21, 23, 21, 18, //104256
19, 28, 31, 30, 33, 40, 48, 45, 44, 49, 53, 51, 48, 51, 53, 53, //104272
57, 61, 60, 59, 57, 54, 55, 58, 55, 53, 55, 55, 51, 49, 47, 42, //104288
40, 44, 46, 45, 46, 45, 42, 40, 39, 39, 39, 39, 37, 33, 30, 29, //104304
27, 24, 21, 19, 19, 21, 20, 20, 19, 17, 22, 25, 22, 20, 22, 21, //104320
9, 11, 16, 13, 6, 4, 2, -4, -10, -7, 0, 0, 0, 0, -4, -9, //104336
-9, -7, -9, -13, -11, -9, -14, -17, -16, -14, -17, -23, -26, -29, -32, -33, //104352
-30, -29, -30, -26, -26, -31, -28, -20, -22, -22, -20, -17, -20, -23, -22, -24, //104368
-29, -34, -36, -33, -31, -31, -29, -26, -22, -23, -23, -21, -21, -22, -24, -25, //104384
-27, -31, -35, -35, -34, -34, -33, -29, -22, -21, -23, -22, -21, -25, -30, -30, //104400
-29, -26, -24, -25, -21, -19, -20, -20, -21, -22, -22, -23, -22, -23, -26, -25, //104416
-19, -16, -17, -20, -19, -22, -24, -22, -18, -15, -14, -15, -14, -13, -13, -14, //104432
-13, -11, -15, -16, -16, -17, -15, -12, -13, -15, -13, -11, -14, -13, -11, -9, //104448
-8, -6, -7, -7, -4, -2, -2, 0, 2, 2, 2, 3, 3, 4, 7, 5, //104464
6, 9, 12, 15, 16, 16, 12, 9, 8, 6, 7, 13, 16, 15, 18, 21, //104480
21, 22, 22, 18, 12, 15, 15, 15, 18, 16, 13, 14, 15, 15, 13, 11, //104496
9, 9, 9, 8, 9, 14, 15, 15, 16, 16, 17, 18, 19, 18, 19, 21, //104512
17, 14, 14, 16, 18, 19, 23, 24, 23, 25, 26, 25, 25, 24, 23, 23, //104528
23, 20, 17, 16, 19, 25, 27, 27, 28, 28, 26, 26, 29, 31, 31, 29, //104544
29, 26, 21, 24, 26, 23, 22, 18, 15, 14, 14, 17, 20, 23, 25, 24, //104560
23, 22, 23, 21, 19, 22, 23, 17, 13, 11, 12, 12, 13, 17, 21, 21, //104576
23, 25, 24, 23, 22, 19, 21, 22, 21, 21, 19, 17, 14, 14, 16, 16, //104592
13, 9, 8, 8, 7, 6, 3, 2, -2, -6, -14, -18, -19, -19, -19, -17, //104608
-14, -12, -13, -15, -17, -20, -22, -22, -24, -24, -21, -19, -21, -24, -24, -23, //104624
-24, -26, -28, -30, -34, -38, -37, -33, -34, -34, -33, -31, -29, -26, -19, -16, //104640
-17, -18, -25, -28, -29, -30, -30, -30, -28, -30, -32, -32, -31, -29, -30, -29, //104656
-26, -26, -26, -22, -20, -20, -20, -19, -19, -17, -17, -19, -22, -22, -21, -23, //104672
-26, -28, -30, -31, -32, -28, -24, -24, -23, -19, -21, -24, -26, -26, -26, -25, //104688
-24, -25, -25, -24, -26, -29, -28, -30, -32, -33, -33, -32, -30, -29, -30, -28, //104704
-30, -28, -24, -22, -21, -21, -18, -17, -18, -17, -16, -20, -20, -19, -19, -17, //104720
-15, -15, -17, -18, -19, -23, -24, -18, -14, -11, -9, -6, -4, -2, -1, 0, //104736
2, 2, 2, 3, 3, 3, 4, 6, 8, 8, 7, 6, 4, 5, 6, 7, //104752
8, 8, 7, 9, 13, 16, 21, 25, 30, 36, 37, 35, 36, 37, 35, 36, //104768
40, 42, 40, 39, 36, 37, 37, 35, 34, 34, 33, 34, 37, 38, 39, 40, //104784
39, 39, 40, 38, 35, 33, 31, 30, 32, 32, 30, 25, 24, 23, 21, 22, //104800
23, 22, 21, 21, 20, 16, 13, 13, 12, 11, 12, 13, 12, 10, 11, 13, //104816
10, 6, 4, 4, 4, 1, 0, 2, 4, 5, 4, 5, 7, 5, 7, 11, //104832
13, 17, 20, 21, 21, 18, 17, 17, 16, 14, 15, 15, 16, 15, 13, 14, //104848
16, 16, 15, 12, 11, 11, 11, 12, 13, 14, 12, 13, 16, 16, 15, 15, //104864
14, 16, 15, 11, 7, 2, 0, 1, 1, 1, 0, 1, 1, -1, -3, -4, //104880
-4, -4, -6, -7, -6, -8, -8, -10, -12, -12, -12, -13, -14, -15, -19, -22, //104896
-27, -29, -28, -29, -30, -28, -26, -25, -27, -28, -25, -24, -24, -27, -28, -26, //104912
-26, -26, -25, -24, -23, -25, -27, -29, -30, -30, -31, -29, -28, -30, -29, -29, //104928
-29, -28, -25, -24, -24, -23, -24, -25, -25, -26, -26, -24, -25, -26, -27, -26, //104944
-26, -25, -24, -25, -25, -28, -28, -25, -23, -17, -13, -10, -10, -10, -9, -8, //104960
-7, -4, -2, -3, -3, -2, -3, -3, -3, -4, -5, -5, -4, -2, -2, -2, //104976
0, 1, 4, 9, 12, 16, 19, 19, 18, 18, 16, 14, 13, 11, 8, 8, //104992
9, 9, 10, 11, 12, 12, 12, 11, 10, 9, 8, 10, 13, 15, 18, 20, //105008
19, 17, 15, 14, 14, 14, 14, 12, 10, 9, 8, 6, 6, 6, 7, 7, //105024
8, 9, 11, 11, 12, 13, 12, 10, 10, 11, 11, 12, 12, 12, 12, 10, //105040
8, 8, 8, 7, 10, 11, 10, 9, 9, 6, 4, 4, 6, 8, 7, 8, //105056
9, 10, 10, 10, 14, 14, 16, 17, 17, 18, 19, 20, 21, 19, 17, 16, //105072
13, 14, 16, 18, 21, 20, 20, 20, 20, 19, 20, 23, 22, 23, 25, 27, //105088
27, 24, 20, 15, 12, 10, 9, 9, 8, 7, 6, 7, 10, 11, 11, 12, //105104
13, 14, 12, 11, 11, 9, 6, 0, -2, -4, -6, -5, -5, -2, 0, 0, //105120
-1, -3, -5, -6, -4, -1, -1, 1, 1, -1, -2, -3, -5, -5, -5, -3, //105136
-3, -4, -7, -12, -13, -16, -21, -22, -24, -27, -25, -21, -17, -15, -13, -11, //105152
-13, -14, -14, -12, -9, -11, -12, -14, -17, -17, -18, -20, -22, -22, -23, -25, //105168
-25, -27, -31, -32, -32, -32, -33, -32, -32, -34, -34, -34, -36, -37, -39, -41, //105184
-41, -39, -39, -36, -34, -35, -35, -35, -36, -38, -40, -42, -43, -44, -44, -45, //105200
-46, -48, -50, -48, -48, -47, -45, -39, -37, -34, -32, -30, -28, -23, -22, -20, //105216
-17, -18, -18, -16, -14, -12, -8, -5, -6, -5, -3, -2, 1, 4, 7, 8, //105232
9, 9, 9, 9, 8, 11, 13, 15, 18, 21, 22, 21, 21, 22, 23, 23, //105248
23, 23, 20, 19, 21, 22, 23, 24, 24, 25, 27, 30, 31, 30, 28, 28, //105264
23, 23, 24, 24, 22, 23, 26, 26, 26, 26, 25, 25, 25, 25, 25, 25, //105280
26, 26, 26, 29, 30, 27, 22, 21, 20, 21, 22, 20, 17, 15, 13, 13, //105296
14, 14, 14, 13, 13, 13, 11, 9, 7, 7, 8, 8, 8, 10, 10, 8, //105312
8, 10, 9, 10, 13, 13, 14, 16, 19, 20, 20, 19, 16, 14, 10, 9, //105328
9, 11, 14, 16, 18, 17, 16, 18, 20, 18, 18, 17, 14, 13, 12, 9, //105344
10, 11, 10, 7, 5, 5, 6, 8, 10, 10, 6, 3, 3, 2, -1, -3, //105360
-5, -4, -3, -3, -4, -4, -8, -9, -10, -10, -10, -8, -8, -9, -9, -7, //105376
-5, -5, -5, -7, -7, -6, -5, -6, -8, -9, -10, -10, -10, -12, -13, -13, //105392
-12, -12, -15, -15, -15, -16, -16, -15, -15, -16, -17, -17, -15, -15, -14, -14, //105408
-14, -14, -15, -16, -15, -13, -14, -17, -18, -19, -18, -16, -14, -12, -13, -15, //105424
-15, -14, -13, -11, -11, -12, -13, -13, -11, -10, -12, -13, -14, -15, -16, -12, //105440
-12, -12, -11, -12, -13, -10, -11, -12, -14, -16, -16, -16, -15, -12, -12, -9, //105456
-7, -6, -5, -6, -7, -7, -5, -7, -7, -6, -4, -1, -1, 0, 1, 1, //105472
1, 5, 8, 10, 10, 10, 10, 8, 7, 5, 5, 6, 8, 9, 9, 11, //105488
14, 15, 16, 16, 16, 17, 17, 14, 12, 11, 7, 7, 9, 7, 6, 5, //105504
4, 3, 3, 5, 5, 3, 0, -1, -2, -2, -2, -1, 0, 0, -1, -2, //105520
-2, -2, -1, 1, 3, 7, 10, 10, 11, 12, 13, 13, 11, 9, 10, 13, //105536
14, 14, 12, 8, 6, 5, 6, 7, 6, 6, 6, 6, 7, 9, 11, 10, //105552
9, 9, 7, 6, 6, 7, 9, 8, 8, 9, 11, 14, 15, 15, 14, 13, //105568
13, 11, 9, 10, 11, 11, 10, 12, 13, 13, 14, 14, 15, 17, 18, 17, //105584
16, 16, 15, 14, 13, 13, 12, 10, 9, 9, 7, 5, 5, 5, 7, 8, //105600
7, 4, 4, 3, 4, 5, 6, 8, 8, 6, 6, 6, 7, 7, 7, 7, //105616
6, 6, 6, 4, 4, 4, 4, 3, 1, 0, -4, -5, -4, -4, -7, -7, //105632
-9, -10, -11, -12, -14, -13, -14, -14, -13, -14, -14, -14, -14, -13, -13, -14, //105648
-17, -17, -17, -19, -20, -21, -21, -23, -26, -27, -28, -28, -30, -31, -31, -32, //105664
-34, -35, -35, -35, -33, -31, -30, -26, -23, -22, -23, -24, -24, -22, -20, -19, //105680
-18, -18, -19, -19, -20, -22, -24, -24, -24, -24, -21, -21, -22, -22, -24, -25, //105696
-26, -25, -24, -25, -25, -26, -27, -27, -26, -23, -22, -20, -16, -11, -9, -8, //105712
-7, -5, -1, 1, -1, -3, -2, 0, 1, 2, 7, 9, 9, 8, 9, 12, //105728
15, 16, 17, 19, 19, 19, 21, 22, 22, 22, 21, 19, 18, 19, 19, 17, //105744
17, 15, 11, 10, 8, 7, 9, 10, 11, 11, 10, 8, 5, 6, 7, 7, //105760
7, 5, 4, 3, 3, 5, 4, 1, 0, 1, 1, 0, -1, -1, -3, -4, //105776
-3, -1, -1, -3, -4, -5, -4, -2, 1, 1, 0, 0, -1, -3, -5, -6, //105792
-6, -5, -3, -3, -2, -1, -1, 0, 1, 5, 6, 5, 3, 3, 3, 0, //105808
-1, -2, -4, -5, -5, -6, -6, -7, -8, -10, -12, -14, -14, -14, -14, -14, //105824
-16, -16, -16, -17, -18, -18, -17, -14, -10, -8, -5, -3, -2, 0, 1, 1, //105840
3, 2, 4, 6, 6, 7, 7, 6, 4, 4, 4, 5, 5, 3, 1, -1, //105856
2, 4, 5, 6, 7, 8, 10, 13, 14, 14, 15, 15, 15, 13, 13, 13, //105872
13, 14, 16, 18, 18, 18, 18, 18, 18, 20, 19, 16, 15, 15, 14, 14, //105888
14, 12, 10, 11, 10, 9, 9, 9, 7, 8, 9, 9, 9, 9, 7, 6, //105904
6, 7, 9, 9, 5, 2, 0, -3, -4, -3, -3, -3, -4, -5, -4, -4, //105920
-3, -3, -3, -3, -5, -7, -8, -7, -5, -4, -3, -2, -2, -2, -2, -1, //105936
0, 4, 4, 3, 2, 2, 4, 6, 6, 6, 6, 7, 9, 13, 14, 14, //105952
15, 16, 17, 17, 18, 18, 17, 17, 18, 18, 18, 18, 17, 15, 15, 16, //105968
16, 16, 15, 13, 13, 11, 9, 8, 6, 4, 4, 5, 6, 7, 8, 9, //105984
10, 10, 10, 10, 10, 9, 8, 8, 7, 7, 6, 4, 2, 3, 3, 3, //106000
1, -1, -2, -3, -3, -3, -2, -1, 0, 2, 5, 5, 4, 3, 2, 1, //106016
1, 2, 4, 3, 0, 0, 1, 1, 1, 0, -1, -4, -6, -6, -5, -5, //106032
-7, -9, -11, -13, -14, -15, -16, -16, -15, -15, -16, -16, -15, -14, -12, -11, //106048
-12, -11, -8, -8, -9, -8, -8, -8, -8, -7, -6, -6, -6, -3, -2, -4, //106064
-4, -3, -4, -2, -1, 0, 0, 0, 0, -1, 0, 2, 2, 1, 1, 3, //106080
3, 2, 1, -1, -3, -5, -6, -6, -6, -5, -4, -3, 0, 3, 4, 5, //106096
6, 6, 5, 6, 6, 4, 4, 3, 4, 4, 4, 3, 2, 1, -1, -2, //106112
-3, -4, -5, -6, -8, -8, -9, -11, -12, -12, -12, -12, -12, -12, -11, -10, //106128
-10, -8, -7, -8, -8, -8, -5, -6, -5, -5, -6, -7, -7, -5, -4, -5, //106144
-6, -7, -12, -12, -11, -10, -10, -13, -14, -16, -18, -20, -23, -25, -26, -26, //106160
-28, -29, -30, -32, -32, -32, -29, -26, -21, -20, -19, -18, -17, -17, -16, -16, //106176
-16, -15, -13, -13, -11, -12, -12, -11, -11, -13, -13, -15, -17, -17, -17, -13, //106192
-14, -15, -15, -15, -14, -13, -10, -9, -11, -10, -8, -7, -6, -5, -5, -5, //106208
-4, -3, -2, -1, 1, 1, 1, 2, 3, 3, 3, 2, 1, 2, 3, 6, //106224
8, 9, 10, 11, 12, 12, 10, 7, 7, 7, 5, 6, 9, 9, 11, 12, //106240
13, 14, 18, 19, 19, 19, 19, 18, 15, 15, 13, 10, 10, 11, 11, 11, //106256
11, 10, 10, 11, 11, 11, 12, 12, 11, 8, 7, 7, 7, 6, 3, 2, //106272
1, 0, -1, -3, -4, -6, -8, -9, -10, -14, -17, -18, -17, -16, -16, -15, //106288
-16, -16, -16, -15, -14, -15, -15, -16, -16, -16, -13, -12, -12, -11, -10, -10, //106304
-9, -8, -8, -9, -9, -6, -1, 0, 1, 2, 5, 9, 11, 12, 13, 14, //106320
14, 14, 16, 16, 15, 13, 12, 13, 14, 15, 16, 18, 21, 21, 21, 21, //106336
20, 17, 12, 12, 12, 12, 11, 11, 11, 14, 16, 17, 19, 21, 21, 20, //106352
20, 20, 19, 15, 16, 16, 16, 16, 15, 16, 16, 17, 18, 18, 18, 17, //106368
15, 14, 14, 14, 11, 7, 6, 5, 4, 4, 4, 6, 6, 4, 5, 8, //106384
9, 8, 7, 8, 8, 7, 8, 8, 8, 8, 6, 5, 3, 2, 1, 0, //106400
0, 0, 0, 2, 4, 4, 2, 4, 6, 7, 9, 9, 9, 10, 9, 8, //106416
8, 7, 6, 5, 5, 6, 7, 8, 7, 7, 6, 5, 6, 7, 6, 2, //106432
0, -1, -3, -3, -2, -1, 1, 3, 4, 4, 4, 4, 3, 3, 4, 2, //106448
1, 1, 1, 0, 3, 5, 6, 7, 9, 10, 10, 11, 11, 9, 8, 8, //106464
8, 7, 6, 4, 4, 3, 2, 3, 6, 8, 7, 7, 7, 6, 3, 1, //106480
2, 3, 4, 5, 5, 5, 4, 3, 0, -1, -1, -3, -4, -5, -5, -5, //106496
-6, -6, -5, -5, -6, -8, -8, -9, -11, -11, -10, -8, -7, -7, -7, -8, //106512
-9, -8, -9, -9, -6, -6, -6, -7, -8, -9, -10, -10, -10, -7, -5, -5, //106528
-4, -4, -5, -6, -7, -8, -9, -11, -8, -7, -6, -5, -4, -4, -5, -4, //106544
-3, 0, 2, 5, 5, 5, 5, 4, 2, 2, 2, 3, 4, 5, 6, 5, //106560
4, 3, 3, 5, 7, 10, 11, 11, 11, 11, 10, 9, 8, 6, 7, 8, //106576
10, 13, 14, 14, 14, 17, 17, 18, 18, 17, 15, 14, 14, 13, 12, 11, //106592
10, 9, 10, 11, 12, 14, 14, 13, 15, 16, 17, 17, 14, 13, 12, 10, //106608
8, 7, 7, 6, 5, 4, 4, 1, 1, 1, 2, 3, 4, 3, 0, -2, //106624
-6, -10, -13, -15, -15, -14, -11, -9, -8, -8, -9, -12, -15, -15, -14, -14, //106640
-15, -17, -20, -20, -20, -21, -21, -20, -21, -22, -24, -25, -27, -28, -28, -32, //106656
-33, -33, -31, -29, -30, -30, -31, -32, -32, -33, -35, -36, -36, -36, -36, -36, //106672
-35, -35, -35, -35, -35, -35, -35, -37, -38, -40, -40, -39, -40, -38, -37, -36, //106688
-35, -32, -29, -27, -26, -24, -20, -19, -20, -20, -19, -16, -13, -12, -11, -10, //106704
-8, -9, -11, -10, -11, -11, -11, -11, -10, -8, -7, -7, -7, -7, -6, -6, //106720
-6, -5, 0, 2, 2, 2, 2, 2, 1, -1, 0, 0, -1, -3, -5, -7, //106736
-7, -8, -9, -9, -8, -6, -4, -4, -2, 0, 0, 1, 1, 2, 3, 4, //106752
5, 6, 6, 7, 5, 4, 5, 4, 3, 2, 4, 4, 3, 3, 3, 3, //106768
1, 0, -1, 0, 1, 0, 1, 2, 4, 5, 3, 2, 0, -1, -1, -2, //106784
-2, 0, 0, 0, -1, -2, -4, -6, -6, -5, -4, -3, 0, 1, 3, 7, //106800
7, 7, 9, 9, 10, 11, 11, 11, 9, 7, 6, 5, 6, 7, 10, 13, //106816
16, 19, 20, 22, 23, 22, 22, 23, 23, 23, 22, 22, 22, 22, 20, 20, //106832
21, 21, 19, 19, 19, 20, 21, 21, 20, 18, 18, 17, 14, 14, 15, 15, //106848
16, 17, 18, 18, 18, 15, 13, 13, 15, 15, 17, 19, 17, 13, 11, 9, //106864
9, 8, 8, 9, 10, 9, 7, 7, 7, 8, 9, 5, 4, 5, 6, 6, //106880
6, 3, 1, 2, 3, 4, 6, 7, 8, 8, 8, 9, 7, 5, 4, 4, //106896
5, 5, 2, 1, 2, 4, 4, 4, 6, 7, 6, 5, 3, 1, 1, 1, //106912
0, 0, 2, 4, 2, 0, -1, -1, 1, 1, 1, 1, 0, 0, 0, 1, //106928
3, 2, -1, -1, -1, -3, -4, -3, -3, -3, -2, 0, 2, 2, 2, 1, //106944
2, 3, 4, 5, 5, 6, 8, 7, 7, 7, 5, 6, 6, 6, 7, 7, //106960
8, 7, 5, 5, 6, 6, 6, 6, 5, 4, 2, 3, 3, 4, 6, 7, //106976
9, 12, 15, 17, 17, 17, 16, 14, 13, 10, 8, 6, 3, 0, -2, -3, //106992
-4, -5, -4, -3, -3, -4, -5, -5, -5, -4, -5, -6, -8, -11, -13, -14, //107008
-16, -17, -19, -21, -22, -23, -23, -23, -22, -21, -20, -17, -14, -12, -11, -10, //107024
-10, -9, -9, -9, -8, -9, -10, -12, -14, -14, -13, -12, -11, -9, -9, -9, //107040
-8, -7, -8, -9, -9, -7, -7, -8, -9, -9, -8, -9, -8, -6, -3, 0, //107056
2, 2, 3, 3, 3, 3, 4, 6, 7, 7, 8, 10, 11, 12, 12, 11, //107072
11, 11, 11, 10, 10, 10, 10, 9, 11, 11, 10, 9, 8, 8, 8, 8, //107088
9, 10, 14, 14, 14, 14, 13, 13, 13, 12, 11, 11, 11, 11, 12, 13, //107104
13, 12, 12, 11, 10, 10, 8, 5, 3, 2, 0, -2, -5, -8, -11, -11, //107120
-11, -11, -11, -9, -10, -11, -11, -11, -11, -11, -15, -16, -16, -17, -19, -23, //107136
-24, -26, -27, -25, -25, -26, -27, -28, -28, -27, -28, -31, -34, -35, -36, -37, //107152
-35, -34, -33, -32, -32, -30, -28, -28, -28, -29, -29, -30, -30, -30, -31, -31, //107168
-28, -28, -27, -23, -20, -20, -19, -17, -18, -20, -21, -22, -24, -23, -23, -23, //107184
-20, -18, -19, -18, -16, -16, -17, -18, -17, -16, -15, -15, -12, -9, -7, -5, //107200
-4, 0, 3, 6, 6, 5, 4, 4, 4, 4, 4, 5, 6, 8, 14, 18, //107216
19, 21, 21, 19, 19, 19, 20, 21, 21, 21, 21, 21, 20, 21, 22, 22, //107232
24, 25, 24, 24, 24, 22, 21, 21, 21, 21, 19, 17, 16, 15, 15, 15, //107248
14, 13, 12, 9, 8, 8, 7, 5, 3, 2, 1, -1, -3, -4, -4, -5, //107264
-6, -2, -2, -2, -2, -2, -3, -3, -1, -2, -4, -4, -3, -2, 0, 1, //107280
1, -1, -3, -4, -5, -4, -3, -3, -5, -7, -7, -6, -5, -5, -6, -7, //107296
-8, -9, -9, -9, -11, -11, -12, -13, -13, -10, -9, -9, -8, -8, -10, -10, //107312
-11, -13, -13, -14, -13, -10, -8, -8, -9, -11, -11, -10, -9, -6, -3, -1, //107328
-2, -2, 0, 3, 4, 6, 7, 6, 6, 7, 9, 11, 13, 13, 12, 10, //107344
11, 10, 11, 13, 14, 14, 13, 15, 15, 14, 14, 14, 14, 13, 11, 11, //107360
11, 11, 13, 13, 13, 13, 13, 12, 11, 11, 12, 12, 13, 14, 13, 14, //107376
14, 15, 16, 18, 19, 19, 17, 15, 11, 9, 8, 7, 6, 4, 3, 2, //107392
2, 3, 4, 3, 1, 0, -1, 0, 0, 1, 2, 1, 0, -2, -2, -2, //107408
-1, 0, 0, -1, -2, -4, -5, -6, -6, -6, -9, -8, -7, -6, -6, -8, //107424
-7, -5, -4, -3, -1, -2, -1, 0, 1, 3, 4, 6, 6, 7, 7, 8, //107440
10, 13, 13, 11, 10, 10, 9, 10, 12, 12, 13, 13, 14, 14, 14, 14, //107456
14, 10, 10, 9, 7, 7, 7, 9, 10, 12, 14, 15, 15, 15, 16, 16, //107472
16, 16, 16, 15, 13, 12, 11, 10, 10, 10, 9, 9, 10, 10, 10, 9, //107488
8, 8, 8, 6, 5, 6, 6, 7, 7, 8, 7, 5, 5, 5, 5, 4, //107504
4, 3, 2, 0, 0, 2, 4, 5, 5, 5, 3, 2, 1, 1, 0, 0, //107520
0, 0, 0, 1, 2, 2, 1, 0, 0, -1, -3, -5, -7, -9, -10, -10, //107536
-10, -10, -10, -9, -8, -8, -6, -6, -6, -7, -9, -9, -8, -7, -6, -6, //107552
-6, -6, -5, -3, -2, -1, 1, 2, 3, 4, 5, 7, 7, 9, 10, 11, //107568
11, 12, 13, 9, 7, 6, 5, 4, 3, 3, 4, 5, 5, 5, 5, 5, //107584
4, 3, 2, 2, 1, 0, -1, -3, -6, -6, -6, -7, -6, -7, -7, -7, //107600
-8, -9, -11, -13, -14, -14, -16, -17, -17, -16, -17, -17, -16, -14, -14, -14, //107616
-13, -12, -11, -9, -7, -7, -6, -5, -5, -4, -3, -3, -3, -3, -3, -3, //107632
-2, -2, -2, -2, -3, -5, -7, -9, -12, -16, -17, -18, -21, -23, -25, -26, //107648
-27, -27, -28, -28, -28, -30, -31, -32, -33, -33, -33, -31, -32, -33, -34, -35, //107664
-36, -37, -37, -37, -37, -35, -35, -34, -33, -31, -30, -28, -28, -26, -22, -22, //107680
-22, -22, -21, -22, -20, -20, -22, -21, -19, -16, -14, -12, -12, -12, -12, -13, //107696
-13, -12, -11, -10, -10, -8, -8, -7, -8, -8, -6, -5, -4, -3, -2, -1, //107712
-2, -2, -2, -2, -2, -1, 1, 4, 8, 9, 10, 10, 11, 11, 12, 13, //107728
16, 19, 21, 21, 21, 21, 22, 23, 23, 23, 24, 26, 26, 27, 29, 30, //107744
28, 26, 26, 24, 23, 23, 21, 17, 16, 16, 15, 13, 13, 11, 10, 10, //107760
10, 10, 8, 6, 4, 2, 1, 0, 0, 0, 0, 1, 2, 2, 0, -2, //107776
-3, -3, -3, -3, -3, -3, -4, -6, -6, -7, -9, -11, -12, -12, -10, -9, //107792
-8, -7, -8, -8, -8, -7, -6, -5, -5, -5, -2, 0, 2, 2, 1, 1, //107808
2, 1, 1, 3, 5, 6, 10, 11, 11, 12, 14, 16, 15, 16, 17, 17, //107824
17, 14, 14, 14, 13, 12, 12, 14, 16, 17, 17, 17, 18, 17, 17, 17, //107840
17, 17, 16, 16, 16, 14, 12, 13, 13, 14, 16, 15, 12, 9, 8, 7, //107856
5, 6, 7, 6, 7, 6, 5, 5, 5, 7, 7, 7, 6, 4, 2, 0, //107872
-1, -2, -4, -5, -8, -10, -10, -10, -11, -13, -14, -15, -17, -17, -17, -17, //107888
-17, -17, -17, -15, -13, -13, -13, -13, -12, -11, -12, -10, -10, -10, -10, -10, //107904
-9, -8, -7, -6, -5, -5, -6, -7, -8, -9, -9, -7, -6, -7, -7, -5, //107920
-5, -5, -5, -6, -6, -5, -4, -1, 0, 0, 0, -1, 0, 1, 1, 0, //107936
-1, -1, 0, 1, 2, 2, 1, 0, 0, 1, 1, 2, 3, 4, 3, 1, //107952
0, 0, 0, 1, 3, 5, 8, 10, 12, 14, 15, 17, 18, 18, 17, 18, //107968
18, 18, 18, 17, 17, 17, 16, 16, 16, 15, 15, 16, 17, 17, 16, 16, //107984
15, 14, 15, 16, 18, 21, 22, 21, 20, 20, 18, 14, 12, 10, 7, 5, //108000
3, 5, 5, 4, 3, 2, 0, -2, -2, -2, -4, -6, -9, -10, -12, -12, //108016
-12, -13, -13, -12, -10, -7, -5, -3, -4, -6, -8, -9, -10, -8, -6, -5, //108032
-3, -2, -2, -1, 0, -1, -3, -3, -3, -2, -1, -1, -2, -2, -2, -3, //108048
-3, -2, 0, 4, 7, 10, 12, 12, 10, 11, 12, 12, 13, 16, 16, 14, //108064
13, 12, 11, 10, 11, 12, 13, 14, 14, 13, 13, 12, 9, 9, 10, 9, //108080
9, 11, 13, 14, 15, 16, 15, 14, 14, 15, 14, 13, 14, 13, 12, 10, //108096
8, 7, 6, 5, 4, 4, 5, 5, 6, 7, 7, 5, 5, 5, 4, 4, //108112
4, 4, 2, 0, -3, -6, -8, -12, -13, -14, -15, -15, -14, -15, -15, -15, //108128
-16, -19, -22, -23, -26, -27, -25, -25, -22, -20, -19, -20, -21, -23, -23, -23, //108144
-24, -24, -25, -25, -25, -25, -25, -23, -23, -23, -23, -25, -26, -26, -25, -26, //108160
-27, -29, -31, -32, -33, -34, -34, -32, -32, -32, -33, -35, -37, -38, -38, -38, //108176
-38, -38, -36, -34, -31, -28, -27, -25, -25, -24, -24, -24, -24, -25, -25, -26, //108192
-25, -24, -23, -21, -21, -20, -17, -16, -15, -13, -10, -7, -5, -4, -4, -5, //108208
-6, -4, -2, 0, 1, 4, 6, 8, 8, 7, 8, 8, 7, 5, 5, 4, //108224
4, 5, 6, 7, 7, 6, 8, 10, 12, 14, 14, 13, 11, 10, 10, 9, //108240
8, 8, 5, 1, -1, -1, 0, -1, -1, 1, 3, 3, 3, 6, 9, 8, //108256
8, 7, 6, 6, 4, 6, 6, 6, 6, 6, 5, 4, 3, 1, -1, 0, //108272
-1, -2, -2, -2, -1, -2, -3, -3, -4, -6, -6, -8, -6, -6, -6, -5, //108288
-5, -5, -4, -4, -3, -4, -4, -6, -7, -7, -9, -9, -8, -8, -8, -8, //108304
-7, -4, -2, 0, 1, 1, 1, -1, 1, 3, 4, 4, 3, 3, 3, 2, //108320
3, 4, 5, 11, 13, 15, 17, 19, 21, 20, 21, 23, 24, 25, 27, 29, //108336
29, 28, 26, 25, 25, 25, 25, 26, 28, 28, 27, 27, 27, 28, 28, 26, //108352
26, 26, 25, 23, 22, 22, 22, 20, 19, 20, 21, 20, 19, 19, 19, 19, //108368
18, 19, 20, 19, 18, 18, 18, 20, 21, 21, 19, 17, 15, 14, 11, 9, //108384
8, 4, 3, 2, 2, 4, 5, 4, 3, 1, -2, -3, -4, -5, -6, -6, //108400
-7, -8, -8, -8, -8, -8, -8, -8, -8, -8, -10, -12, -12, -11, -13, -14, //108416
-13, -13, -15, -16, -16, -10, -7, -9, -7, -5, -5, -6, -6, -5, -1, -2, //108432
-1, -1, 0, 2, 3, 2, 2, 3, 4, 7, 10, 9, 6, 6, 3, 3, //108448
4, 3, 4, 6, 5, 5, 5, 5, 6, 9, 9, 7, 8, 10, 12, 16, //108464
17, 17, 16, 16, 17, 17, 15, 16, 16, 14, 15, 14, 12, 13, 15, 17, //108480
20, 20, 21, 27, 27, 25, 30, 30, 28, 28, 28, 28, 27, 27, 28, 29, //108496
28, 25, 23, 23, 22, 22, 21, 18, 15, 9, 7, 7, 4, 4, 1, -2, //108512
-2, -6, -9, -9, -9, -10, -12, -11, -10, -9, -8, -10, -9, -6, -8, -7, //108528
-6, -6, -7, -7, -3, -2, -3, -3, -4, -8, -10, -10, -11, -11, -11, -12, //108544
-13, -12, -13, -14, -14, -17, -19, -19, -19, -16, -13, -13, -15, -15, -14, -16, //108560
-20, -19, -19, -20, -20, -17, -12, -11, -10, -9, -9, -9, -9, -8, -7, -6, //108576
-5, -2, -4, -4, -2, -2, -3, -1, 3, 5, 6, 7, 7, 5, 3, 3, //108592
3, 4, 7, 7, 8, 10, 10, 10, 9, 8, 7, 5, 3, 1, 1, 3, //108608
7, 9, 7, 4, 3, 1, 1, 2, 3, 4, 5, 4, 3, 1, 0, -1, //108624
-1, 0, 0, -1, -1, -1, -1, -2, -5, -7, -9, -12, -12, -11, -10, -11, //108640
-11, -13, -17, -19, -20, -21, -22, -21, -18, -17, -18, -18, -19, -21, -23, -23, //108656
-22, -22, -24, -24, -25, -26, -27, -28, -30, -33, -33, -35, -36, -35, -35, -34, //108672
-35, -37, -36, -36, -36, -36, -36, -33, -34, -36, -36, -35, -36, -37, -38, -38, //108688
-36, -34, -33, -33, -32, -34, -37, -37, -39, -40, -39, -37, -35, -31, -28, -27, //108704
-25, -24, -25, -29, -30, -30, -28, -26, -26, -20, -16, -13, -9, -6, -1, 3, //108720
6, 9, 11, 10, 12, 13, 12, 12, 12, 12, 13, 16, 19, 20, 23, 25, //108736
24, 25, 25, 25, 26, 24, 24, 24, 24, 22, 22, 25, 25, 24, 24, 22, //108752
22, 22, 23, 25, 25, 25, 23, 23, 24, 21, 16, 15, 14, 12, 11, 10, //108768
7, 0, -1, 0, 0, 2, 4, 6, 7, 10, 12, 11, 8, 6, 5, 5, //108784
6, 8, 7, 5, 4, 3, 3, 5, 4, 3, 0, -4, -5, -6, -6, -5, //108800
-5, -6, -7, -5, -4, -6, -7, -6, -6, -6, -6, -5, -2, -1, 0, 2, //108816
2, 1, 1, 2, 3, 2, 1, 0, 0, 1, 2, 4, 6, 8, 8, 4, //108832
3, 2, 1, 1, 2, 3, 4, 4, 5, 6, 6, 9, 10, 10, 11, 12, //108848
11, 13, 16, 18, 18, 16, 17, 18, 17, 15, 14, 11, 8, 5, 4, 5, //108864
6, 7, 7, 9, 11, 11, 10, 10, 10, 11, 11, 12, 15, 19, 19, 18, //108880
16, 16, 14, 12, 10, 9, 9, 9, 11, 13, 12, 11, 11, 11, 10, 10, //108896
11, 12, 12, 9, 7, 6, 5, 2, -1, -3, -3, -3, -3, -2, -2, -5, //108912
-6, -7, -10, -13, -12, -12, -13, -13, -11, -9, -8, -8, -7, -7, -9, -12, //108928
-14, -16, -16, -16, -14, -17, -20, -20, -17, -17, -17, -13, -11, -11, -13, -13, //108944
-13, -14, -17, -18, -16, -14, -13, -11, -8, -4, -1, 2, 8, 11, 13, 16, //108960
17, 20, 20, 19, 19, 19, 17, 18, 19, 21, 22, 23, 24, 25, 25, 23, //108976
21, 19, 17, 17, 16, 13, 13, 12, 12, 14, 17, 18, 19, 19, 16, 14, //108992
13, 11, 9, 9, 8, 9, 10, 10, 10, 10, 9, 10, 11, 9, 7, 3, //109008
1, 0, -2, -4, -5, -7, -9, -9, -9, -9, -9, -9, -8, -9, -9, -8, //109024
-8, -5, -4, -5, -5, -3, 2, 3, 3, 4, 5, 4, 2, 1, 0, -2, //109040
-4, -9, -11, -12, -12, -13, -12, -12, -12, -11, -11, -11, -10, -9, -10, -11, //109056
-12, -13, -14, -12, -11, -9, -7, -8, -8, -7, -6, -4, -2, 0, 1, 0, //109072
0, 0, 1, 2, 2, 1, -1, 0, 1, 3, 5, 7, 8, 9, 9, 8, //109088
8, 8, 6, 4, 4, 3, 2, 1, 1, 3, 8, 9, 8, 8, 6, 6, //109104
4, 2, 3, 3, 1, -1, -2, -2, -3, -4, -3, -1, 0, 2, 1, -1, //109120
-4, -5, -6, -9, -9, -9, -10, -11, -11, -10, -8, -8, -6, -5, -6, -6, //109136
-6, -6, -7, -8, -8, -9, -9, -9, -11, -13, -14, -13, -11, -10, -8, -9, //109152
-12, -14, -16, -18, -20, -22, -23, -24, -24, -23, -21, -22, -24, -28, -30, -32, //109168
-35, -36, -37, -37, -36, -35, -35, -33, -33, -34, -33, -32, -32, -33, -35, -36, //109184
-36, -36, -36, -36, -35, -35, -34, -31, -28, -22, -18, -15, -15, -15, -15, -18, //109200
-19, -18, -17, -17, -16, -13, -11, -11, -13, -13, -12, -12, -12, -11, -8, -6, //109216
-7, -9, -8, -5, -2, 0, 1, 2, 3, 3, 3, 6, 7, 6, 3, 2, //109232
1, -1, -2, -2, -1, 1, 2, 3, 5, 7, 9, 9, 11, 13, 14, 14, //109248
12, 11, 10, 10, 11, 12, 12, 15, 19, 22, 23, 25, 25, 24, 24, 20, //109264
17, 18, 18, 15, 15, 16, 16, 14, 15, 14, 14, 15, 13, 12, 16, 16, //109280
15, 13, 11, 11, 10, 11, 11, 11, 11, 9, 7, 7, 8, 9, 8, 6, //109296
5, 4, 3, 2, 1, 3, 4, 3, 3, 4, 3, 1, 1, 0, 0, 1, //109312
1, 1, 2, 3, 4, 4, 3, 3, 2, 3, 5, 7, 9, 8, 6, 3, //109328
3, 2, 1, 1, 2, 3, 6, 11, 13, 13, 14, 15, 16, 14, 12, 12, //109344
12, 12, 11, 12, 14, 14, 13, 13, 15, 15, 14, 15, 16, 19, 20, 19, //109360
18, 17, 16, 13, 13, 14, 14, 12, 14, 14, 14, 16, 16, 17, 23, 25, //109376
26, 27, 26, 25, 24, 24, 22, 20, 18, 15, 14, 12, 11, 9, 9, 11, //109392
9, 7, 7, 7, 5, 4, 3, 2, 0, -2, -4, -8, -8, -9, -12, -12, //109408
-10, -10, -11, -10, -9, -8, -5, -4, -4, -3, -3, -6, -8, -10, -12, -14, //109424
-14, -13, -12, -10, -9, -9, -9, -8, -9, -8, -8, -10, -9, -8, -9, -11, //109440
-12, -10, -10, -9, -7, -5, -3, -1, 2, 2, 0, 0, 0, 0, 0, 0, //109456
-1, -1, -1, 1, 0, -1, -2, -3, -3, -4, -5, -5, -6, -7, -8, -9, //109472
-9, -8, -6, -6, -3, -1, 0, 1, 3, 4, 4, 6, 8, 8, 8, 10, //109488
13, 15, 16, 18, 23, 25, 26, 26, 26, 24, 22, 22, 22, 23, 23, 23, //109504
22, 23, 23, 24, 25, 25, 24, 21, 19, 19, 19, 17, 17, 17, 15, 13, //109520
11, 11, 11, 11, 10, 8, 6, 5, 3, 3, 3, 3, 2, 0, -1, -2, //109536
-3, -6, -8, -9, -11, -13, -14, -15, -17, -16, -16, -16, -16, -16, -17, -17, //109552
-16, -16, -17, -18, -16, -14, -13, -12, -12, -10, -9, -7, -3, 0, 5, 6, //109568
6, 6, 4, 1, -3, -5, -5, -4, -3, 0, 5, 6, 7, 7, 6, 6, //109584
5, 5, 5, 3, 1, 2, 1, 1, 1, 0, -1, 0, 3, 6, 9, 12, //109600
12, 11, 10, 10, 9, 7, 6, 7, 6, 7, 7, 7, 7, 7, 6, 5, //109616
5, 4, 3, 5, 8, 8, 7, 7, 7, 6, 4, 2, 2, 0, -1, 0, //109632
1, 2, 3, 3, 2, 1, -1, -3, -2, -2, -1, -1, -4, -8, -16, -19, //109648
-21, -24, -24, -23, -22, -21, -22, -23, -23, -22, -23, -25, -27, -29, -32, -34, //109664
-36, -38, -40, -41, -40, -40, -39, -36, -34, -33, -30, -29, -29, -28, -27, -26, //109680
-27, -29, -29, -29, -28, -29, -29, -29, -31, -33, -34, -34, -34, -34, -32, -30, //109696
-27, -25, -25, -27, -28, -30, -33, -31, -30, -28, -26, -25, -23, -24, -25, -25, //109712
-25, -24, -23, -22, -21, -21, -20, -18, -19, -19, -20, -22, -21, -19, -18, -16, //109728
-13, -11, -11, -11, -10, -9, -8, -6, 1, 3, 5, 8, 10, 12, 12, 13, //109744
15, 16, 16, 15, 15, 16, 18, 18, 16, 16, 16, 15, 14, 15, 16, 17, //109760
16, 16, 18, 18, 17, 17, 16, 16, 16, 17, 20, 21, 20, 17, 15, 15, //109776
12, 11, 10, 9, 9, 7, 7, 9, 9, 7, 7, 8, 9, 10, 11, 12, //109792
11, 7, 5, 4, 3, 2, 1, 1, 1, 0, 1, 4, 8, 8, 10, 10, //109808
9, 8, 6, 5, 4, 2, 0, 0, 1, 2, 3, 3, 3, 4, 5, 6, //109824
7, 7, 5, 4, 2, -1, -2, -4, -4, -5, -6, -5, -3, -3, -2, -2, //109840
-3, -3, -1, -1, 0, 0, -2, -2, -1, -2, -2, -2, -2, 0, 3, 2, //109856
4, 6, 5, 5, 9, 9, 10, 12, 12, 10, 10, 10, 12, 15, 15, 14, //109872
15, 18, 21, 23, 27, 30, 30, 30, 32, 33, 33, 32, 30, 26, 24, 23, //109888
21, 18, 18, 19, 20, 21, 21, 23, 25, 25, 24, 23, 22, 19, 16, 13, //109904
9, 7, 6, 4, 2, 2, 4, 7, 8, 8, 6, 4, 1, -3, -6, -6, //109920
-4, -5, -8, -10, -10, -12, -13, -14, -16, -17, -17, -17, -15, -14, -15, -14, //109936
-13, -14, -15, -15, -15, -16, -16, -15, -15, -19, -21, -21, -22, -23, -23, -20, //109952
-20, -21, -21, -21, -18, -15, -15, -16, -16, -16, -17, -17, -16, -15, -13, -13, //109968
-12, -12, -11, -10, -10, -8, -4, -2, 0, 3, 2, 2, 2, 2, 1, 0, //109984
0, 1, 1, 2, 4, 6, 8, 6, 4, 4, 6, 8, 9, 11, 12, 12, //110000
13, 12, 9, 8, 8, 7, 7, 9, 13, 17, 20, 21, 22, 23, 24, 25, //110016
24, 22, 23, 23, 22, 21, 21, 21, 18, 17, 16, 15, 15, 16, 15, 14, //110032
13, 12, 9, 5, 0, -3, -4, -3, -1, -2, -2, -3, -4, -6, -8, -9, //110048
-10, -10, -10, -10, -9, -10, -10, -10, -10, -10, -10, -7, -7, -8, -8, -11, //110064
-13, -13, -13, -12, -12, -12, -11, -10, -9, -9, -12, -13, -14, -14, -13, -14, //110080
-15, -13, -10, -8, -6, -6, -4, -3, -5, -7, -7, -7, -7, -6, -4, -3, //110096
-1, 1, 2, 0, -1, -1, -1, 1, 1, 2, 3, 3, 3, 1, 2, 2, //110112
2, 2, 5, 7, 10, 11, 10, 9, 11, 11, 11, 12, 15, 16, 17, 19, //110128
19, 19, 19, 19, 21, 22, 21, 21, 21, 21, 20, 20, 20, 18, 16, 12, //110144
10, 9, 6, 5, 5, 4, 5, 5, 4, 2, 0, -2, -3, -4, -5, -6, //110160
-7, -9, -11, -11, -11, -11, -11, -12, -13, -13, -12, -14, -15, -15, -17, -18, //110176
-16, -16, -18, -21, -24, -27, -30, -30, -29, -29, -29, -26, -25, -26, -26, -26, //110192
-24, -22, -22, -21, -20, -21, -24, -26, -30, -31, -31, -32, -35, -36, -35, -33, //110208
-33, -33, -32, -31, -34, -37, -38, -37, -36, -33, -34, -35, -34, -32, -33, -32, //110224
-30, -28, -25, -21, -17, -15, -13, -13, -13, -12, -11, -10, -8, -9, -11, -12, //110240
-11, -12, -13, -13, -11, -13, -16, -16, -15, -13, -11, -8, -6, -3, -2, -3, //110256
0, 4, 7, 9, 10, 13, 16, 17, 19, 19, 20, 21, 20, 20, 21, 21, //110272
21, 18, 18, 19, 18, 18, 18, 13, 13, 12, 11, 12, 12, 13, 13, 13, //110288
14, 14, 13, 10, 10, 10, 9, 9, 11, 10, 8, 8, 8, 7, 8, 7, //110304
7, 8, 9, 10, 9, 7, 4, 3, 1, -1, -1, -1, 0, 2, 5, 7, //110320
8, 10, 13, 13, 14, 16, 19, 22, 22, 20, 17, 15, 10, 6, 1, -1, //110336
-1, 0, 2, 6, 8, 4, 3, 2, 1, 0, 0, 0, 0, 1, 3, 3, //110352
4, 4, 4, 3, 2, 2, 2, 2, 3, 6, 7, 7, 5, 2, 0, -2, //110368
-2, -1, -1, 0, 3, 5, 7, 7, 6, 5, 4, 2, 2, 4, 8, 9, //110384
7, 6, 2, -1, -1, -1, 0, 2, 4, 6, 8, 11, 11, 10, 10, 11, //110400
10, 8, 9, 9, 9, 10, 10, 8, 6, 5, 6, 8, 11, 14, 17, 19, //110416
22, 23, 23, 19, 14, 14, 13, 10, 9, 11, 15, 17, 19, 20, 19, 13, //110432
14, 14, 13, 14, 16, 13, 11, 8, 4, 1, -1, -6, -9, -8, -8, -8, //110448
-8, -10, -13, -16, -19, -22, -24, -22, -20, -19, -18, -16, -15, -17, -17, -15, //110464
-16, -18, -18, -18, -18, -20, -22, -22, -22, -23, -24, -26, -26, -23, -22, -20, //110480
-17, -14, -13, -14, -14, -14, -14, -13, -7, -4, -1, 3, 5, 7, 9, 11, //110496
12, 11, 10, 12, 14, 15, 16, 16, 16, 15, 16, 16, 15, 15, 18, 21, //110512
21, 22, 23, 21, 16, 14, 14, 13, 13, 16, 20, 22, 21, 18, 18, 16, //110528
13, 11, 9, 10, 12, 9, 9, 10, 11, 10, 8, 5, 5, 5, 4, 2, //110544
2, 5, 6, 5, 4, 4, 2, 1, 1, 3, 7, 10, 15, 17, 17, 16, //110560
13, 9, 7, 7, 9, 10, 10, 9, 8, 7, 4, 2, 0, -1, -1, -1, //110576
-1, -1, 3, 3, 1, -4, -8, -12, -19, -22, -24, -24, -22, -21, -22, -20, //110592
-18, -18, -19, -20, -21, -22, -23, -24, -25, -26, -28, -29, -29, -30, -30, -26, //110608
-23, -18, -14, -10, -9, -10, -10, -11, -11, -11, -8, -7, -7, -7, -6, -4, //110624
-3, -4, -4, -2, -2, -1, 2, 5, 7, 9, 9, 7, 4, 0, -3, -6, //110640
-6, -5, -3, 1, 4, 4, 4, 3, 2, 0, 0, 2, 2, 5, 6, 5, //110656
5, 5, 2, 2, 2, 3, 4, 5, 5, 5, 6, 5, 4, 4, 3, 1, //110672
1, 3, 4, 5, 6, 6, 5, 2, -3, -5, -7, -7, -7, -7, -4, -2, //110688
-2, -3, -5, -10, -14, -16, -18, -20, -18, -19, -20, -23, -25, -26, -26, -26, //110704
-26, -23, -20, -18, -17, -16, -18, -19, -22, -28, -30, -29, -28, -29, -30, -29, //110720
-28, -27, -28, -30, -31, -31, -31, -31, -31, -28, -26, -26, -27, -27, -26, -24, //110736
-23, -21, -19, -17, -13, -10, -10, -9, -10, -13, -13, -12, -8, -7, -6, -5, //110752
-5, -3, -3, -4, -4, -5, -5, -1, 3, 4, 3, 2, 0, -4, -6, -7, //110768
-7, -6, -6, -2, 1, 3, 6, 7, 8, 8, 8, 8, 9, 9, 7, 8, //110784
11, 12, 13, 15, 14, 13, 12, 11, 12, 15, 16, 16, 16, 16, 16, 14, //110800
15, 16, 19, 23, 25, 28, 30, 30, 28, 28, 30, 30, 26, 24, 22, 20, //110816
17, 15, 14, 14, 12, 10, 12, 14, 15, 17, 19, 19, 20, 20, 19, 17, //110832
16, 13, 12, 11, 11, 10, 9, 9, 7, 4, 5, 7, 6, 5, 6, 7, //110848
8, 9, 9, 8, 7, 6, 3, 2, 3, 3, 5, 7, 5, 5, 4, 2, //110864
1, 1, 1, -1, -1, -2, -3, -4, -3, -1, 1, 1, 1, 2, 3, 4, //110880
4, 3, 0, -2, -2, -2, -2, -3, -3, -2, -2, -1, -1, -1, 1, 2, //110896
4, 7, 8, 8, 8, 8, 7, 6, 7, 8, 8, 10, 12, 11, 11, 11, //110912
11, 12, 14, 17, 17, 16, 16, 14, 13, 15, 17, 20, 22, 23, 25, 25, //110928
25, 19, 16, 15, 11, 9, 10, 11, 10, 8, 4, 1, 2, 1, -1, -6, //110944
-11, -14, -19, -21, -22, -24, -27, -28, -28, -28, -27, -24, -22, -21, -18, -19, //110960
-21, -22, -23, -22, -21, -21, -22, -22, -22, -21, -21, -23, -25, -26, -28, -28, //110976
-27, -24, -23, -23, -19, -17, -16, -16, -16, -18, -19, -18, -17, -17, -17, -15, //110992
-15, -15, -13, -10, -8, -6, -4, -4, -6, -6, -5, -7, -7, -7, -7, -7, //111008
-5, -4, -4, -4, -4, -4, -4, -5, -6, -6, -4, -3, -1, 0, 0, 0, //111024
1, 4, 6, 8, 9, 9, 9, 13, 15, 16, 18, 19, 16, 16, 18, 20, //111040
22, 26, 30, 32, 32, 33, 34, 33, 29, 29, 28, 29, 30, 28, 28, 28, //111056
25, 23, 21, 20, 20, 18, 15, 15, 13, 13, 11, 9, 9, 8, 6, 5, //111072
6, 8, 8, 8, 5, 3, 2, 0, -3, -6, -11, -13, -14, -12, -8, -5, //111088
-4, -5, -7, -8, -9, -12, -14, -14, -11, -11, -12, -14, -16, -18, -20, -19, //111104
-16, -14, -12, -9, -5, 0, 3, 2, 0, 0, 2, 3, 7, 9, 9, 8, //111120
6, 3, 1, 0, -1, -2, -2, -1, 0, 2, 5, 5, 5, 4, 4, 3, //111136
2, 0, 0, 3, 5, 9, 11, 11, 8, 6, 5, 3, 4, 7, 8, 9, //111152
10, 11, 11, 10, 10, 12, 13, 13, 16, 21, 21, 21, 20, 17, 13, 12, //111168
11, 9, 9, 8, 5, 5, 4, 4, 5, 5, 4, 2, 2, 3, 4, 7, //111184
8, 8, 8, 7, 4, 0, -4, -5, -6, -7, -7, -6, -5, -5, -6, -8, //111200
-12, -16, -20, -21, -21, -21, -19, -19, -20, -21, -24, -25, -28, -29, -26, -24, //111216
-24, -25, -29, -32, -35, -36, -36, -34, -33, -30, -28, -26, -26, -22, -21, -22, //111232
-23, -24, -25, -24, -23, -22, -22, -20, -21, -23, -26, -28, -31, -32, -32, -30, //111248
-25, -21, -19, -18, -20, -22, -24, -26, -26, -25, -23, -19, -17, -16, -15, -14, //111264
-16, -19, -22, -22, -22, -22, -21, -18, -16, -15, -13, -13, -13, -14, -16, -14, //111280
-12, -8, -4, -2, -1, -2, -3, -3, -2, 0, 2, 6, 8, 10, 11, 13, //111296
15, 15, 14, 10, 9, 10, 12, 14, 15, 15, 15, 15, 10, 8, 8, 8, //111312
8, 12, 16, 17, 17, 16, 13, 10, 8, 8, 10, 11, 11, 12, 12, 11, //111328
11, 11, 9, 9, 9, 10, 10, 11, 15, 18, 18, 18, 17, 15, 13, 11, //111344
11, 12, 14, 19, 22, 23, 24, 21, 17, 15, 13, 14, 16, 17, 19, 18, //111360
16, 15, 13, 9, 6, 5, 4, 4, 3, 2, 4, 4, 3, 3, 2, 0, //111376
-3, -3, 1, 5, 8, 12, 11, 9, 7, 4, 2, -2, -3, -4, -7, -7, //111392
-6, -6, -7, -7, -6, -6, -9, -9, -8, -7, -6, -5, -5, -6, -7, -7, //111408
-6, -6, -1, 2, 7, 13, 16, 18, 19, 19, 17, 17, 17, 18, 19, 19, //111424
20, 21, 21, 21, 20, 19, 20, 21, 25, 27, 30, 32, 32, 30, 26, 23, //111440
20, 17, 15, 15, 15, 17, 18, 18, 18, 13, 11, 10, 6, 4, 4, 2, //111456
2, 0, -3, -3, -8, -11, -14, -17, -18, -19, -19, -17, -15, -12, -12, -13, //111472
-15, -17, -20, -21, -21, -18, -18, -19, -20, -22, -23, -25, -25, -24, -23, -23, //111488
-23, -23, -24, -24, -26, -28, -29, -32, -34, -35, -36, -34, -33, -33, -31, -31, //111504
-31, -31, -30, -28, -26, -24, -22, -18, -16, -17, -18, -18, -19, -21, -21, -21, //111520
-18, -15, -14, -10, -9, -8, -6, -6, -3, 1, 3, 6, 9, 11, 12, 11, //111536
8, 6, 6, 4, 5, 7, 8, 9, 9, 11, 12, 12, 11, 11, 9, 7, //111552
5, 5, 6, 6, 4, 2, 0, -2, -3, -4, -4, -3, -2, 1, 5, 8, //111568
14, 14, 13, 14, 15, 18, 21, 24, 28, 28, 27, 26, 26, 26, 25, 25, //111584
24, 21, 20, 19, 19, 19, 15, 12, 11, 11, 10, 11, 11, 11, 12, 12, //111600
13, 14, 13, 12, 11, 10, 10, 10, 9, 8, 7, 5, 3, 1, 0, -1, //111616
-2, -3, -4, -2, -1, -1, -2, -4, -10, -15, -17, -18, -18, -18, -17, -16, //111632
-16, -15, -14, -14, -11, -10, -9, -7, -4, -1, 0, 0, 1, 1, 1, 0, //111648
-1, -2, -3, -4, -4, -1, 0, 0, 0, -1, -1, -1, -1, 0, 1, 1, //111664
2, 2, 2, 1, 0, -2, -3, -2, -1, 0, 2, 5, 7, 9, 12, 15, //111680
18, 20, 20, 20, 19, 19, 20, 21, 21, 20, 18, 17, 17, 17, 19, 20, //111696
21, 22, 19, 19, 18, 16, 15, 13, 13, 12, 11, 9, 9, 6, 5, 5, //111712
5, 3, 2, 1, -1, -1, -1, -1, 1, 0, 0, -1, -3, -5, -7, -7, //111728
-7, -7, -8, -10, -14, -16, -17, -20, -22, -22, -24, -24, -23, -23, -21, -21, //111744
-21, -22, -24, -25, -25, -26, -28, -29, -30, -30, -30, -29, -28, -28, -30, -31, //111760
-32, -32, -32, -34, -35, -36, -37, -37, -38, -36, -35, -32, -30, -30, -28, -25, //111776
-24, -22, -22, -23, -24, -26, -29, -30, -31, -31, -29, -29, -27, -25, -23, -22, //111792
-21, -18, -14, -13, -13, -12, -13, -16, -16, -15, -13, -11, -11, -11, -12, -11, //111808
-10, -8, -6, -4, -3, -2, -2, -1, 1, 4, 7, 9, 11, 14, 14, 14, //111824
15, 17, 19, 21, 25, 26, 26, 26, 25, 25, 25, 26, 26, 27, 27, 27, //111840
26, 23, 23, 23, 22, 19, 17, 16, 15, 12, 9, 7, 6, 6, 6, 4, //111856
4, 4, 3, 4, 5, 8, 6, 7, 8, 7, 7, 8, 9, 8, 7, 7, //111872
7, 10, 10, 10, 9, 8, 7, 3, 2, 4, 4, 2, -2, -4, -5, -6, //111888
-6, -5, -1, 1, 3, 5, 5, 4, 2, 1, 2, 2, 2, 0, -2, -1, //111904
-1, -1, 1, 2, 2, 1, 0, 0, 0, -1, 0, 1, 1, 0, -1, -2, //111920
-3, -5, -5, -4, -3, -4, -3, -1, 2, 2, 1, 3, 4, 4, 5, 10, //111936
14, 18, 20, 20, 19, 17, 14, 11, 9, 10, 10, 5, 1, 0, 0, -1, //111952
-2, -2, -2, -3, -6, -5, -1, 1, 1, 1, 1, 1, 1, 0, 0, 3, //111968
3, 4, 5, 5, 6, 5, 4, 5, 7, 8, 9, 12, 17, 18, 16, 14, //111984
14, 12, 6, 6, 5, 3, 2, 2, 5, 6, 6, 7, 8, 8, 4, 1, //112000
-1, 0, 1, -1, 0, 0, 0, 0, -2, 0, 3, 2, 2, 3, 5, 3, //112016
1, 0, -3, -5, -7, -7, -7, -7, -7, -5, -1, 0, -2, -3, -3, -6, //112032
-9, -9, -8, -8, -9, -11, -12, -12, -13, -16, -16, -16, -16, -16, -16, -12, //112048
-6, -5, -5, -5, -2, 0, 1, 3, 5, 8, 10, 9, 11, 13, 14, 13, //112064
13, 15, 14, 15, 16, 16, 16, 15, 13, 12, 11, 11, 9, 12, 17, 19, //112080
20, 21, 22, 22, 21, 18, 17, 17, 16, 17, 18, 18, 18, 18, 15, 14, //112096
14, 15, 15, 15, 16, 16, 15, 16, 17, 13, 10, 9, 10, 9, 8, 9, //112112
11, 12, 13, 16, 18, 18, 17, 17, 18, 19, 20, 22, 24, 25, 25, 24, //112128
22, 21, 20, 20, 18, 18, 18, 17, 13, 9, 7, 6, 3, -1, -2, -4, //112144
-6, -8, -6, -7, -12, -16, -19, -24, -28, -29, -27, -26, -23, -21, -20, -20, //112160
-21, -22, -21, -20, -21, -21, -20, -23, -23, -23, -24, -26, -27, -28, -29, -29, //112176
-26, -25, -25, -23, -21, -22, -24, -26, -25, -26, -26, -25, -22, -21, -17, -14, //112192
-13, -11, -11, -10, -9, -8, -5, -1, 4, 7, 7, 7, 7, 6, 6, 6, //112208
6, 8, 9, 12, 11, 10, 10, 9, 8, 9, 7, 6, 6, 7, 10, 11, //112224
12, 10, 9, 8, 8, 9, 9, 9, 8, 9, 9, 7, 7, 7, 5, 2, //112240
-1, -4, -5, -4, -3, -3, -7, -9, -12, -13, -12, -10, -9, -7, -8, -10, //112256
-10, -9, -12, -15, -17, -18, -20, -21, -19, -20, -20, -20, -21, -22, -24, -26, //112272
-28, -32, -32, -31, -31, -29, -27, -26, -28, -29, -29, -30, -32, -33, -30, -29, //112288
-29, -27, -28, -30, -32, -31, -31, -32, -32, -32, -33, -33, -32, -31, -29, -28, //112304
-29, -30, -28, -25, -21, -18, -15, -12, -11, -9, -6, -3, -2, -1, 0, 3, //112320
7, 9, 10, 10, 8, 8, 7, 8, 8, 8, 9, 9, 8, 7, 4, 4, //112336
5, 2, 0, 1, 2, 2, 3, 4, 4, 4, 4, 3, 3, 3, 3, 4, //112352
6, 10, 15, 17, 18, 18, 18, 19, 20, 21, 22, 23, 21, 18, 18, 17, //112368
15, 16, 16, 13, 14, 16, 16, 16, 20, 21, 20, 20, 20, 21, 24, 23, //112384
22, 21, 22, 22, 20, 19, 17, 18, 19, 17, 18, 19, 19, 16, 14, 13, //112400
12, 7, 4, 1, -3, -7, -11, -12, -9, -7, -5, -3, -1, -2, -2, -1, //112416
1, 3, 6, 7, 7, 7, 7, 6, 5, 4, 3, 3, 5, 6, 6, 5, //112432
5, 5, 4, 2, 1, -1, -3, -4, -4, -5, -6, -7, -10, -12, -13, -14, //112448
-14, -14, -11, -9, -8, -8, -7, -5, -5, -4, -2, 0, 0, 2, 2, 3, //112464
4, 7, 7, 9, 10, 10, 10, 10, 13, 13, 14, 14, 12, 11, 13, 13, //112480
13, 13, 14, 15, 18, 19, 18, 16, 14, 11, 12, 13, 14, 14, 15, 14, //112496
13, 14, 14, 14, 12, 12, 10, 9, 8, 6, 6, 4, 2, 1, 0, -3, //112512
-6, -7, -8, -9, -9, -8, -10, -13, -14, -14, -14, -17, -17, -19, -21, -21, //112528
-19, -19, -19, -20, -20, -19, -20, -21, -24, -28, -32, -34, -32, -31, -28, -27, //112544
-27, -26, -23, -20, -17, -15, -16, -18, -21, -23, -24, -24, -24, -21, -19, -18, //112560
-17, -14, -11, -7, -5, -4, -3, -1, -2, -4, -5, -6, -7, -10, -13, -12, //112576
-11, -11, -8, -6, -4, -4, -3, -1, -2, -3, -3, -2, -1, -1, -1, 1, //112592
2, 4, 6, 7, 9, 10, 10, 11, 12, 12, 12, 11, 9, 9, 10, 11, //112608
14, 16, 18, 19, 20, 21, 29, 33, 34, 34, 35, 34, 32, 34, 36, 35, //112624
33, 32, 33, 32, 30, 29, 30, 33, 33, 33, 30, 25, 20, 17, 15, 14, //112640
15, 16, 14, 13, 12, 11, 8, 6, 3, 0, -2, -3, -3, -2, 1, 2, //112656
1, 0, -2, -4, -4, -4, -5, -6, -7, -8, -9, -11, -11, -11, -14, -14, //112672
-13, -13, -14, -14, -12, -11, -12, -11, -9, -8, -5, -3, -2, 1, 1, 0, //112688
-2, -5, -7, -9, -9, -9, -10, -9, -9, -8, -6, -5, -5, -6, -7, -7, //112704
-6, -7, -8, -7, -7, -7, -7, -7, -6, -4, -2, 0, 3, 4, 4, 4, //112720
4, 7, 6, 6, 6, 4, 1, 3, 5, 6, 6, 6, 8, 11, 12, 12, //112736
13, 14, 14, 14, 15, 15, 15, 13, 10, 10, 11, 11, 11, 11, 11, 12, //112752
14, 16, 17, 16, 14, 13, 11, 9, 9, 6, 4, 3, 2, 0, -2, -5, //112768
-7, -7, -8, -9, -9, -7, -5, -6, -7, -7, -11, -15, -18, -21, -24, -23, //112784
-21, -20, -20, -21, -22, -22, -22, -23, -23, -22, -20, -20, -21, -23, -26, -29, //112800
-30, -31, -32, -31, -29, -29, -26, -24, -21, -19, -17, -17, -15, -14, -14, -15, //112816
-16, -16, -16, -16, -17, -20, -20, -23, -26, -25, -23, -22, -21, -19, -19, -20, //112832
-21, -22, -23, -23, -23, -23, -22, -20, -15, -13, -12, -12, -13, -13, -11, -13, //112848
-15, -17, -17, -17, -18, -17, -17, -16, -14, -15, -14, -14, -12, -9, -7, -6, //112864
-4, -3, -4, -5, -7, -7, -6, -4, -1, 2, 7, 7, 8, 10, 12, 13, //112880
14, 17, 20, 21, 22, 23, 25, 24, 21, 22, 22, 20, 19, 17, 18, 18, //112896
16, 14, 12, 11, 10, 8, 8, 10, 10, 9, 9, 10, 12, 10, 8, 6, //112912
5, 3, 3, 4, 8, 11, 13, 14, 15, 15, 15, 14, 15, 15, 16, 18, //112928
19, 20, 21, 20, 19, 18, 14, 10, 9, 9, 9, 8, 8, 6, -2, -5, //112944
-5, -6, -6, -6, -7, -9, -13, -13, -12, -9, -10, -12, -11, -11, -11, -7, //112960
-4, -2, 0, 2, -1, -4, -5, -6, -9, -10, -10, -9, -7, -7, -10, -9, //112976
-7, -8, -7, -4, -4, -5, -6, -8, -9, -9, -6, -3, -1, 5, 9, 10, //112992
11, 18, 22, 23, 24, 25, 24, 22, 20, 19, 20, 19, 18, 23, 25, 24, //113008
23, 26, 24, 21, 20, 23, 26, 26, 25, 26, 26, 25, 23, 19, 17, 16, //113024
14, 14, 16, 18, 19, 20, 21, 22, 22, 20, 17, 16, 15, 13, 10, 9, //113040
7, 4, 4, 3, 2, 3, 3, 3, 3, 3, 2, 0, -2, -5, -7, -6, //113056
-6, -8, -9, -11, -15, -17, -18, -20, -21, -21, -23, -25, -24, -24, -24, -25, //113072
-29, -30, -30, -31, -31, -30, -27, -23, -23, -23, -22, -24, -24, -24, -25, -27, //113088
-28, -27, -29, -30, -28, -27, -25, -25, -25, -22, -20, -17, -12, -11, -10, -7, //113104
-7, -8, -8, -6, -3, -3, -3, 0, 4, 5, 4, 5, 8, 7, 4, 2, //113120
2, 5, 7, 9, 11, 13, 13, 11, 9, 8, 8, 8, 8, 9, 11, 11, //113136
11, 12, 12, 12, 9, 9, 10, 10, 8, 12, 15, 16, 18, 20, 21, 21, //113152
22, 23, 24, 24, 22, 21, 21, 20, 20, 20, 18, 15, 14, 13, 13, 11, //113168
9, 9, 8, 9, 11, 11, 10, 10, 10, 11, 12, 15, 15, 14, 13, 11, //113184
10, 7, 7, 7, 6, 6, 8, 8, 7, 6, 3, 0, -5, -8, -10, -12, //113200
-15, -16, -18, -21, -22, -22, -24, -28, -30, -30, -30, -29, -27, -23, -21, -20, //113216
-21, -21, -21, -19, -19, -18, -15, -12, -8, -4, -2, -1, 2, 4, 5, 5, //113232
4, 3, 1, -2, -6, -7, -8, -10, -10, -8, -7, -6, -6, -6, -4, -3, //113248
-3, -2, -1, -2, -3, -2, 0, 2, 2, 2, 3, 5, 8, 14, 18, 18, //113264
18, 17, 18, 19, 20, 21, 20, 18, 16, 16, 15, 13, 14, 15, 15, 13, //113280
14, 16, 14, 12, 11, 11, 11, 14, 16, 16, 15, 15, 15, 13, 13, 13, //113296
12, 11, 12, 12, 11, 10, 9, 7, 6, 6, 5, 3, 1, -3, -6, -5, //113312
-5, -6, -6, -9, -13, -16, -20, -23, -25, -28, -28, -28, -28, -29, -29, -28, //113328
-27, -24, -21, -17, -15, -16, -15, -14, -16, -18, -19, -21, -23, -25, -26, -25, //113344
-26, -26, -25, -25, -26, -26, -24, -25, -27, -27, -25, -27, -28, -27, -25, -24, //113360
-21, -19, -18, -18, -17, -15, -14, -14, -15, -16, -19, -21, -21, -20, -19, -19, //113376
-18, -16, -15, -15, -14, -12, -11, -12, -11, -11, -12, -12, -12, -12, -11, -10, //113392
-10, -8, -7, -7, -6, -6, -6, -3, -2, -2, -2, -2, -1, 4, 5, 6, //113408
6, 7, 7, 7, 9, 11, 12, 12, 12, 14, 14, 14, 15, 17, 17, 17, //113424
17, 16, 14, 12, 12, 12, 12, 12, 12, 12, 10, 8, 7, 4, 1, 1, //113440
2, 4, 7, 8, 8, 7, 7, 7, 7, 7, 8, 11, 12, 13, 15, 16, //113456
13, 14, 15, 15, 15, 16, 14, 11, 9, 9, 10, 10, 8, 7, 6, 3, //113472
2, 3, 4, 4, 4, 3, 3, 0, 0, 0, 0, 3, 5, 5, 6, 6, //113488
4, 1, 2, 2, 0, -2, -3, -4, -10, -10, -9, -9, -9, -9, -10, -13, //113504
-16, -17, -17, -15, -13, -11, -9, -9, -9, -5, -2, -1, 3, 6, 8, 9, //113520
12, 14, 14, 15, 16, 16, 16, 17, 21, 24, 24, 26, 27, 26, 23, 17, //113536
13, 8, 5, 6, 9, 9, 9, 9, 9, 9, 8, 6, 5, 3, 1, 1, //113552
1, 1, 1, 1, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 8, 8, //113568
6, 6, 6, 5, 4, 5, 5, 5, 7, 9, 10, 10, 8, 7, 6, 5, //113584
6, 7, 8, 7, 6, 7, 7, 5, 3, 3, 3, 3, 3, 3, 1, -2, //113600
-4, -5, -7, -9, -12, -14, -15, -16, -17, -13, -11, -10, -10, -9, -8, -11, //113616
-12, -11, -9, -9, -7, -7, -11, -16, -19, -19, -18, -17, -13, -11, -11, -10, //113632
-7, -6, -5, -4, -3, -5, -7, -8, -9, -11, -13, -9, -6, -4, -2, 1, //113648
2, 2, 4, 8, 11, 11, 12, 12, 11, 11, 12, 15, 14, 13, 13, 13, //113664
13, 15, 16, 17, 17, 15, 15, 13, 13, 14, 16, 18, 19, 19, 18, 19, //113680
19, 18, 18, 17, 16, 15, 15, 15, 14, 13, 13, 14, 15, 16, 17, 17, //113696
16, 14, 13, 10, 9, 7, 6, 4, 3, 3, 3, 2, 1, 1, -1, -1, //113712
1, 3, 5, 5, 6, 7, 8, 9, 10, 11, 9, 6, 4, 3, 3, 3, //113728
4, 4, 3, 2, 1, 0, -3, -5, -6, -9, -12, -17, -18, -20, -21, -21, //113744
-19, -15, -13, -11, -11, -11, -12, -12, -13, -15, -16, -17, -19, -20, -19, -19, //113760
-19, -17, -13, -13, -13, -12, -12, -13, -14, -13, -13, -13, -13, -10, -8, -9, //113776
-9, -9, -7, -5, -3, 0, 3, 5, 6, 4, 3, 3, 2, 2, 5, 7, //113792
9, 10, 11, 12, 13, 14, 15, 15, 14, 11, 10, 10, 9, 9, 9, 7, //113808
5, 3, 2, 1, 2, 2, 2, 2, 1, 0, 0, 2, 5, 6, 7, 7, //113824
8, 9, 9, 10, 11, 12, 12, 11, 9, 6, 3, 1, 0, -1, -1, -2, //113840
-3, -7, -8, -8, -9, -10, -12, -14, -16, -17, -17, -17, -17, -16, -15, -16, //113856
-16, -15, -16, -16, -16, -17, -18, -20, -21, -23, -24, -25, -25, -26, -29, -29, //113872
-29, -29, -30, -30, -29, -28, -28, -26, -25, -26, -27, -28, -28, -28, -29, -31, //113888
-31, -31, -32, -30, -25, -23, -22, -21, -19, -16, -13, -10, -9, -9, -9, -9, //113904
-9, -8, -6, -3, -1, 0, 0, 1, 1, -1, -1, -3, -5, -5, -4, -4, //113920
-7, -8, -8, -9, -10, -9, -8, -8, -8, -7, -6, -5, -5, -5, -5, -6, //113936
-7, -9, -10, -12, -14, -14, -13, -12, -10, -9, -6, -3, -1, 0, 0, 1, //113952
2, 4, 10, 12, 13, 15, 17, 20, 20, 21, 21, 21, 22, 24, 26, 27, //113968
24, 22, 21, 21, 23, 25, 25, 25, 26, 27, 28, 28, 28, 26, 21, 18, //113984
16, 13, 10, 9, 10, 8, 6, 5, 7, 7, 7, 9, 10, 10, 8, 6, //114000
4, 3, 2, -1, -4, -2, -2, -2, -2, -1, -1, -1, 1, 4, 3, 3, //114016
4, 6, 7, 8, 9, 9, 7, 7, 7, 7, 4, 2, 1, 1, 2, 5, //114032
5, 5, 6, 5, 3, 3, 3, -1, -4, -5, -6, -7, -8, -8, -9, -11, //114048
-12, -11, -9, -7, -4, -1, -1, -2, -2, -3, -4, -4, -5, -6, -6, -5, //114064
-4, -2, 0, 2, 4, 6, 8, 11, 12, 13, 14, 14, 13, 14, 14, 15, //114080
16, 16, 16, 17, 18, 20, 22, 23, 23, 22, 20, 18, 19, 19, 17, 15, //114096
12, 10, 10, 10, 9, 5, 4, 4, 4, 2, -2, -5, -8, -11, -11, -11, //114112
-12, -14, -16, -16, -17, -17, -12, -13, -13, -13, -14, -17, -16, -17, -19, -21, //114128
-23, -23, -25, -25, -25, -25, -26, -29, -30, -30, -30, -29, -25, -23, -23, -23, //114144
-22, -19, -17, -17, -17, -16, -16, -14, -12, -11, -9, -10, -11, -11, -9, -8, //114160
-8, -6, -4, -1, 2, 3, 4, 4, 4, 4, 3, 1, 0, -2, -11, -14, //114176
-15, -16, -16, -16, -14, -14, -13, -11, -10, -6, -1, 0, 0, 0, 1, 2, //114192
2, 3, 5, 6, 6, 7, 9, 9, 8, 9, 10, 10, 10, 9, 8, 7, //114208
5, 5, 6, 8, 11, 12, 13, 13, 15, 18, 19, 22, 24, 25, 27, 30, //114224
30, 31, 32, 32, 29, 27, 26, 25, 24, 23, 21, 21, 18, 16, 14, 13, //114240
13, 11, 9, 8, 8, 8, 7, 7, 8, 7, 6, 6, 7, 8, 8, 9, //114256
9, 9, 10, 11, 13, 15, 16, 16, 14, 14, 14, 14, 13, 11, 7, 3, //114272
1, 0, -2, -5, -4, -3, -3, -2, -1, -1, -3, -5, -8, -8, -6, -6, //114288
-7, -9, -10, -9, -9, -8, -7, -7, -7, -7, -6, -6, -5, -4, -5, -6, //114304
-6, -6, -7, -8, -9, -10, -10, -8, -4, -1, 2, 4, 5, 6, 7, 8, //114320
7, 7, 5, 4, 5, 5, 6, 9, 8, 8, 9, 10, 10, 10, 12, 13, //114336
13, 14, 15, 16, 16, 15, 15, 13, 7, 6, 6, 7, 8, 8, 7, 7, //114352
6, 4, 2, 2, 1, 0, 1, 1, 1, 0, -1, -2, -5, -7, -7, -7, //114368
-7, -6, -5, -5, -8, -8, -9, -10, -11, -12, -13, -13, -13, -13, -14, -14, //114384
-14, -15, -17, -18, -18, -17, -18, -17, -16, -16, -17, -18, -16, -16, -16, -15, //114400
-13, -15, -16, -15, -15, -15, -13, -13, -15, -18, -21, -23, -23, -23, -22, -21, //114416
-21, -19, -18, -17, -15, -13, -12, -9, -9, -10, -11, -10, -11, -17, -20, -23, //114432
-25, -25, -24, -24, -24, -24, -24, -24, -23, -22, -23, -24, -26, -26, -26, -26, //114448
-26, -25, -23, -22, -21, -19, -18, -18, -17, -15, -15, -16, -16, -13, -11, -10, //114464
-9, -7, -6, -4, -3, -3, -4, -6, -6, -4, -3, -1, -1, -2, -2, -2, //114480
-1, 0, 0, 1, 2, 3, 5, 5, 6, 7, 9, 9, 8, 8, 8, 6, //114496
6, 5, 4, 5, 6, 8, 9, 10, 10, 9, 7, 5, 4, 5, 5, 4, //114512
4, 4, 4, 5, 5, 5, 6, 8, 8, 9, 10, 13, 13, 13, 12, 11, //114528
11, 10, 10, 10, 11, 12, 13, 13, 11, 11, 10, 6, 4, 2, 2, 1, //114544
1, 0, -1, -2, -2, -1, -1, -1, 0, 0, -2, -3, -3, -3, -3, 0, //114560
1, 1, 0, 0, 0, 1, 2, 3, 4, 6, 2, -1, -3, -4, -6, -8, //114576
-10, -11, -11, -10, -10, -10, -10, -10, -10, -9, -7, -5, -5, -5, -5, -2, //114592
1, 4, 5, 5, 5, 6, 7, 7, 8, 9, 10, 10, 9, 11, 14, 15, //114608
15, 17, 19, 20, 23, 24, 24, 24, 23, 22, 22, 23, 24, 24, 23, 24, //114624
24, 26, 28, 28, 28, 28, 27, 24, 23, 23, 21, 21, 22, 20, 17, 18, //114640
19, 18, 19, 19, 19, 18, 17, 16, 13, 9, 6, 4, 0, -3, -6, -10, //114656
-13, -13, -12, -11, -9, -9, -9, -10, -12, -13, -15, -16, -18, -21, -21, -21, //114672
-22, -22, -24, -25, -26, -28, -29, -29, -29, -29, -29, -28, -26, -25, -24, -24, //114688
-24, -22, -23, -23, -22, -22, -19, -18, -18, -15, -13, -12, -10, -11, -11, -12, //114704
-13, -13, -14, -14, -13, -11, -8, -3, 0, 2, 4, 5, 6, 8, 10, 10, //114720
9, 8, 8, 6, 5, 4, 4, 5, 5, 6, 8, 10, 10, 10, 11, 12, //114736
12, 12, 11, 9, 5, 5, 4, 4, 4, 4, 2, -1, -2, -2, -2, 0, //114752
3, 5, 8, 10, 10, 11, 13, 15, 16, 17, 20, 20, 20, 19, 19, 18, //114768
17, 17, 17, 17, 18, 18, 16, 15, 15, 15, 14, 11, 8, 7, 6, 5, //114784
4, 3, 5, 7, 9, 11, 12, 12, 10, 9, 8, 8, 8, 8, 8, 8, //114800
7, 7, 5, 5, 4, 2, -1, -8, -11, -14, -16, -15, -15, -16, -18, -19, //114816
-19, -19, -18, -14, -14, -13, -12, -12, -10, -8, -6, -5, -6, -8, -7, -7, //114832
-7, -6, -5, -5, -5, -4, -2, -1, -1, 0, 0, -2, -3, -4, -5, -3, //114848
-3, -5, -6, -7, -8, -9, -9, -7, -3, 1, 5, 6, 7, 7, 7, 5, //114864
3, 3, 3, 2, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 7, 6, //114880
6, 3, 1, 2, 3, 5, 4, 4, 7, 9, 10, 12, 15, 16, 15, 12, //114896
11, 11, 8, 6, 4, 3, 4, 6, 9, 12, 13, 14, 14, 10, 8, 6, //114912
4, 4, 3, 0, -2, -3, -4, -5, -5, -4, -4, -3, -1, -1, -4, -6, //114928
-8, -9, -12, -13, -13, -14, -13, -13, -13, -11, -11, -11, -10, -9, -9, -9, //114944
-9, -10, -10, -10, -12, -13, -13, -14, -16, -17, -17, -18, -18, -18, -18, -16, //114960
-16, -16, -16, -17, -17, -17, -21, -23, -24, -25, -28, -30, -29, -28, -28, -30, //114976
-30, -25, -25, -25, -24, -21, -18, -19, -18, -18, -19, -21, -26, -26, -25, -23, //114992
-20, -17, -13, -11, -8, -5, -5, -6, -7, -7, -8, -8, -6, -1, -1, -2, //115008
-2, -1, 0, 3, 5, 7, 10, 12, 12, 8, 6, 5, 6, 6, 6, 8, //115024
8, 5, 2, 2, 7, 8, 6, 6, 7, 9, 8, 6, 6, 7, 6, 1, //115040
0, 2, 3, 2, 1, 0, 2, 2, 1, 2, 5, 8, 7, 5, 3, 1, //115056
-1, 0, 1, 6, 13, 15, 16, 15, 14, 14, 12, 12, 17, 18, 18, 19, //115072
19, 19, 19, 20, 20, 19, 16, 12, 10, 9, 7, 4, 4, 2, 2, 3, //115088
2, 3, 0, -3, -3, -2, -2, -3, -4, -3, -3, -3, 0, 5, 6, 3, //115104
-1, -1, 1, 2, -1, -4, -5, -8, -11, -17, -17, -15, -11, -8, -11, -10, //115120
-6, -2, -1, 0, 6, 7, 6, 3, 0, 2, 3, 3, 3, 3, 3, 4, //115136
8, 8, 7, 8, 10, 10, 8, 8, 12, 12, 9, 6, 6, 6, 3, 1, //115152
6, 6, 4, 2, 1, 1, -1, 2, 4, 5, 6, 5, 4, 3, 3, 3, //115168
2, 0, -1, 0, 1, 1, 4, 7, 6, 5, 2, 2, 4, 8, 8, 8, //115184
9, 8, 4, 3, 3, 5, 6, 6, 6, 8, 8, 7, 5, 6, 7, 7, //115200
6, 6, 3, -2, -3, -5, -7, -6, -5, -8, -9, -9, -8, -4, 0, -2, //115216
-6, -8, -10, -10, -10, -12, -15, -18, -23, -26, -22, -20, -19, -17, -17, -16, //115232
-18, -19, -19, -19, -16, -13, -11, -12, -14, -15, -17, -17, -16, -14, -11, -10, //115248
-14, -16, -16, -16, -15, -13, -12, -14, -14, -14, -13, -9, -4, -1, 1, 0, //115264
1, 7, 9, 10, 12, 12, 11, 7, 7, 7, 7, 7, 5, 3, 3, 3, //115280
4, 6, 9, 13, 15, 15, 16, 17, 18, 18, 19, 21, 22, 22, 21, 20, //115296
19, 18, 19, 23, 24, 25, 27, 29, 29, 29, 31, 32, 29, 27, 28, 30, //115312
28, 25, 24, 22, 17, 15, 14, 16, 17, 15, 12, 11, 10, 8, 7, 5, //115328
5, 6, 7, 7, 7, 9, 8, 7, 6, 5, 8, 10, 10, 9, 6, 6, //115344
4, 3, 4, 5, 5, 4, 0, -4, -8, -8, -8, -11, -14, -16, -18, -18, //115360
-18, -18, -18, -20, -21, -21, -20, -16, -16, -16, -16, -16, -15, -12, -12, -11, //115376
-11, -11, -12, -14, -13, -14, -15, -16, -17, -16, -17, -20, -23, -23, -21, -21, //115392
-21, -18, -16, -15, -15, -13, -10, -9, -9, -8, -6, -4, 0, 4, 6, 6, //115408
6, 5, 4, 5, 6, 7, 5, 5, 6, 7, 9, 11, 13, 14, 14, 14, //115424
13, 13, 14, 16, 16, 13, 13, 15, 15, 14, 14, 14, 14, 15, 16, 16, //115440
17, 18, 16, 13, 10, 8, 5, 4, 3, 3, 5, 7, 4, 3, 3, 3, //115456
3, 1, -1, -3, -4, -4, -7, -10, -12, -14, -14, -13, -14, -15, -17, -20, //115472
-21, -21, -20, -22, -22, -24, -25, -25, -24, -22, -21, -21, -21, -21, -20, -20, //115488
-21, -22, -22, -23, -25, -26, -26, -24, -22, -23, -24, -24, -23, -24, -25, -25, //115504
-25, -24, -24, -24, -24, -22, -21, -20, -21, -23, -22, -21, -22, -23, -23, -22, //115520
-23, -23, -22, -20, -18, -17, -14, -13, -13, -9, -7, -6, -5, -4, -4, -4, //115536
-4, -4, -5, -5, -6, -6, -4, -5, -5, -6, -7, -7, -7, -6, -6, -5, //115552
-3, -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, //115568
1, 1, 1, 1, -1, -3, -2, -1, 1, 5, 7, 8, 9, 10, 13, 13, //115584
15, 16, 16, 16, 15, 14, 13, 12, 12, 7, 7, 8, 7, 8, 8, 8, //115600
11, 13, 14, 14, 15, 19, 18, 20, 21, 19, 17, 13, 10, 9, 8, 7, //115616
7, 8, 8, 8, 8, 6, 7, 9, 9, 9, 9, 6, 5, 5, 6, 7, //115632
8, 8, 7, 6, 7, 7, 5, 9, 13, 14, 15, 16, 13, 9, 8, 9, //115648
7, 5, 5, 4, 4, 4, 4, 4, 0, -3, -4, -4, -7, -8, -8, -9, //115664
-10, -10, -9, -7, -7, -7, -8, -8, -8, -7, -7, -7, -7, -6, -6, -7, //115680
-7, -7, -4, -3, -5, -4, -2, -2, -4, -2, -2, -2, 0, 0, 0, 3, //115696
5, 7, 8, 9, 9, 13, 13, 12, 12, 12, 12, 13, 15, 16, 17, 20, //115712
19, 18, 18, 19, 19, 17, 17, 19, 21, 21, 20, 21, 21, 20, 20, 19, //115728
17, 15, 14, 12, 10, 10, 9, 6, 4, 2, 1, 0, -1, -3, -5, -6, //115744
-9, -9, -9, -10, -10, -10, -10, -11, -15, -16, -17, -17, -17, -19, -20, -22, //115760
-25, -27, -28, -28, -27, -27, -27, -27, -27, -26, -25, -25, -25, -25, -25, -24, //115776
-22, -19, -17, -15, -11, -10, -11, -12, -11, -9, -9, -10, -10, -7, -5, -3, //115792
-2, 0, 2, 3, 3, -1, -2, -3, -2, 1, 2, 3, 2, 0, -1, -3, //115808
-5, -4, -2, -1, 0, 0, 1, 3, 6, 7, 7, 8, 10, 8, 8, 9, //115824
11, 12, 13, 13, 13, 13, 14, 15, 14, 15, 17, 17, 17, 18, 19, 21, //115840
23, 24, 24, 22, 19, 19, 20, 21, 22, 24, 24, 23, 23, 23, 23, 23, //115856
23, 22, 19, 18, 19, 18, 18, 18, 17, 16, 16, 16, 14, 13, 14, 14, //115872
12, 11, 10, 7, 3, 2, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, //115888
1, 0, 0, -1, -1, 1, 0, 0, 0, 1, 1, 1, 1, -3, -7, -9, //115904
-12, -12, -14, -15, -16, -18, -21, -23, -25, -27, -28, -28, -25, -23, -22, -22, //115920
-20, -20, -19, -17, -17, -17, -16, -15, -15, -14, -11, -9, -9, -7, -8, -8, //115936
-7, -6, -5, -3, 0, 1, 2, 2, 3, 3, 3, 4, 5, 5, 1, -1, //115952
-1, -2, -4, -4, -2, -1, 0, 1, 2, 5, 6, 8, 10, 11, 12, 13, //115968
12, 11, 11, 11, 10, 9, 9, 10, 10, 9, 7, 5, 3, 1, 2, 2, //115984
2, 2, 2, 1, 0, -1, -3, -2, -1, -1, -1, 1, 1, -1, -1, 0, //116000
0, 0, 0, -1, -3, -4, -6, -6, -6, -6, -7, -7, -7, -8, -8, -7, //116016
-8, -11, -12, -13, -13, -15, -17, -18, -18, -19, -19, -17, -17, -16, -17, -18, //116032
-18, -16, -17, -19, -20, -21, -22, -24, -26, -26, -26, -26, -25, -25, -26, -26, //116048
-27, -26, -24, -23, -23, -23, -23, -24, -27, -27, -26, -25, -24, -25, -28, -29, //116064
-31, -32, -32, -32, -29, -27, -26, -22, -18, -15, -15, -13, -13, -15, -16, -16, //116080
-13, -13, -14, -14, -14, -12, -10, -8, -8, -8, -6, -4, -6, -7, -6, -4, //116096
-4, -4, -3, -4, -7, -8, -7, -5, -3, -1, 2, 4, 7, 8, 8, 9, //116112
9, 9, 8, 9, 9, 8, 8, 8, 8, 10, 12, 15, 16, 19, 23, 25, //116128
26, 23, 21, 19, 17, 15, 13, 11, 9, 8, 9, 10, 12, 14, 15, 15, //116144
14, 12, 13, 14, 12, 11, 11, 12, 12, 10, 8, 7, 8, 9, 11, 12, //116160
13, 15, 17, 17, 18, 17, 15, 14, 14, 12, 10, 8, 6, 3, 2, 1, //116176
1, 0, 0, 0, -1, -4, -3, -1, 0, 1, 1, -1, -3, -5, -6, -7, //116192
-9, -8, -7, -7, -8, -7, -3, -3, -5, -4, -1, -1, -3, -3, -4, -7, //116208
-10, -12, -14, -13, -13, -14, -15, -14, -13, -12, -11, -9, -7, -7, -5, -5, //116224
-5, -5, -5, -3, -1, 0, 3, 5, 7, 10, 12, 12, 12, 15, 13, 12, //116240
14, 16, 18, 20, 23, 24, 25, 27, 28, 27, 29, 30, 29, 27, 28, 28, //116256
28, 29, 29, 29, 27, 24, 23, 22, 22, 20, 18, 19, 20, 20, 21, 22, //116272
24, 23, 22, 23, 24, 24, 22, 21, 20, 20, 20, 16, 12, 8, 4, -2, //116288
-6, -9, -11, -13, -17, -20, -23, -23, -26, -28, -28, -29, -30, -30, -31, -32, //116304
-32, -31, -30, -31, -31, -31, -32, -36, -37, -38, -38, -39, -41, -42, -42, -40, //116320
-40, -40, -39, -37, -36, -36, -36, -34, -32, -31, -30, -27, -24, -21, -16, -14, //116336
-13, -11, -9, -9, -10, -10, -10, -10, -7, -4, -3, -2, -1, 1, 1, 4, //116352
6, 7, 9, 11, 11, 14, 15, 14, 13, 15, 18, 17, 16, 15, 15, 15, //116368
16, 19, 22, 24, 24, 24, 23, 24, 24, 22, 21, 18, 16, 14, 11, 10, //116384
10, 6, 5, 7, 8, 8, 6, 6, 7, 7, 7, 8, 9, 10, 9, 10, //116400
13, 15, 16, 17, 18, 19, 19, 20, 19, 19, 19, 18, 19, 19, 18, 19, //116416
19, 20, 20, 18, 17, 16, 16, 16, 12, 11, 11, 10, 7, 7, 7, 7, //116432
6, 5, 4, 3, -1, -4, -6, -10, -13, -15, -15, -16, -16, -15, -13, -13, //116448
-12, -11, -10, -9, -9, -10, -11, -11, -11, -12, -11, -11, -12, -12, -12, -12, //116464
-12, -12, -13, -15, -16, -16, -17, -16, -15, -12, -9, -7, -6, -8, -9, -10, //116480
-11, -12, -13, -13, -14, -15, -14, -10, -8, -6, -5, -5, -6, -6, -6, -6, //116496
-5, -4, -4, -4, -3, -3, -3, -2, -1, 1, 2, 2, 2, 2, 1, 1, //116512
2, 3, 5, 7, 9, 10, 11, 13, 16, 20, 22, 23, 24, 24, 20, 17, //116528
18, 19, 20, 20, 20, 22, 23, 23, 23, 24, 25, 25, 25, 24, 25, 25, //116544
23, 22, 23, 25, 27, 25, 26, 26, 24, 23, 21, 20, 19, 16, 13, 11, //116560
7, 5, 3, 2, 2, 2, 1, 0, 0, -1, -2, -5, -8, -11, -13, -16, //116576
-17, -19, -20, -19, -19, -19, -19, -17, -16, -17, -18, -18, -17, -19, -20, -21, //116592
-22, -25, -30, -32, -34, -35, -35, -34, -33, -30, -29, -29, -27, -24, -23, -23, //116608
-22, -21, -22, -24, -26, -28, -30, -31, -31, -33, -34, -34, -32, -32, -31, -29, //116624
-28, -27, -27, -27, -26, -26, -25, -25, -25, -25, -24, -23, -22, -19, -17, -15, //116640
-12, -10, -7, -5, -5, -2, -1, -1, 0, 1, 3, 4, 5, 5, 5, 6, //116656
7, 6, 6, 7, 7, 5, 2, 0, 1, 2, 3, 5, 8, 8, 9, 11, //116672
12, 13, 13, 13, 12, 11, 8, 6, 7, 7, 8, 10, 10, 9, 9, 9, //116688
10, 11, 11, 11, 10, 9, 7, 6, 6, 5, 4, 3, 1, 2, 5, 7, //116704
10, 13, 15, 15, 16, 16, 16, 17, 17, 17, 17, 17, 16, 14, 14, 13, //116720
13, 13, 10, 7, 4, 1, -1, -1, 0, -1, -2, -2, -4, -5, -4, -3, //116736
-5, -5, -4, -5, -8, -10, -9, -10, -12, -14, -14, -13, -13, -12, -11, -10, //116752
-9, -7, -7, -7, -7, -6, -7, -7, -6, -7, -8, -7, -7, -8, -9, -8, //116768
-8, -10, -11, -10, -9, -10, -13, -10, -6, -4, -3, -1, 1, 2, 3, 5, //116784
6, 7, 9, 13, 15, 15, 15, 14, 14, 12, 11, 11, 10, 8, 7, 8, //116800
9, 10, 11, 13, 13, 14, 14, 14, 15, 14, 12, 11, 10, 7, 5, 0, //116816
-2, -1, -1, -2, -2, 2, 3, 3, 4, 6, 7, 7, 7, 6, 6, 7, //116832
6, 5, 5, 4, 3, 3, 3, 2, 2, 3, 3, 1, 0, -2, -2, -2, //116848
-4, -6, -6, -7, -9, -9, -7, -8, -7, -4, -2, -1, 5, 6, 5, 6, //116864
6, 4, 1, -2, -4, -6, -9, -9, -11, -14, -16, -15, -15, -14, -14, -14, //116880
-14, -14, -14, -12, -10, -11, -12, -11, -11, -10, -11, -11, -9, -7, -7, -7, //116896
-8, -9, -12, -10, -9, -11, -12, -13, -14, -15, -15, -15, -15, -14, -12, -11, //116912
-10, -7, -8, -9, -7, -7, -6, -4, -3, -1, 0, 0, -2, -3, -2, -1, //116928
1, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2, 5, 8, 10, 14, 17, //116944
20, 22, 22, 22, 23, 23, 21, 21, 20, 19, 18, 17, 20, 21, 22, 22, //116960
21, 21, 20, 20, 22, 23, 26, 27, 27, 27, 26, 25, 25, 24, 24, 24, //116976
25, 25, 25, 23, 24, 24, 25, 27, 26, 27, 26, 24, 24, 24, 22, 19, //116992
18, 17, 14, 12, 11, 9, 6, 5, 3, 0, -1, -1, -1, 0, 1, 0, //117008
-2, -3, -4, -6, -9, -12, -15, -15, -16, -17, -17, -18, -18, -18, -19, -19, //117024
-16, -15, -14, -13, -11, -11, -15, -16, -17, -20, -21, -22, -22, -24, -25, -24, //117040
-23, -20, -19, -18, -16, -13, -11, -10, -9, -9, -9, -6, -4, -3, -1, 1, //117056
1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 5, 5, //117072
6, 7, 9, 11, 10, 10, 10, 8, 8, 9, 9, 9, 10, 11, 11, 13, //117088
13, 14, 14, 13, 10, 9, 8, 7, 7, 6, 4, 2, 1, 0, -1, -2, //117104
-2, -2, -3, -5, -7, -8, -8, -9, -10, -12, -15, -16, -16, -17, -17, -17, //117120
-20, -21, -21, -21, -21, -20, -22, -25, -26, -26, -27, -27, -25, -23, -23, -20, //117136
-17, -16, -15, -14, -15, -16, -16, -16, -17, -19, -21, -22, -22, -22, -23, -23, //117152
-23, -24, -24, -21, -17, -13, -10, -7, -7, -9, -10, -11, -12, -11, -11, -10, //117168
-9, -8, -6, -4, -2, -1, 0, 1, 0, -1, -3, -6, -7, -8, -8, -6, //117184
-5, -4, -4, -2, -1, 1, 3, 4, 6, 7, 6, 6, 6, 2, -1, -1, //117200
-3, -4, -3, -2, -1, 1, 3, 6, 7, 8, 10, 10, 10, 9, 7, 5, //117216
2, 0, -1, -1, -1, -1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, //117232
1, 1, 4, 6, 8, 11, 13, 15, 16, 18, 18, 18, 16, 17, 17, 17, //117248
17, 16, 15, 12, 10, 10, 11, 11, 10, 11, 13, 14, 14, 15, 14, 12, //117264
11, 11, 11, 10, 7, 5, 2, 0, 1, 0, -1, -2, -3, -5, -6, -4, //117280
-2, -1, 2, 1, -3, -3, -4, -4, -4, -4, -3, -4, -4, -4, -5, -4, //117296
-4, -4, -4, -3, -1, -3, -4, -3, -4, -5, -6, -6, -8, -8, -7, -6, //117312
-7, -9, -10, -10, -10, -8, -7, -6, -7, -9, -10, -10, -8, -8, -8, -8, //117328
-8, -6, -6, -5, -5, -5, -5, -6, -7, -7, -4, -4, -5, -3, -3, -3, //117344
-2, -1, 0, 0, 1, 2, 4, 8, 10, 12, 12, 10, 11, 12, 14, 14, //117360
15, 15, 14, 15, 15, 16, 17, 17, 18, 17, 16, 16, 16, 17, 17, 17, //117376
16, 14, 15, 16, 15, 14, 14, 14, 13, 11, 12, 13, 12, 12, 12, 7, //117392
5, 4, 3, 1, 1, 1, 0, 0, 0, -1, -3, -3, -5, -6, -7, -10, //117408
-15, -17, -18, -19, -19, -18, -19, -20, -20, -20, -21, -22, -24, -25, -24, -25, //117424
-26, -29, -30, -30, -31, -30, -28, -25, -26, -26, -22, -19, -18, -14, -14, -16, //117440
-16, -16, -16, -17, -16, -16, -17, -16, -12, -10, -9, -10, -11, -11, -12, -13, //117456
-12, -9, -9, -10, -9, -8, -6, -3, 0, 3, 5, 6, 6, 5, 6, 6, //117472
7, 9, 10, 10, 9, 8, 7, 9, 12, 12, 12, 11, 12, 13, 14, 13, //117488
14, 15, 16, 17, 18, 17, 16, 17, 17, 17, 17, 18, 19, 21, 23, 25, //117504
28, 28, 28, 28, 29, 30, 34, 35, 35, 33, 30, 27, 25, 25, 25, 26, //117520
27, 25, 23, 23, 24, 24, 24, 23, 24, 24, 22, 20, 19, 19, 18, 17, //117536
18, 18, 17, 14, 12, 11, 9, 7, 6, 5, 4, 4, 4, 4, 4, 5, //117552
4, 3, 4, 4, 2, 0, -1, -2, -4, -5, -5, -6, -6, -7, -9, -11, //117568
-12, -13, -14, -14, -14, -16, -17, -18, -19, -19, -19, -19, -19, -20, -21, -22, //117584
-23, -23, -22, -19, -15, -11, -9, -7, -6, -4, -2, -1, -1, 0, 1, 2, //117600
2, 4, 5, 4, 5, 5, 4, 5, 7, 7, 7, 8, 8, 8, 10, 11, //117616
12, 13, 13, 13, 12, 13, 15, 14, 16, 17, 17, 17, 17, 16, 15, 14, //117632
14, 14, 12, 11, 11, 10, 8, 8, 8, 8, 8, 9, 9, 7, 6, 4, //117648
3, 3, 0, -1, 0, 0, 1, 2, 3, 3, 2, 1, -2, -3, -4, -3, //117664
-4, -8, -10, -10, -14, -14, -13, -13, -14, -16, -17, -17, -17, -17, -15, -16, //117680
-16, -17, -18, -18, -18, -18, -19, -22, -24, -26, -27, -26, -27, -26, -27, -28, //117696
-28, -26, -26, -25, -24, -25, -27, -26, -25, -24, -22, -21, -19, -21, -22, -22, //117712
-23, -24, -26, -25, -24, -22, -21, -21, -20, -19, -18, -16, -15, -15, -16, -16, //117728
-16, -16, -15, -11, -11, -12, -13, -13, -14, -14, -12, -10, -11, -11, -9, -9, //117744
-8, -6, -6, -4, -2, -1, 0, 2, 3, 4, 4, 2, 1, 1, 1, 0, //117760
1, 2, 3, 3, 2, 3, 2, 1, 2, 2, 0, -1, -1, -2, -2, 0, //117776
1, 1, 2, 2, 2, 3, 5, 7, 8, 9, 11, 13, 14, 16, 17, 17, //117792
17, 16, 14, 12, 11, 9, 10, 10, 9, 10, 10, 8, 8, 8, 7, 6, //117808
5, 3, 4, 6, 8, 11, 12, 14, 15, 17, 17, 15, 15, 15, 16, 15, //117824
12, 11, 11, 11, 12, 13, 13, 12, 13, 12, 10, 11, 15, 18, 16, 13, //117840
12, 12, 10, 8, 7, 6, 5, 6, 6, 6, 8, 10, 9, 9, 9, 9, //117856
7, 7, 9, 9, 8, 6, 6, 6, 5, 4, 5, 5, 5, 5, 6, 5, //117872
5, 7, 6, 6, 7, 8, 3, -2, -5, -8, -10, -10, -9, -9, -9, -9, //117888
-7, -6, -6, -4, -1, -2, -5, -4, -5, -7, -7, -7, -6, -5, -5, -6, //117904
-5, -3, 0, -1, -4, -4, -2, -1, 1, 0, -1, -2, -4, -6, -5, -3, //117920
-1, 0, 0, -2, -2, 1, 5, 8, 10, 10, 10, 11, 12, 13, 15, 16, //117936
15, 14, 13, 13, 11, 13, 15, 16, 16, 18, 19, 17, 17, 17, 16, 14, //117952
12, 9, 5, 1, -1, -4, -7, -7, -6, -6, -6, -8, -9, -10, -11, -12, //117968
-12, -13, -15, -19, -21, -21, -23, -24, -23, -21, -20, -18, -18, -17, -18, -19, //117984
-21, -23, -25, -27, -28, -29, -31, -32, -31, -33, -34, -33, -29, -30, -30, -28, //118000
-27, -27, -22, -19, -18, -16, -14, -14, -13, -13, -13, -13, -12, -11, -11, -9, //118016
-8, -6, -3, -1, 1, 1, 0, 0, 0, 3, 4, 2, 3, 6, 7, 8, //118032
9, 9, 8, 8, 9, 9, 9, 9, 9, 9, 8, 7, 7, 8, 8, 7, //118048
8, 8, 7, 7, 8, 8, 9, 9, 8, 7, 6, 7, 9, 10, 10, 11, //118064
14, 16, 18, 20, 23, 23, 24, 25, 25, 23, 21, 21, 21, 20, 21, 22, //118080
23, 24, 26, 30, 31, 31, 32, 31, 30, 27, 23, 20, 16, 13, 11, 10, //118096
10, 8, 9, 10, 10, 11, 13, 13, 12, 11, 10, 9, 7, 7, 7, 4, //118112
-1, -4, -6, -9, -10, -10, -10, -11, -12, -13, -13, -13, -12, -12, -13, -14, //118128
-14, -13, -13, -16, -16, -17, -18, -19, -21, -23, -25, -24, -24, -24, -22, -20, //118144
-19, -19, -19, -20, -20, -19, -20, -19, -19, -19, -16, -13, -11, -10, -10, -10, //118160
-7, -5, -4, -2, 1, 2, 1, 3, 4, 4, 4, 5, 8, 11, 13, 13, //118176
14, 15, 15, 15, 14, 12, 12, 10, 11, 13, 15, 18, 20, 22, 23, 25, //118192
27, 30, 31, 30, 29, 28, 26, 25, 23, 23, 24, 24, 24, 23, 23, 24, //118208
25, 25, 25, 21, 20, 20, 20, 19, 20, 20, 18, 17, 15, 13, 12, 11, //118224
10, 10, 9, 7, 5, 3, 1, -1, -1, -1, -5, -8, -8, -9, -12, -13, //118240
-14, -16, -16, -16, -17, -17, -17, -17, -17, -17, -17, -15, -15, -15, -16, -16, //118256
-15, -16, -15, -14, -16, -16, -14, -15, -17, -19, -19, -20, -27, -29, -30, -29, //118272
-26, -24, -22, -19, -18, -18, -18, -18, -17, -17, -18, -19, -20, -18, -16, -16, //118288
-16, -14, -14, -14, -15, -15, -15, -16, -17, -18, -20, -21, -21, -21, -22, -24, //118304
-24, -24, -24, -23, -22, -21, -19, -17, -14, -9, -8, -9, -9, -7, -7, -9, //118320
-7, -5, -6, -6, -5, -4, -3, -1, 1, 1, 3, 5, 4, 3, 1, -1, //118336
-2, -3, -5, -5, -5, -7, -8, -8, -8, -7, -7, -7, -6, -4, -2, -2, //118352
-2, -2, -2, -2, -2, 0, 1, 1, 0, -1, -1, -1, 2, 2, 1, 2, //118368
2, 2, 4, 6, 6, 5, 5, 6, 4, 3, 3, 2, 2, 2, 1, -1, //118384
-2, -2, 0, 4, 7, 10, 12, 12, 10, 8, 8, 10, 11, 12, 11, 10, //118400
11, 11, 8, 7, 7, 4, 0, -2, -4, -8, -10, -9, -10, -10, -10, -9, //118416
-6, -5, -4, -3, -2, -4, -7, -7, -8, -9, -9, -7, -3, -4, -5, -5, //118432
-5, -5, -5, -4, -3, -1, -1, -3, -3, -3, -3, -2, -3, -3, -3, -4, //118448
-5, -7, -6, -6, -6, -4, -3, -2, 0, 1, 2, 4, 5, 8, 9, 10, //118464
13, 14, 14, 14, 16, 17, 20, 19, 18, 19, 19, 18, 18, 17, 16, 15, //118480
13, 11, 11, 10, 8, 7, 6, 6, 9, 10, 11, 11, 11, 9, 8, 8, //118496
7, 4, 3, 2, 0, 0, 1, 1, 1, 3, 3, 3, 3, 0, 0, 2, //118512
2, 2, 1, 1, 0, 0, 1, 0, 0, 2, 3, 4, 4, 3, 3, 3, //118528
3, 2, 1, 1, 1, 2, 2, 2, 1, -1, -2, -1, -1, -3, -5, -5, //118544
-6, -6, -4, -1, 0, -1, 0, 1, 3, 5, 5, 4, 3, 3, 2, 2, //118560
2, 1, -1, 0, -1, -1, -1, -1, -2, -4, -6, -7, -6, -3, -2, -2, //118576
-1, 0, 0, -1, -2, -2, -1, -1, 0, 1, 0, -2, -3, -3, -2, 1, //118592
3, 6, 8, 9, 10, 11, 13, 13, 12, 11, 12, 13, 14, 14, 13, 12, //118608
11, 12, 13, 13, 13, 12, 11, 10, 11, 12, 13, 13, 14, 16, 19, 22, //118624
27, 29, 30, 32, 33, 34, 34, 34, 31, 28, 27, 24, 23, 23, 24, 24, //118640
24, 24, 25, 26, 23, 21, 19, 17, 16, 16, 15, 12, 9, 8, 6, 5, //118656
5, 3, 4, 5, 5, 5, 4, 0, -1, 0, 0, 0, -1, -1, -1, -3, //118672
-4, -3, -3, -6, -5, -5, -7, -10, -11, -15, -16, -16, -17, -18, -18, -16, //118688
-16, -16, -14, -13, -14, -14, -14, -14, -15, -16, -16, -16, -17, -20, -20, -23, //118704
-25, -26, -28, -30, -32, -30, -28, -27, -26, -26, -26, -26, -25, -22, -21, -21, //118720
-19, -19, -18, -19, -20, -20, -20, -21, -21, -19, -18, -20, -19, -18, -15, -12, //118736
-10, -5, -2, -1, 2, 4, 5, 4, 2, 1, -1, -3, -4, -6, -8, -8, //118752
-7, -7, -7, -6, -6, -6, -6, -4, -2, -2, -1, -1, -3, -2, -1, -3, //118768
-3, -3, -3, -1, 1, 3, 6, 7, 9, 9, 8, 7, 6, 6, 7, 6, //118784
5, 6, 7, 7, 7, 8, 8, 7, 6, 5, 3, 1, -3, -6, -8, -11, //118800
-10, -9, -9, -9, -9, -8, -6, -4, -1, 1, 4, 3, 1, -1, -4, -5, //118816
-6, -7, -8, -10, -12, -13, -14, -14, -14, -13, -13, -12, -13, -13, -12, -11, //118832
-11, -8, -6, -5, -2, 0, 1, 4, 5, 6, 6, 7, 8, 9, 9, 8, //118848
7, 6, 5, 5, 6, 8, 9, 9, 8, 9, 10, 10, 8, 6, 4, 2, //118864
2, 3, 3, 1, 0, 0, -1, -2, -3, -4, -5, -5, -5, -6, -5, -4, //118880
-2, 0, 1, 3, 5, 7, 7, 5, 5, 6, 7, 7, 5, 6, 6, 5, //118896
5, 5, 4, 2, 2, 2, 0, 0, 0, 0, 0, 3, 4, 4, 4, 5, //118912
4, 4, 5, 5, 5, 6, 7, 8, 10, 12, 12, 13, 13, 13, 14, 14, //118928
14, 14, 14, 13, 12, 12, 9, 6, 6, 5, 4, 2, 2, 1, 0, 1, //118944
0, 0, 4, 7, 9, 9, 9, 9, 7, 7, 8, 9, 8, 7, 7, 5, //118960
3, 2, 2, 0, 0, 0, -1, -2, -3, -7, -7, -8, -10, -10, -10, -12, //118976
-12, -11, -11, -10, -6, -6, -4, -2, -3, -3, -1, -1, -2, -2, 0, 2, //118992
2, 1, 2, 5, 4, 1, 2, 3, 2, 2, 2, -1, -3, -4, -5, -8, //119008
-8, -9, -9, -9, -8, -7, -9, -7, -6, -5, -4, -5, -10, -13, -16, -18, //119024
-17, -16, -17, -16, -16, -16, -16, -13, -12, -11, -10, -9, -9, -8, -7, -8, //119040
-8, -8, -9, -10, -11, -11, -10, -8, -6, -4, -4, -3, -2, -2, 0, 3, //119056
4, 5, 5, 2, 1, 2, 2, 3, 3, 3, 4, 3, 3, 4, 5, 6, //119072
6, 7, 9, 9, 8, 8, 8, 8, 8, 8, 6, 5, 7, 7, 6, 5, //119088
5, 5, 4, 5, 5, 1, 0, -1, -4, -4, -4, -4, -5, -5, -4, -4, //119104
-5, -5, -5, -6, -9, -10, -12, -15, -17, -19, -22, -24, -26, -27, -28, -28, //119120
-29, -30, -31, -31, -30, -30, -30, -27, -27, -27, -28, -28, -29, -29, -29, -29, //119136
-29, -29, -27, -26, -25, -22, -20, -20, -17, -15, -14, -14, -14, -15, -16, -16, //119152
-16, -16, -16, -14, -13, -13, -13, -13, -10, -6, -3, 0, 0, 0, 0, 1, //119168
2, 4, 7, 8, 11, 12, 13, 14, 15, 15, 15, 16, 15, 13, 12, 10, //119184
11, 12, 12, 12, 10, 8, 8, 8, 8, 8, 9, 11, 14, 16, 17, 18, //119200
19, 21, 21, 21, 22, 22, 23, 23, 25, 26, 26, 24, 25, 26, 28, 30, //119216
32, 33, 33, 33, 31, 28, 29, 29, 28, 28, 28, 26, 25, 27, 28, 30, //119232
31, 31, 29, 28, 27, 26, 25, 23, 19, 18, 18, 18, 16, 16, 13, 14, //119248
14, 13, 13, 12, 10, 8, 5, 4, 4, 1, -1, -1, 0, 1, 3, 4, //119264
5, 5, 6, 6, 6, 7, 6, 5, 4, 2, 2, 2, 1, 0, -3, -3, //119280
-3, -2, -3, -3, -2, 0, 1, 2, 3, 3, 2, 1, 2, 2, 1, 1, //119296
0, 1, 2, 3, 2, 2, 4, 6, 8, 10, 13, 14, 13, 11, 12, 12, //119312
12, 12, 12, 12, 13, 13, 13, 12, 13, 13, 13, 14, 14, 13, 12, 11, //119328
10, 10, 10, 11, 11, 11, 11, 12, 10, 10, 10, 9, 7, 7, 3, 2, //119344
0, -3, -3, -3, -5, -6, -6, -6, -6, -5, -4, -4, -5, -5, -6, -8, //119360
-9, -10, -12, -15, -19, -21, -22, -23, -23, -24, -25, -26, -26, -26, -26, -26, //119376
-25, -25, -27, -28, -26, -27, -27, -25, -26, -27, -28, -29, -28, -29, -29, -29, //119392
-29, -29, -29, -28, -26, -26, -27, -28, -30, -31, -32, -33, -33, -33, -34, -34, //119408
-33, -31, -27, -27, -25, -23, -24, -24, -25, -25, -25, -23, -20, -16, -13, -13, //119424
-13, -13, -14, -14, -15, -17, -18, -19, -21, -22, -24, -24, -24, -24, -23, -24, //119440
-24, -24, -24, -24, -22, -21, -20, -18, -18, -18, -18, -18, -17, -16, -16, -15, //119456
-15, -16, -17, -17, -16, -13, -11, -10, -10, -10, -8, -8, -9, -8, -8, -9, //119472
-10, -11, -12, -13, -14, -16, -17, -16, -15, -14, -11, -10, -10, -8, -7, -7, //119488
-5, -2, -3, -3, -2, -2, -1, -1, 0, 2, 3, 4, 5, 6, 7, 9, //119504
9, 9, 11, 11, 11, 12, 13, 15, 16, 15, 15, 16, 16, 17, 17, 18, //119520
18, 16, 16, 14, 14, 14, 14, 17, 23, 25, 27, 29, 31, 33, 33, 32, //119536
30, 27, 25, 25, 23, 23, 24, 25, 25, 28, 30, 28, 25, 25, 24, 22, //119552
22, 21, 20, 19, 19, 19, 18, 17, 17, 17, 18, 20, 22, 24, 24, 25, //119568
25, 27, 28, 28, 27, 26, 23, 21, 19, 17, 16, 16, 15, 15, 15, 14, //119584
12, 10, 10, 11, 11, 9, 6, 3, 0, -1, 0, 1, 2, 1, 1, 2, //119600
2, 5, 7, 9, 10, 11, 14, 14, 12, 11, 9, 9, 9, 7, 8, 11, //119616
12, 12, 13, 13, 13, 12, 11, 10, 8, 5, 3, 1, 1, 1, 1, 1, //119632
1, 2, 4, 4, 8, 9, 10, 11, 13, 16, 20, 23, 23, 23, 21, 22, //119648
23, 23, 22, 19, 17, 16, 15, 12, 11, 10, 8, 7, 6, 7, 7, 4, //119664
0, 0, 2, 2, 0, 1, 2, 1, 0, 0, 0, 0, 1, 0, -1, -2, //119680
-3, -8, -11, -12, -12, -13, -14, -15, -17, -19, -22, -23, -25, -26, -27, -29, //119696
-32, -36, -38, -37, -35, -36, -36, -34, -35, -35, -34, -32, -33, -34, -34, -35, //119712
-35, -34, -32, -29, -28, -28, -28, -25, -23, -23, -23, -23, -25, -25, -26, -27, //119728
-28, -28, -27, -27, -27, -26, -24, -24, -24, -24, -25, -25, -23, -22, -20, -18, //119744
-17, -15, -14, -12, -9, -5, -3, -1, 0, 0, 0, 2, 4, 5, 5, 6, //119760
8, 7, 6, 5, 5, 4, -1, -3, -4, -4, -5, -5, -2, -3, -2, 2, //119776
4, 7, 9, 11, 12, 11, 11, 11, 10, 10, 9, 8, 7, 8, 7, 3, //119792
3, 3, 3, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 5, 4, 4, //119808
5, 6, 6, 6, 5, 5, 6, 6, 6, 6, 4, 3, 3, 2, 0, -1, //119824
-2, -3, -5, -5, -4, -2, -2, -2, -1, -1, -2, -3, -5, -5, -4, -6, //119840
-9, -10, -12, -12, -11, -10, -9, -8, -7, -4, -2, -2, -2, -1, -1, -2, //119856
-5, -7, -9, -9, -9, -9, -9, -9, -9, -9, -7, -6, -5, -4, -5, -5, //119872
-5, -5, -3, -1, 0, 3, 5, 9, 12, 12, 13, 14, 16, 17, 17, 17, //119888
16, 16, 17, 18, 20, 21, 22, 22, 21, 20, 19, 19, 19, 17, 17, 19, //119904
20, 22, 22, 24, 25, 25, 25, 24, 22, 19, 17, 15, 13, 14, 16, 16, //119920
19, 20, 20, 20, 20, 21, 21, 21, 21, 21, 24, 23, 22, 22, 22, 21, //119936
21, 22, 23, 24, 23, 20, 19, 18, 17, 15, 15, 15, 16, 16, 15, 15, //119952
14, 13, 12, 11, 11, 9, 8, 7, 5, 3, 1, 1, 2, 0, -1, -2, //119968
-3, -5, -5, -5, -5, -6, -7, -7, -8, -10, -11, -10, -11, -10, -9, -9, //119984
-10, -12, -15, -16, -18, -18, -18, -18, -19, -19, -19, -19, -17, -16, -17, -15, //120000
-14, -14, -14, -13, -13, -13, -13, -14, -14, -15, -16, -18, -18, -18, -18, -19, //120016
-20, -21, -21, -20, -20, -18, -18, -20, -21, -22, -22, -22, -21, -21, -22, -22, //120032
-20, -19, -20, -20, -18, -18, -17, -14, -11, -11, -9, -6, -5, -3, -3, -3, //120048
-1, -1, 1, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, -1, -3, -4, //120064
-6, -6, -5, -4, -2, -1, 0, 3, 3, 4, 4, 1, -1, -5, -6, -7, //120080
-8, -8, -8, -8, -9, -8, -7, -6, -6, -8, -10, -12, -15, -16, -16, -17, //120096
-17, -18, -19, -22, -24, -24, -24, -24, -24, -22, -20, -17, -18, -18, -16, -16, //120112
-17, -16, -13, -11, -11, -11, -11, -11, -11, -12, -11, -9, -8, -8, -8, -9, //120128
-10, -10, -10, -10, -10, -11, -12, -13, -13, -12, -12, -12, -12, -11, -10, -10, //120144
-9, -8, -7, -6, -5, -4, -3, -3, -3, -4, -4, -5, -5, -4, -4, -3, //120160
-2, -2, -4, -5, -6, -7, -7, -7, -7, -6, -5, -4, -4, -5, -6, -5, //120176
-4, -3, 1, 7, 8, 9, 12, 13, 14, 16, 18, 18, 16, 16, 17, 18, //120192
18, 15, 14, 14, 13, 15, 16, 17, 18, 20, 21, 22, 24, 24, 25, 25, //120208
23, 22, 21, 19, 18, 19, 19, 21, 23, 24, 27, 28, 31, 32, 32, 33, //120224
35, 36, 37, 34, 31, 29, 25, 24, 24, 26, 27, 29, 30, 29, 29, 30, //120240
28, 23, 21, 18, 18, 16, 14, 12, 9, 8, 7, 7, 11, 12, 14, 14, //120256
13, 13, 9, 6, 5, 4, 3, 2, 0, 0, -1, -2, -3, -2, -1, 0, //120272
0, 0, -1, -3, -3, -2, -1, -2, -1, -2, -3, -4, -5, -4, -4, -4, //120288
-3, -1, 1, 3, 4, 5, 5, 5, 5, 5, 5, 5, 4, 3, 1, -1, //120304
-2, -3, -3, -3, -3, -5, -3, -3, -4, -4, -5, -5, -5, -5, -4, -2, //120320
-1, -1, -1, -1, -2, -3, -1, 0, 0, -1, -4, -6, -5, -4, -5, -5, //120336
-4, -5, -6, -6, -6, -6, -6, -4, -4, -4, -3, -4, -4, -3, -1, -1, //120352
-1, 2, 6, 6, 8, 9, 8, 8, 5, 4, 3, 2, 2, 3, 2, 2, //120368
2, -1, -1, -1, 0, -1, -2, -5, -8, -12, -15, -17, -16, -16, -15, -13, //120384
-12, -9, -7, -7, -5, -6, -7, -8, -9, -8, -9, -11, -13, -15, -17, -17, //120400
-15, -14, -13, -12, -12, -10, -9, -7, -5, -6, -6, -7, -8, -9, -12, -13, //120416
-13, -13, -12, -11, -9, -9, -9, -9, -8, -9, -9, -10, -9, -9, -9, -8, //120432
-7, -9, -10, -11, -11, -10, -10, -8, -10, -11, -12, -12, -12, -14, -15, -17, //120448
-21, -23, -23, -23, -23, -21, -19, -19, -17, -16, -15, -14, -14, -13, -14, -15, //120464
-15, -15, -15, -13, -12, -13, -14, -11, -8, -5, -3, 0, 2, 2, 0, 0, //120480
1, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 4, 7, //120496
8, 8, 9, 8, 8, 10, 11, 13, 13, 13, 14, 16, 17, 17, 17, 18, //120512
16, 15, 15, 12, 9, 10, 9, 9, 10, 11, 12, 12, 11, 10, 9, 8, //120528
7, 8, 8, 9, 10, 11, 11, 13, 14, 13, 12, 13, 13, 12, 12, 12, //120544
12, 9, 6, 5, 5, 6, 9, 10, 10, 9, 9, 9, 8, 6, 5, 4, //120560
3, 2, 0, -2, -4, -5, -6, -7, -8, -9, -9, -9, -8, -7, -6, -6, //120576
-7, -7, -7, -8, -8, -7, -7, -7, -7, -5, -2, -1, -1, 0, 1, 0, //120592
1, -1, -5, -7, -10, -13, -13, -12, -10, -7, -6, -7, -7, -6, -6, -6, //120608
-6, -7, -8, -8, -8, -9, -10, -9, -7, -6, -5, -3, -1, -1, -2, -1, //120624
-1, -4, -5, -6, -6, -7, -9, -10, -10, -11, -11, -11, -9, -7, -6, -4, //120640
-4, -4, -2, -2, -1, -2, -2, -2, 0, -1, 0, 1, 3, 6, 8, 11, //120656
14, 14, 15, 16, 18, 18, 17, 18, 19, 16, 15, 15, 15, 13, 13, 12, //120672
11, 10, 9, 8, 5, 2, 1, 1, 2, 2, 2, 3, 2, 2, 3, 4, //120688
6, 6, 8, 10, 9, 9, 11, 11, 12, 12, 11, 11, 10, 10, 9, 6, //120704
7, 5, 3, 3, 1, -3, -7, -8, -10, -13, -16, -17, -19, -20, -20, -21, //120720
-21, -18, -17, -16, -16, -13, -11, -9, -7, -8, -10, -11, -12, -12, -11, -9, //120736
-9, -9, -10, -10, -10, -11, -10, -11, -13, -13, -15, -16, -16, -16, -15, -15, //120752
-14, -13, -14, -16, -17, -17, -16, -17, -17, -14, -12, -12, -12, -9, -7, -7, //120768
-6, -3, -3, -4, 0, 1, -1, -2, -3, -4, -6, -4, -2, -2, -1, -1, //120784
-2, -2, -1, -2, -2, -3, -4, -4, -3, -2, 0, 0, 0, -1, -1, 0, //120800
0, 0, 0, 0, 0, 0, 1, 3, 3, 2, 2, 2, 5, 5, 3, 3, //120816
3, 1, 0, -1, -1, -2, -2, -4, -7, -8, -7, -8, -8, -7, -7, -7, //120832
-6, -6, -3, -2, -1, 0, 1, 1, 2, 3, 2, 0, 0, 0, 0, 1, //120848
3, 3, 3, 3, 1, -2, -3, -4, -4, -5, -7, -9, -10, -10, -9, -11, //120864
-14, -15, -16, -17, -20, -20, -20, -21, -21, -19, -16, -14, -13, -12, -12, -12, //120880
-11, -10, -10, -9, -7, -7, -5, -5, -6, -7, -7, -7, -6, -5, -4, -3, //120896
-3, 0, 2, 3, 4, 6, 8, 8, 9, 10, 10, 11, 12, 12, 13, 14, //120912
15, 15, 14, 14, 14, 13, 12, 14, 15, 16, 18, 19, 20, 20, 20, 20, //120928
19, 20, 21, 18, 17, 16, 15, 13, 10, 9, 7, 8, 8, 8, 9, 8, //120944
7, 8, 9, 11, 14, 16, 17, 17, 16, 17, 17, 16, 17, 18, 18, 17, //120960
17, 19, 19, 19, 20, 19, 18, 17, 17, 17, 14, 15, 17, 19, 19, 19, //120976
17, 15, 14, 14, 14, 14, 12, 12, 12, 12, 13, 15, 15, 14, 14, 14, //120992
12, 10, 8, 7, 7, 8, 8, 9, 9, 8, 8, 8, 6, 5, 4, 3, //121008
2, 1, 0, -1, -3, -3, -3, -5, -5, -5, -6, -7, -7, -5, -3, -3, //121024
-4, -4, -4, -5, -5, -5, -5, -4, -3, -2, -1, 0, 1, 2, 1, -1, //121040
-3, -4, -5, -6, -8, -9, -10, -12, -13, -13, -12, -12, -11, -8, -9, -9, //121056
-10, -11, -12, -13, -13, -14, -15, -14, -14, -14, -10, -8, -6, -3, -2, -1, //121072
-2, -2, -3, -5, -6, -8, -9, -9, -10, -10, -8, -6, -5, -4, -4, -5, //121088
-6, -8, -9, -11, -12, -12, -12, -9, -7, -4, -2, 0, 2, 2, 1, -1, //121104
-4, -5, -6, -7, -6, -5, -4, -5, -6, -7, -8, -9, -11, -10, -10, -11, //121120
-11, -12, -12, -11, -11, -13, -14, -14, -16, -18, -18, -17, -17, -15, -12, -11, //121136
-11, -10, -7, -7, -8, -8, -9, -9, -9, -7, -5, -6, -6, -6, -7, -6, //121152
-7, -7, -7, -7, -8, -8, -7, -8, -9, -9, -10, -9, -9, -10, -10, -10, //121168
-11, -11, -12, -13, -13, -13, -15, -17, -17, -17, -18, -18, -18, -19, -19, -18, //121184
-18, -16, -14, -12, -10, -11, -12, -15, -16, -17, -17, -15, -15, -15, -16, -17, //121200
-17, -17, -16, -14, -13, -12, -9, -7, -6, -3, -1, -1, 0, 3, 4, 5, //121216
5, 5, 6, 9, 11, 14, 15, 13, 12, 10, 11, 12, 13, 13, 14, 14, //121232
13, 13, 14, 15, 14, 13, 13, 12, 10, 10, 8, 8, 9, 9, 9, 9, //121248
9, 9, 10, 9, 9, 11, 13, 15, 17, 19, 20, 21, 21, 20, 19, 19, //121264
19, 18, 16, 16, 16, 17, 20, 21, 22, 22, 22, 19, 17, 16, 15, 15, //121280
15, 14, 15, 15, 13, 11, 11, 10, 9, 9, 10, 10, 9, 9, 10, 11, //121296
11, 10, 11, 9, 6, 5, 5, 3, 2, 1, 1, 2, 1, 1, 0, -1, //121312
-3, -4, -3, -4, -4, -5, -6, -7, -7, -8, -8, -8, -7, -7, -7, -6, //121328
-4, -4, -4, -1, 2, 3, 2, 3, 6, 6, 5, 5, 5, 4, 3, 3, //121344
2, 3, 5, 5, 4, 4, 5, 4, 2, 4, 6, 6, 5, 4, 2, 0, //121360
2, 1, 2, 4, 3, 3, 5, 7, 9, 10, 11, 12, 13, 12, 10, 9, //121376
7, 4, 2, 1, 2, 4, 4, 3, 2, 0, -2, -4, -4, -5, -4, -3, //121392
-3, -3, -2, -3, -3, -4, -5, -5, -8, -9, -11, -11, -11, -12, -12, -13, //121408
-13, -15, -18, -17, -18, -18, -17, -17, -17, -18, -18, -17, -16, -17, -18, -18, //121424
-17, -17, -17, -18, -19, -18, -19, -19, -19, -19, -17, -16, -14, -11, -12, -15, //121440
-14, -13, -12, -12, -12, -11, -11, -11, -10, -9, -7, -5, -3, -2, -1, 1, //121456
-1, -2, -1, -2, -3, -5, -6, -8, -10, -10, -8, -9, -9, -9, -10, -10, //121472
-8, -8, -9, -10, -11, -11, -11, -9, -8, -7, -6, -5, -5, -8, -8, -7, //121488
-8, -9, -9, -9, -11, -12, -12, -12, -9, -8, -9, -9, -7, -6, -6, -4, //121504
-2, -3, -3, -2, -1, 0, 1, 2, 3, 3, 3, 3, 4, 4, 3, 1, //121520
2, 1, 1, 2, 4, 6, 8, 10, 10, 9, 9, 9, 10, 10, 8, 8, //121536
6, 6, 6, 5, 5, 8, 8, 8, 10, 11, 11, 12, 13, 12, 9, 10, //121552
10, 8, 7, 7, 7, 5, 5, 5, 7, 8, 8, 8, 10, 11, 11, 11, //121568
11, 12, 12, 12, 13, 13, 13, 15, 14, 16, 18, 19, 21, 22, 24, 26, //121584
27, 27, 26, 26, 25, 24, 25, 25, 25, 24, 22, 21, 19, 20, 21, 23, //121600
23, 23, 23, 20, 18, 17, 17, 15, 12, 11, 10, 10, 9, 7, 5, 5, //121616
4, 5, 5, 3, 1, -1, -2, -7, -11, -13, -14, -14, -13, -11, -9, -10, //121632
-10, -10, -11, -10, -8, -9, -11, -12, -14, -17, -19, -18, -16, -15, -15, -15, //121648
-15, -15, -14, -13, -13, -13, -13, -13, -12, -11, -10, -11, -10, -10, -10, -9, //121664
-7, -7, -5, -5, -4, -4, -4, -4, -4, -3, 0, 1, 1, 3, 4, 5, //121680
5, 6, 6, 6, 6, 5, 2, 1, 1, -1, 0, 2, 6, 8, 9, 10, //121696
9, 9, 8, 6, 6, 4, 5, 6, 4, 7, 10, 11, 13, 15, 16, 17, //121712
17, 17, 14, 12, 11, 9, 8, 9, 10, 10, 6, 6, 6, 6, 6, 6, //121728
6, 5, 4, 2, 0, -2, -5, -7, -8, -8, -8, -7, -7, -7, -5, -5, //121744
-7, -8, -9, -10, -11, -13, -13, -15, -16, -17, -17, -17, -17, -15, -15, -16, //121760
-16, -14, -13, -12, -12, -14, -14, -12, -13, -14, -14, -13, -14, -16, -17, -19, //121776
-20, -19, -17, -14, -13, -12, -9, -9, -9, -8, -6, -6, -8, -8, -7, -9, //121792
-9, -7, -8, -11, -10, -11, -13, -15, -15, -15, -17, -17, -18, -19, -18, -19, //121808
-18, -16, -15, -15, -15, -16, -18, -17, -14, -14, -14, -12, -9, -9, -9, -8, //121824
-6, -5, -3, -2, 0, 0, 3, 3, 3, 3, 2, 2, 2, 4, 5, 5, //121840
5, 4, 3, 1, -1, -1, -4, -6, -7, -8, -9, -9, -8, -9, -7, -5, //121856
-6, -6, -4, -4, -4, -5, -7, -10, -9, -10, -10, -9, -8, -10, -9, -5, //121872
-2, -2, -1, 0, -1, -1, -2, -3, -3, -3, -5, -7, -4, -1, -1, -1, //121888
1, 4, 3, 3, 4, 4, 4, 5, 6, 9, 9, 8, 7, 7, 8, 8, //121904
6, 7, 8, 7, 5, 6, 8, 6, 4, 6, 7, 8, 8, 8, 9, 8, //121920
4, 0, 0, 1, 0, -2, -1, 0, -1, -5, -3, 3, 2, 1, 3, 7, //121936
11, 9, 8, 8, 9, 11, 13, 16, 19, 22, 21, 18, 20, 21, 19, 17, //121952
18, 18, 14, 13, 11, 8, 7, 7, 4, 1, 1, 2, 3, 4, 3, 4, //121968
5, 6, 8, 10, 10, 10, 9, 9, 9, 11, 12, 8, 4, 5, 7, 7, //121984
7, 8, 11, 12, 17, 19, 19, 21, 22, 20, 17, 18, 18, 14, 11, 9, //122000
9, 8, 6, 5, 5, 8, 10, 10, 10, 10, 10, 8, 7, 8, 8, 6, //122016
6, 8, 8, 9, 10, 9, 5, 3, 2, 2, -1, -5, -7, -9, -11, -12, //122032
-12, -13, -14, -14, -14, -14, -12, -13, -14, -14, -13, -10, -13, -14, -12, -11, //122048
-13, -16, -15, -16, -18, -17, -14, -12, -8, -9, -9, -7, -7, -6, -7, -7, //122064
-6, -6, -6, -9, -9, -7, -7, -9, -11, -9, -9, -9, -7, -6, -5, -4, //122080
-4, -4, -6, -9, -11, -11, -11, -12, -12, -10, -10, -9, -7, -6, -6, -3, //122096
-4, -6, -6, -7, -8, -11, -10, -10, -11, -13, -12, -11, -12, -12, -11, -8, //122112
-10, -11, -10, -11, -11, -10, -9, -10, -10, -11, -11, -11, -8, -7, -6, -6, //122128
-7, -7, -6, -5, -4, -4, -6, -6, -7, -8, -8, -8, -7, -4, -5, -5, //122144
-2, -2, -1, -1, 0, 2, 1, 1, 4, 5, 5, 4, 4, 6, 6, 7, //122160
8, 8, 6, 8, 9, 9, 10, 12, 12, 9, 9, 11, 11, 12, 15, 16, //122176
17, 19, 20, 21, 21, 21, 21, 21, 19, 18, 19, 18, 17, 16, 16, 19, //122192
21, 23, 25, 26, 26, 25, 24, 23, 23, 23, 23, 23, 23, 23, 23, 22, //122208
22, 24, 23, 22, 22, 20, 18, 15, 14, 15, 14, 10, 7, 8, 8, 5, //122224
5, 5, 4, 4, 4, 5, 5, 4, 4, 2, 1, -1, -3, -4, -6, -7, //122240
-11, -14, -12, -12, -12, -12, -12, -11, -13, -14, -12, -13, -14, -12, -13, -12, //122256
-11, -12, -12, -11, -11, -10, -10, -11, -10, -9, -10, -9, -8, -8, -8, -7, //122272
-7, -6, -5, -2, 0, 2, 5, 7, 8, 8, 5, 5, 5, 6, 7, 7, //122288
5, 4, 5, 6, 6, 6, 7, 6, 6, 7, 9, 6, 6, 7, 8, 8, //122304
8, 9, 10, 10, 9, 9, 8, 6, 7, 9, 9, 9, 11, 10, 12, 13, //122320
11, 13, 13, 12, 10, 7, 6, 5, 5, 5, 6, 6, 5, 3, 1, 2, //122336
2, 0, -2, -3, -3, -2, -1, -1, -2, -3, -3, -3, -3, -3, -6, -9, //122352
-10, -11, -12, -13, -13, -13, -13, -9, -7, -7, -5, -5, -7, -10, -13, -15, //122368
-18, -20, -20, -20, -20, -23, -25, -25, -25, -23, -21, -21, -21, -21, -18, -16, //122384
-14, -13, -12, -10, -7, -7, -5, -3, -3, -4, -6, -4, -7, -8, -8, -9, //122400
-10, -12, -13, -14, -16, -16, -15, -13, -11, -11, -11, -9, -8, -8, -8, -8, //122416
-7, -7, -9, -9, -10, -10, -10, -7, -6, -5, -5, -5, -5, -5, -5, -6, //122432
-6, -4, -4, -6, -4, -3, -3, -1, 1, 1, 2, 3, 4, 6, 7, 7, //122448
8, 9, 10, 11, 13, 13, 10, 9, 9, 8, 9, 11, 11, 11, 9, 10, //122464
10, 11, 14, 15, 17, 16, 13, 12, 10, 7, 7, 6, 4, 3, 1, 0, //122480
-1, -1, -2, -3, -4, -4, -4, -5, -5, -5, -6, -5, -5, -6, -6, -6, //122496
-6, -4, -3, -2, 1, 2, 3, 3, 4, 4, 3, 2, 2, 0, -2, -2, //122512
-1, 0, 1, 2, 2, 1, -1, -4, -5, -3, -3, -5, -5, -6, -7, -7, //122528
-8, -10, -10, -15, -16, -14, -14, -14, -12, -11, -10, -9, -7, -5, -2, -2, //122544
-4, -6, -7, -9, -8, -6, -4, -4, -5, -7, -7, -5, -5, -5, -3, -3, //122560
-4, -5, -5, -4, -4, -3, -1, 1, 2, 2, 0, 3, 6, 6, 7, 10, //122576
14, 15, 15, 14, 13, 14, 14, 14, 15, 14, 11, 9, 7, 7, 7, 7, //122592
7, 7, 7, 9, 10, 10, 8, 6, 4, 3, 2, 1, 2, 1, -1, -4, //122608
-4, -4, -2, -1, 1, 4, 4, 5, 4, 2, 1, 1, 2, 4, 4, 3, //122624
2, 2, 2, 0, 0, -1, -2, -4, -8, -9, -10, -10, -10, -9, -7, -6, //122640
-4, -3, -2, 0, 1, 3, 3, 2, 3, 5, 5, 5, 4, 4, 5, 8, //122656
8, 10, 11, 10, 10, 12, 11, 11, 11, 10, 9, 7, 6, 5, 3, 1, //122672
2, 3, 2, 0, 0, 0, -1, -2, -2, -2, -3, -2, 0, -1, -1, 0, //122688
2, 3, 3, 5, 7, 6, 6, 8, 9, 8, 7, 5, 1, -1, -3, -5, //122704
-5, -6, -6, -7, -8, -8, -8, -8, -8, -7, -7, -8, -9, -9, -10, -13, //122720
-14, -14, -12, -13, -13, -12, -11, -10, -10, -9, -7, -6, -6, -3, 0, -1, //122736
-1, -1, 0, 0, -1, 0, 1, 0, -1, 1, 2, 1, 1, 1, 1, 1, //122752
-1, -2, -1, 0, -1, -1, -1, 0, 1, 3, 3, 4, 6, 6, 4, 5, //122768
4, 3, 3, 3, 4, 4, 3, 2, 3, 3, 3, 5, 8, 9, 9, 9, //122784
10, 11, 12, 14, 15, 15, 15, 11, 11, 12, 12, 10, 10, 10, 8, 7, //122800
5, 6, 6, 6, 8, 10, 10, 10, 12, 12, 12, 12, 11, 11, 10, 8, //122816
6, 6, 6, 3, 3, 2, 2, 1, -1, -1, -3, -5, -5, -6, -9, -10, //122832
-9, -10, -13, -13, -12, -10, -9, -9, -8, -6, -6, -6, -6, -5, -5, -6, //122848
-6, -7, -9, -10, -10, -9, -7, -6, -6, -7, -8, -8, -7, -7, -8, -8, //122864
-7, -10, -10, -7, -7, -7, -7, -9, -9, -7, -6, -6, -4, -4, -3, 1, //122880
3, 6, 7, 6, 5, 4, 3, 3, 3, 2, 2, 3, 2, 4, 5, 5, //122896
6, 8, 7, 8, 8, 7, 5, 5, 4, 5, 7, 8, 11, 13, 13, 14, //122912
14, 13, 13, 13, 12, 13, 13, 11, 11, 12, 11, 8, 7, 7, 6, 4, //122928
2, 1, -1, -4, -2, -4, -6, -7, -8, -10, -10, -10, -10, -10, -11, -12, //122944
-12, -12, -13, -12, -11, -13, -13, -13, -13, -13, -12, -9, -7, -6, -6, -4, //122960
-3, -4, -3, -3, -3, -3, -4, -5, -6, -5, -5, -6, -6, -7, -8, -7, //122976
-7, -8, -10, -12, -13, -13, -14, -14, -13, -12, -11, -10, -10, -8, -9, -9, //122992
-10, -11, -9, -8, -9, -8, -6, -4, -1, -1, -1, -2, -3, -3, -6, -8, //123008
-8, -7, -7, -9, -7, -6, -5, -4, -3, -2, -2, -2, -2, -3, -3, -2, //123024
-2, -3, -3, -1, -1, -1, 2, 6, 7, 7, 12, 15, 15, 16, 18, 18, //123040
17, 16, 16, 16, 14, 11, 10, 9, 8, 7, 6, 7, 7, 6, 4, 2, //123056
1, -2, -5, -7, -8, -10, -11, -11, -10, -10, -11, -11, -10, -11, -12, -12, //123072
-11, -11, -11, -10, -9, -9, -9, -11, -13, -13, -13, -13, -11, -8, -6, -4, //123088
-2, -2, 1, 1, 1, 0, -1, -2, -1, 0, 1, 2, 3, 3, 2, 2, //123104
2, 2, 2, -1, -3, -4, -5, -5, -5, -4, -4, -4, -4, -4, -4, -4, //123120
-3, -2, -3, -2, 1, 2, 4, 5, 6, 7, 7, 7, 6, 6, 6, 4, //123136
2, 0, -1, -1, 0, 0, 0, 1, 2, 1, 1, 2, 1, 2, 3, 5, //123152
7, 9, 9, 8, 7, 6, 4, 3, 3, 2, 3, 3, -1, 0, 2, 2, //123168
0, -2, -4, -5, -5, -6, -6, -7, -9, -10, -11, -11, -9, -8, -9, -11, //123184
-13, -12, -11, -11, -10, -11, -12, -12, -10, -9, -9, -7, -4, -1, 3, 5, //123200
6, 7, 7, 7, 6, 5, 4, 4, 4, 1, -1, 1, 1, 1, 3, 5, //123216
6, 6, 6, 6, 4, 5, 5, 4, 1, -2, -1, -1, -3, -5, -6, -6, //123232
-10, -10, -9, -9, -9, -10, -11, -11, -11, -11, -12, -10, -10, -10, -10, -10, //123248
-8, -7, -6, -6, -5, -2, -2, -2, -1, 0, 2, 4, 6, 5, 6, 8, //123264
8, 7, 7, 8, 7, 6, 5, 4, 6, 8, 8, 8, 9, 10, 10, 10, //123280
11, 12, 14, 14, 13, 14, 14, 14, 12, 9, 8, 6, 2, -1, -1, 0, //123296
-1, -1, 0, 2, -2, -3, -3, -4, -7, -6, -5, -5, -5, -4, -4, -3, //123312
-2, -3, -2, -2, -5, -6, -6, -8, -11, -12, -15, -16, -17, -17, -17, -17, //123328
-15, -15, -16, -16, -14, -12, -12, -12, -11, -11, -11, -13, -14, -12, -11, -11, //123344
-10, -9, -8, -6, -5, -3, -3, -2, -2, -2, -3, -4, -5, -5, -4, -3, //123360
-2, -2, -1, -1, 0, 1, 1, 5, 8, 10, 11, 13, 16, 19, 20, 20, //123376
20, 20, 20, 20, 20, 19, 17, 16, 16, 14, 13, 15, 17, 18, 20, 19, //123392
19, 19, 19, 19, 18, 17, 16, 15, 14, 16, 17, 18, 18, 19, 19, 18, //123408
19, 19, 18, 18, 16, 17, 17, 18, 18, 16, 16, 14, 12, 12, 12, 12, //123424
12, 13, 14, 13, 13, 13, 13, 12, 11, 9, 7, 6, 5, 5, 5, 6, //123440
7, 6, 5, 5, 6, 5, 2, -1, -4, -6, -6, -7, -9, -10, -11, -13, //123456
-14, -14, -12, -11, -12, -12, -11, -11, -9, -9, -9, -8, -8, -8, -8, -9, //123472
-9, -9, -9, -9, -7, -6, -7, -8, -9, -10, -11, -12, -14, -17, -15, -13, //123488
-13, -13, -12, -12, -12, -10, -10, -9, -9, -8, -8, -7, -6, -5, -4, -1, //123504
0, 0, 0, 0, 0, -1, 0, 0, -2, -2, -3, -4, -3, -3, -3, -2, //123520
0, 0, 1, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 4, 4, 3, //123536
3, 4, 4, 4, 3, 2, 0, -1, -2, -2, -2, -3, -2, -1, 0, 0, //123552
1, 1, 1, 2, 4, 4, 4, 4, 2, 1, 0, -1, -2, -2, -3, -5, //123568
-6, -7, -8, -8, -8, -8, -8, -9, -11, -11, -13, -15, -16, -17, -18, -18, //123584
-17, -16, -15, -15, -13, -13, -13, -13, -13, -11, -8, -7, -7, -7, -5, -6, //123600
-7, -7, -8, -9, -9, -8, -9, -11, -11, -12, -12, -11, -11, -12, -13, -13, //123616
-12, -11, -11, -10, -10, -10, -9, -6, -5, -4, -3, -3, -4, -6, -8, -10, //123632
-11, -12, -12, -12, -13, -14, -14, -12, -12, -13, -13, -13, -11, -11, -9, -8, //123648
-7, -5, -5, -4, -4, -4, -2, 0, -1, -1, 0, 1, 2, 4, 5, 6, //123664
6, 6, 6, 5, 5, 6, 6, 6, 7, 8, 8, 9, 10, 10, 7, 6, //123680
5, 6, 6, 6, 7, 8, 10, 11, 11, 9, 9, 9, 8, 6, 6, 2, //123696
-1, -1, -2, -2, -1, 0, -1, -1, -2, -2, -2, -4, -5, -5, -4, -4, //123712
-5, -4, -5, -4, -2, 0, 3, 5, 6, 6, 4, 3, 1, 1, 1, -2, //123728
-3, -5, -5, -5, -6, -7, -8, -7, -7, -6, -5, -3, -2, 2, 1, 0, //123744
0, -3, -6, -8, -7, -7, -10, -10, -8, -9, -8, -8, -8, -8, -7, -6, //123760
-5, -3, 0, 1, 1, 1, 1, 1, 1, 4, 4, 3, 3, 2, -1, 1, //123776
1, 1, 5, 8, 10, 12, 15, 16, 15, 14, 15, 14, 13, 13, 15, 14, //123792
15, 16, 15, 16, 18, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 17, //123808
15, 15, 14, 15, 15, 13, 10, 9, 9, 8, 9, 9, 5, 3, 1, 0, //123824
-1, -2, -2, -3, -3, -2, -1, 2, 3, 4, 8, 11, 12, 14, 13, 12, //123840
12, 12, 12, 11, 11, 10, 7, 5, 1, -3, -4, -5, -8, -10, -11, -10, //123856
-9, -8, -8, -7, -8, -11, -14, -15, -16, -19, -20, -21, -21, -21, -21, -19, //123872
-19, -18, -18, -17, -13, -12, -13, -13, -13, -11, -11, -10, -9, -9, -8, -8, //123888
-9, -9, -9, -10, -10, -9, -8, -7, -6, -6, -7, -7, -7, -7, -6, -6, //123904
-8, -8, -9, -10, -9, -7, -4, -3, -1, 0, 1, 1, -1, -3, -3, -2, //123920
0, -1, -2, -3, -5, -6, -7, -8, -8, -8, -10, -13, -13, -14, -14, -14, //123936
-13, -13, -15, -17, -21, -23, -22, -22, -22, -21, -20, -19, -18, -16, -12, -10, //123952
-8, -6, -6, -7, -7, -8, -8, -9, -9, -10, -11, -11, -10, -9, -9, -11, //123968
-11, -11, -10, -8, -6, -3, -1, -1, 0, 0, -1, -3, -5, -8, -10, -10, //123984
-10, -10, -9, -8, -6, -1, 2, 5, 5, 5, 5, 6, 8, 8, 8, 8, //124000
8, 8, 8, 8, 10, 10, 12, 14, 15, 15, 15, 16, 17, 19, 19, 20, //124016
23, 23, 22, 23, 23, 23, 24, 25, 25, 27, 29, 30, 31, 31, 30, 27, //124032
25, 23, 22, 23, 23, 24, 26, 26, 25, 26, 26, 26, 26, 24, 21, 20, //124048
19, 17, 15, 13, 13, 13, 14, 15, 16, 18, 18, 19, 21, 23, 23, 21, //124064
19, 15, 15, 15, 13, 12, 11, 9, 8, 9, 9, 9, 10, 11, 11, 10, //124080
10, 9, 8, 8, 5, 1, 0, 0, 0, 1, 1, 1, 1, 0, -2, -2, //124096
-2, -4, -6, -7, -8, -11, -11, -11, -11, -10, -9, -9, -12, -13, -13, -14, //124112
-16, -17, -18, -19, -19, -19, -19, -20, -20, -19, -17, -17, -17, -15, -15, -14, //124128
-13, -12, -9, -5, -3, -1, -1, -3, -5, -5, -7, -7, -5, -3, -2, 1, //124144
2, 3, 4, 5, 5, 6, 6, 5, 4, 3, 2, 2, 1, 0, -1, -2, //124160
-4, -4, -5, -6, -6, -9, -10, -10, -11, -11, -13, -13, -12, -11, -9, -9, //124176
-9, -8, -7, -6, -4, -2, -2, -3, -4, -4, -3, -3, -3, -4, -4, -4, //124192
-5, -5, -6, -5, -4, -5, -5, -6, -7, -7, -8, -9, -10, -12, -12, -12, //124208
-13, -13, -12, -12, -14, -15, -16, -17, -17, -16, -17, -18, -18, -17, -16, -15, //124224
-14, -14, -16, -16, -15, -15, -14, -14, -16, -15, -15, -14, -14, -14, -16, -16, //124240
-15, -16, -16, -16, -16, -16, -17, -16, -14, -12, -8, -6, -6, -6, -4, -2, //124256
-2, -1, 0, 0, 0, 2, 2, 2, 1, 0, -2, -3, -5, -7, -10, -11, //124272
-12, -13, -13, -13, -12, -12, -8, -7, -7, -7, -8, -9, -9, -9, -9, -10, //124288
-11, -10, -8, -7, -6, -6, -4, -3, -4, -3, -2, -1, -1, 0, 1, 2, //124304
3, 4, 3, 3, 3, 4, 5, 6, 7, 7, 8, 8, 9, 10, 11, 11, //124320
12, 14, 14, 15, 14, 14, 13, 11, 11, 11, 12, 13, 14, 15, 15, 15, //124336
16, 15, 13, 13, 13, 11, 9, 9, 7, 6, 7, 7, 6, 5, 4, 3, //124352
3, 3, 3, 3, 3, 2, 4, 5, 4, 4, 3, 2, 2, 3, 3, 4, //124368
7, 9, 11, 12, 13, 15, 12, 11, 10, 8, 6, 5, 5, 4, 3, 1, //124384
1, -1, 0, 2, 2, 2, 2, -1, -3, -3, -2, -2, -3, -4, -4, -5, //124400
-5, -3, -3, -3, -2, -2, -2, 0, 3, 3, 2, 2, 2, 1, 1, 1, //124416
0, -2, -4, -5, -5, -4, -3, -2, 0, 0, 1, 2, 3, 4, 5, 4, //124432
2, 2, 2, 0, 0, 0, 0, 0, 1, 2, 3, 5, 5, 4, 5, 4, //124448
3, 4, 4, 3, 2, 1, 1, 1, 0, 1, 1, 1, 2, 3, 5, 7, //124464
7, 7, 5, 4, 5, 6, 5, 4, 2, -1, -2, -2, -5, -4, -3, -3, //124480
-3, -3, -4, -4, -3, -3, -5, -5, -4, -4, -3, -1, -1, -2, -3, -5, //124496
-6, -5, -5, -4, -5, -5, -4, -3, -2, -1, 0, 0, 0, 3, 1, 1, //124512
3, 4, 5, 5, 6, 6, 5, 6, 6, 3, 1, 0, -1, 0, 0, 0, //124528
0, 0, 1, 1, -1, 0, 0, 0, 0, -1, -4, -5, -5, -6, -7, -7, //124544
-8, -9, -10, -11, -11, -10, -10, -10, -9, -7, -8, -8, -8, -8, -8, -7, //124560
-6, -7, -9, -11, -12, -13, -15, -16, -19, -20, -21, -23, -19, -17, -16, -14, //124576
-15, -15, -15, -15, -16, -16, -16, -15, -16, -15, -14, -15, -15, -13, -13, -12, //124592
-10, -10, -7, -5, -5, -5, -6, -7, -7, -6, -6, -5, -3, -2, -2, 0, //124608
2, 3, 5, 7, 7, 7, 7, 6, 6, 5, 5, 4, 4, 5, 6, 5, //124624
6, 7, 8, 10, 14, 14, 14, 14, 12, 10, 9, 8, 7, 6, 4, 4, //124640
3, 3, 2, 1, 1, 1, 1, 1, 1, 2, 4, 6, 8, 9, 9, 10, //124656
12, 13, 14, 15, 16, 16, 15, 15, 16, 17, 17, 17, 15, 13, 11, 9, //124672
10, 11, 12, 15, 17, 17, 18, 20, 19, 17, 17, 17, 17, 18, 18, 17, //124688
17, 17, 14, 12, 11, 10, 8, 6, 3, 1, 0, -1, -1, 2, 4, 5, //124704
6, 6, 5, 5, 7, 9, 9, 9, 9, 7, 6, 5, 4, 3, 3, 2, //124720
1, 0, 0, 0, -2, -2, -2, -3, -3, -1, 0, -1, -2, -3, -5, -5, //124736
-7, -7, -7, -8, -8, -5, -6, -6, -7, -8, -9, -9, -9, -10, -11, -11, //124752
-10, -7, -4, -2, -1, 1, 0, -1, -2, -3, -5, -6, -7, -8, -7, -7, //124768
-6, -4, -3, -1, 2, 4, 3, 1, 0, -2, -4, -4, -4, -5, -6, -7, //124784
-7, -6, -6, -8, -7, -7, -7, -6, -6, -7, -8, -9, -10, -10, -9, -9, //124800
-9, -9, -9, -8, -9, -9, -9, -9, -9, -6, -4, -3, -3, -2, -2, -1, //124816
1, 3, 5, 5, 5, 5, 5, 5, 6, 7, 7, 6, 5, 5, 4, 2, //124832
1, 2, 4, 5, 5, 2, 2, 0, -1, 0, 0, 0, -1, -2, -2, -2, //124848
-2, -4, -4, -3, -4, -5, -5, -5, -7, -7, -8, -8, -8, -8, -9, -9, //124864
-9, -8, -9, -10, -10, -11, -13, -14, -15, -15, -16, -17, -17, -16, -16, -15, //124880
-15, -16, -18, -18, -18, -18, -19, -19, -17, -16, -15, -15, -15, -16, -17, -17, //124896
-16, -15, -13, -13, -14, -15, -15, -14, -14, -10, -9, -8, -7, -8, -9, -12, //124912
-13, -15, -16, -14, -12, -13, -13, -12, -11, -10, -6, -4, -3, -3, -3, -4, //124928
-4, -3, -2, -2, -2, 0, -2, -2, -3, -3, -2, -2, -1, -1, 0, 0, //124944
0, 2, 5, 7, 8, 9, 9, 7, 5, 4, 3, 2, 4, 5, 5, 6, //124960
6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 7, 3, 2, 2, //124976
3, 4, 5, 5, 5, 6, 6, 6, 9, 11, 11, 12, 12, 12, 10, 8, //124992
8, 7, 5, 3, 3, 1, -2, -3, -3, -3, -3, -3, -3, -4, -4, -6, //125008
-9, -10, -11, -12, -12, -10, -9, -8, -6, -3, 1, 3, 3, 2, 1, 1, //125024
4, 3, 3, 4, 3, 1, 1, 2, 2, 3, 3, 3, 2, 2, 1, 2, //125040
4, 5, 4, 5, 7, 8, 8, 7, 7, 8, 10, 14, 17, 18, 19, 20, //125056
21, 23, 24, 24, 23, 22, 20, 18, 19, 19, 20, 21, 22, 23, 22, 21, //125072
21, 21, 21, 20, 19, 18, 17, 15, 15, 11, 9, 8, 6, 7, 10, 10, //125088
10, 12, 12, 12, 14, 15, 14, 15, 16, 15, 14, 15, 16, 18, 18, 17, //125104
16, 16, 17, 17, 17, 14, 11, 9, 7, 6, 6, 4, 3, 2, 1, -1, //125120
-4, -5, -7, -8, -8, -9, -8, -9, -9, -8, -8, -10, -11, -12, -12, -11, //125136
-10, -10, -11, -12, -11, -12, -12, -9, -9, -11, -12, -12, -10, -10, -9, -7, //125152
-6, -6, -4, -5, -4, -3, -2, -1, -2, -2, -3, -6, -6, -4, -4, -3, //125168
-2, 0, 1, 2, 3, 3, 2, 1, 0, 1, 1, 1, 1, 2, 2, 2, //125184
2, 1, 0, 0, -3, -5, -7, -7, -6, -6, -7, -9, -8, -8, -8, -6, //125200
-6, -5, -5, -6, -8, -10, -9, -10, -12, -13, -14, -18, -21, -21, -21, -22, //125216
-23, -22, -21, -22, -23, -23, -21, -20, -19, -19, -19, -18, -17, -20, -23, -23, //125232
-24, -24, -25, -25, -23, -22, -22, -19, -17, -16, -15, -15, -15, -15, -15, -14, //125248
-14, -13, -14, -14, -14, -14, -12, -12, -8, -7, -6, -5, -2, 2, 4, 5, //125264
7, 8, 8, 9, 9, 9, 8, 7, 7, 7, 8, 8, 9, 10, 12, 14, //125280
14, 15, 16, 17, 16, 16, 16, 16, 17, 18, 20, 20, 21, 23, 24, 25, //125296
25, 24, 23, 23, 23, 21, 21, 23, 23, 23, 23, 24, 24, 24, 25, 25, //125312
23, 22, 20, 18, 16, 16, 17, 15, 15, 15, 15, 18, 16, 16, 16, 16, //125328
17, 18, 19, 19, 19, 20, 20, 19, 18, 18, 18, 16, 15, 14, 13, 12, //125344
12, 11, 11, 12, 13, 13, 12, 10, 9, 8, 6, 5, 5, 5, 4, 3, //125360
2, 0, 0, -1, -1, -1, -1, -1, -2, -5, -5, -4, -3, -2, -3, -6, //125376
-7, -7, -7, -8, -8, -7, -6, -5, -3, -3, -2, -1, -2, -2, -2, -5, //125392
-7, -7, -8, -8, -7, -6, -5, -5, -4, -2, 0, 1, 0, -1, -2, -4, //125408
-4, -4, -4, -4, -3, -2, -1, 1, 2, 3, 4, 5, 5, 4, 3, 2, //125424
1, 1, 0, 0, -1, -1, -1, -3, -5, -5, -5, -8, -11, -9, -7, -6, //125440
-3, -1, 2, 5, 6, 5, 5, 6, 6, 6, 6, 7, 8, 9, 12, 13, //125456
15, 17, 18, 19, 21, 21, 20, 19, 18, 15, 15, 15, 15, 15, 14, 14, //125472
13, 12, 12, 11, 6, 4, 2, 0, -1, -3, -5, -7, -9, -10, -11, -12, //125488
-11, -10, -10, -11, -13, -13, -14, -13, -12, -12, -12, -11, -12, -13, -13, -11, //125504
-11, -12, -12, -13, -14, -15, -17, -18, -19, -21, -22, -22, -21, -20, -19, -18, //125520
-19, -19, -19, -21, -21, -21, -22, -23, -22, -23, -25, -25, -25, -26, -27, -27, //125536
-27, -26, -24, -23, -21, -18, -17, -15, -13, -14, -13, -14, -14, -13, -13, -13, //125552
-14, -14, -14, -12, -11, -9, -9, -9, -7, -8, -7, -7, -6, -4, -1, 1, //125568
2, 3, 4, 5, 8, 10, 11, 12, 12, 10, 9, 8, 7, 5, 3, 1, //125584
-1, -1, 0, 1, 1, 4, 4, 4, 4, 4, 4, 4, 5, 5, 3, 1, //125600
0, -3, -5, -4, -4, -5, -4, -4, -5, -6, -6, -6, -8, -8, -8, -9, //125616
-9, -7, -7, -6, -5, -4, -3, -3, -2, -3, -5, -5, -5, -5, -2, 0, //125632
1, 2, 3, 4, 1, 0, -1, -3, -5, -5, -7, -9, -10, -11, -11, -10, //125648
-10, -9, -8, -10, -11, -12, -12, -13, -13, -13, -13, -13, -13, -13, -11, -9, //125664
-8, -7, -6, -7, -7, -5, -3, -2, 1, 0, -1, 1, 2, 2, 3, 3, //125680
1, 0, 0, -1, -1, 2, 2, 2, 1, 1, 1, 4, 5, 7, 8, 9, //125696
11, 14, 15, 15, 16, 17, 17, 21, 25, 27, 28, 28, 27, 26, 26, 27, //125712
27, 27, 25, 24, 23, 20, 21, 20, 20, 20, 19, 18, 19, 20, 20, 20, //125728
19, 17, 15, 15, 14, 13, 11, 9, 7, 6, 7, 8, 8, 8, 7, 7, //125744
7, 8, 11, 12, 12, 13, 13, 12, 11, 13, 12, 9, 9, 9, 7, 6, //125760
6, 5, 2, 1, 0, -2, 0, 0, -3, -4, -4, -5, -5, -4, -3, -3, //125776
-3, -5, -7, -6, -6, -7, -5, -3, -2, -1, 0, 1, 2, 1, -2, -3, //125792
-4, -3, -4, -6, -6, -6, -8, -10, -8, -6, -4, -3, -3, -4, -3, -3, //125808
-3, -3, -3, -5, -6, -7, -8, -9, -12, -15, -15, -15, -15, -12, -11, -10, //125824
-10, -10, -10, -10, -9, -7, -5, -5, -3, -3, -2, -3, -6, -7, -4, -3, //125840
-4, -5, -5, -8, -12, -14, -15, -15, -15, -15, -15, -14, -13, -12, -12, -13, //125856
-12, -12, -13, -13, -11, -9, -8, -7, -8, -8, -7, -6, -6, -6, -6, -6, //125872
-2, -2, -2, -1, -1, -2, -5, -5, -6, -9, -11, -15, -18, -19, -19, -19, //125888
-19, -17, -17, -19, -20, -18, -16, -16, -15, -14, -12, -11, -10, -8, -7, -6, //125904
-4, -2, 0, 1, 0, -1, 0, 2, 4, 6, 7, 8, 9, 10, 11, 13, //125920
13, 13, 14, 14, 14, 13, 12, 12, 11, 10, 12, 13, 14, 15, 16, 17, //125936
19, 21, 24, 26, 28, 30, 30, 30, 30, 30, 27, 26, 26, 24, 22, 23, //125952
24, 26, 26, 26, 26, 24, 22, 19, 19, 19, 18, 16, 15, 14, 12, 11, //125968
14, 14, 16, 16, 13, 11, 10, 10, 11, 11, 9, 7, 5, 3, 2, 1, //125984
1, 1, 2, 4, 5, 6, 7, 8, 8, 7, 6, 5, 3, 1, -2, -4, //126000
-7, -8, -9, -9, -8, -8, -8, -7, -8, -9, -10, -12, -15, -15, -16, -18, //126016
-18, -19, -21, -21, -20, -19, -18, -16, -16, -19, -19, -20, -20, -20, -20, -21, //126032
-22, -24, -25, -23, -20, -20, -22, -23, -23, -24, -24, -23, -22, -21, -21, -20, //126048
-20, -20, -20, -20, -19, -17, -16, -16, -16, -14, -12, -11, -9, -8, -9, -10, //126064
-12, -11, -9, -7, -6, -5, -3, -1, 1, 2, 5, 7, 8, 9, 9, 9, //126080
9, 7, 7, 6, 6, 6, 4, 4, 3, 2, 3, 4, 5, 8, 10, 12, //126096
13, 13, 12, 12, 11, 11, 10, 8, 7, 7, 6, 6, 7, 8, 10, 10, //126112
9, 9, 10, 10, 11, 12, 13, 13, 12, 12, 11, 10, 9, 8, 6, 4, //126128
2, 0, -1, -2, -3, -4, -4, -4, -4, -3, -2, -2, -2, -3, -5, -5, //126144
-5, -5, -5, -5, -5, -5, -5, -4, -4, -4, -4, -4, -6, -7, -7, -7, //126160
-9, -11, -12, -12, -11, -11, -11, -10, -10, -9, -8, -8, -8, -9, -9, -10, //126176
-11, -11, -12, -13, -14, -14, -12, -12, -11, -11, -12, -13, -12, -8, -6, -3, //126192
-2, -2, 0, 1, 2, 6, 9, 11, 11, 11, 12, 12, 10, 10, 8, 6, //126208
5, 2, 0, -2, -3, -3, -4, -5, -6, -5, -3, -3, -3, -3, -5, -6, //126224
-6, -5, -4, -3, -1, -1, -1, -1, -2, -2, 0, 1, 3, 4, 4, 5, //126240
5, 5, 5, 5, 5, 5, 5, 3, 2, 2, 2, 1, 1, 3, 4, 4, //126256
4, 4, 3, 1, 0, 0, -2, -2, -3, -5, -6, -7, -9, -9, -9, -9, //126272
-6, -4, -3, -2, -2, -2, -3, -4, -5, -6, -6, -6, -6, -7, -8, -9, //126288
-10, -10, -11, -13, -13, -14, -16, -16, -17, -17, -17, -18, -18, -16, -14, -12, //126304
-10, -8, -6, -4, -3, -2, -1, -1, -1, -1, -2, -1, -1, -1, 1, 3, //126320
3, 4, 5, 4, 4, 2, 1, 1, 0, -2, -4, -5, -7, -10, -11, -12, //126336
-11, -11, -11, -10, -9, -9, -8, -6, -5, -5, -2, 0, 0, 1, 2, 2, //126352
3, 5, 4, 4, 4, 3, 4, 6, 7, 8, 10, 10, 13, 13, 12, 13, //126368
14, 14, 14, 12, 9, 8, 7, 8, 10, 13, 14, 15, 16, 16, 17, 17, //126384
16, 16, 16, 15, 15, 14, 15, 18, 19, 21, 23, 24, 25, 26, 24, 24, //126400
26, 25, 22, 21, 18, 17, 16, 14, 14, 12, 12, 11, 10, 9, 7, 5, //126416
4, 3, 2, 1, -1, -4, -5, -4, -4, -3, -3, -2, -1, -2, -3, -4, //126432
-5, -6, -6, -6, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -18, //126448
-18, -18, -18, -18, -19, -20, -22, -22, -23, -22, -20, -20, -20, -19, -18, -18, //126464
-16, -14, -11, -11, -11, -11, -11, -9, -9, -9, -8, -8, -9, -9, -10, -10, //126480
-9, -7, -7, -6, -4, -3, -4, -5, -5, -5, -6, -7, -7, -6, -6, -7, //126496
-6, -6, -5, -5, -5, -4, -4, -4, -3, -4, -6, -7, -8, -9, -9, -9, //126512
-10, -10, -11, -13, -13, -14, -15, -16, -16, -15, -15, -14, -13, -13, -13, -13, //126528
-13, -13, -14, -14, -13, -14, -14, -15, -16, -17, -19, -18, -17, -16, -15, -15, //126544
-12, -10, -9, -8, -7, -5, -3, 0, 2, 3, 3, 3, 4, 4, 4, 5, //126560
6, 7, 8, 7, 6, 5, 5, 7, 8, 9, 8, 8, 8, 7, 8, 7, //126576
7, 7, 7, 7, 8, 7, 6, 5, 2, 1, 0, 0, 1, 2, 5, 9, //126592
12, 13, 14, 16, 17, 19, 20, 21, 22, 23, 22, 20, 19, 20, 21, 22, //126608
23, 25, 26, 24, 25, 25, 26, 28, 29, 30, 30, 29, 27, 27, 26, 26, //126624
27, 26, 26, 26, 24, 22, 20, 19, 18, 18, 18, 16, 15, 13, 12, 12, //126640
12, 12, 12, 13, 14, 15, 16, 18, 18, 18, 18, 16, 14, 12, 11, 9, //126656
7, 4, 1, 0, 0, -1, -2, -3, -3, -4, -5, -5, -6, -6, -7, -8, //126672
-8, -7, -7, -5, -5, -6, -7, -8, -10, -10, -10, -10, -9, -10, -10, -10, //126688
-11, -11, -9, -8, -8, -9, -11, -11, -11, -11, -9, -9, -11, -11, -12, -14, //126704
-13, -12, -11, -11, -12, -13, -15, -15, -14, -13, -9, -5, -4, -4, -4, -5, //126720
-4, -2, -1, -1, -1, -1, -2, -3, -4, -4, -2, 0, 0, 0, -1, -2, //126736
-3, -4, -4, -3, -3, -3, -3, -3, -3, -3, -2, 1, 1, 1, 1, 0, //126752
0, -1, -3, -4, -4, -4, -4, -4, -5, -4, -4, -5, -4, -4, -3, -3, //126768
-3, -3, -4, -3, -2, -2, -1, -1, -1, -2, -2, -3, -6, -7, -8, -9, //126784
-10, -11, -12, -12, -11, -11, -12, -13, -13, -13, -10, -8, -6, -5, -5, -6, //126800
-8, -8, -9, -11, -12, -13, -14, -15, -15, -15, -15, -14, -12, -11, -10, -10, //126816
-11, -12, -13, -14, -15, -15, -13, -13, -13, -14, -14, -13, -12, -10, -9, -8, //126832
-8, -8, -10, -11, -10, -9, -8, -4, -4, -3, -3, -4, -4, -1, 1, 2, //126848
4, 3, 3, 4, 5, 5, 5, 6, 8, 9, 11, 11, 11, 11, 11, 11, //126864
13, 14, 14, 13, 13, 14, 14, 12, 12, 10, 8, 7, 6, 4, 3, 3, //126880
2, 2, 5, 7, 9, 10, 12, 12, 12, 12, 11, 11, 11, 11, 9, 7, //126896
6, 5, 6, 7, 8, 10, 9, 7, 5, 5, 5, 6, 6, 6, 6, 4, //126912
2, 1, 1, 2, 3, 2, 3, 3, 4, 4, 4, 4, 3, 3, 3, 3, //126928
3, 0, -1, -3, -3, -2, -1, 1, 3, 4, 4, 5, 5, 4, 3, 2, //126944
1, -1, -3, -5, -6, -6, -7, -8, -7, -7, -7, -6, -6, -9, -11, -12, //126960
-14, -15, -15, -14, -14, -15, -15, -13, -11, -10, -11, -12, -12, -12, -12, -8, //126976
-5, -3, -3, -3, -2, -1, 0, 1, 1, -1, -2, -1, -1, 0, 2, 1, //126992
2, 3, 4, 5, 6, 7, 5, 5, 6, 5, 5, 6, 6, 5, 3, 3, //127008
4, 6, 8, 8, 8, 9, 8, 8, 10, 12, 14, 16, 16, 14, 13, 13, //127024
12, 9, 9, 8, 7, 7, 8, 9, 9, 9, 8, 8, 9, 12, 14, 14, //127040
12, 9, 7, 6, 6, 7, 8, 8, 7, 6, 7, 8, 9, 10, 11, 9, //127056
8, 8, 8, 9, 10, 9, 8, 8, 6, 5, 5, 6, 5, 2, 2, 1, //127072
0, -1, -1, -1, -3, -5, -6, -7, -7, -8, -9, -11, -13, -15, -15, -14, //127088
-11, -9, -10, -12, -13, -13, -12, -11, -10, -11, -14, -14, -14, -13, -11, -10, //127104
-9, -11, -12, -13, -13, -11, -11, -13, -13, -11, -12, -12, -8, -6, -6, -7, //127120
-8, -9, -8, -7, -7, -6, -5, -5, -4, -2, 0, 1, 2, 1, 0, 1, //127136
1, 1, 0, 0, 0, 1, 2, 4, 6, 7, 6, 4, 1, -1, -1, -2, //127152
-3, -5, -8, -9, -11, -12, -12, -12, -13, -11, -8, -7, -6, -5, -5, -5, //127168
-6, -8, -11, -13, -15, -17, -18, -19, -21, -21, -22, -22, -21, -21, -21, -19, //127184
-17, -16, -16, -16, -15, -13, -15, -18, -18, -18, -19, -18, -16, -16, -15, -13, //127200
-12, -12, -12, -14, -14, -14, -13, -14, -14, -14, -16, -17, -15, -15, -14, -12, //127216
-10, -8, -5, -2, 1, 2, 4, 6, 8, 11, 12, 13, 13, 14, 14, 14, //127232
15, 15, 15, 13, 12, 13, 13, 14, 14, 14, 13, 14, 14, 14, 13, 12, //127248
12, 12, 13, 14, 15, 16, 17, 17, 16, 16, 16, 17, 17, 16, 16, 16, //127264
14, 13, 13, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 15, //127280
15, 16, 17, 16, 16, 17, 17, 19, 21, 22, 22, 22, 21, 21, 21, 21, //127296
20, 18, 18, 17, 16, 15, 10, 8, 7, 6, 5, 5, 5, 5, 5, 5, //127312
6, 7, 9, 9, 9, 8, 6, 4, 4, 3, 1, 0, 0, -3, -4, -4, //127328
-4, -4, -5, -7, -7, -9, -9, -11, -13, -13, -13, -13, -13, -11, -9, -7, //127344
-5, -5, -5, -3, -2, -2, -3, -3, -3, -3, -2, -1, -1, 0, 1, 2, //127360
2, 2, 2, 1, 1, 3, 4, 6, 6, 6, 5, 5, 5, 4, 4, 4, //127376
4, 4, 2, 2, 2, 2, 2, 3, 5, 5, 5, 6, 6, 7, 7, 4, //127392
2, 2, 1, 1, 1, 0, 0, 2, 4, 5, 6, 8, 11, 13, 14, 14, //127408
14, 14, 13, 12, 10, 8, 8, 7, 8, 8, 8, 9, 11, 11, 12, 14, //127424
17, 17, 15, 14, 13, 13, 12, 10, 8, 5, 2, 2, 3, 5, 6, 7, //127440
8, 7, 5, 5, 2, 0, -2, -5, -9, -12, -14, -15, -16, -16, -14, -13, //127456
-12, -12, -12, -11, -12, -14, -15, -15, -16, -16, -14, -14, -15, -15, -13, -13, //127472
-10, -9, -10, -9, -10, -10, -10, -10, -10, -9, -8, -7, -8, -9, -10, -11, //127488
-11, -11, -11, -11, -11, -10, -11, -10, -11, -12, -12, -13, -14, -14, -14, -15, //127504
-16, -18, -21, -22, -23, -25, -25, -23, -23, -22, -21, -20, -20, -17, -16, -15, //127520
-13, -11, -11, -11, -9, -7, -4, -3, -2, -1, 0, 0, 0, -1, 0, 0, //127536
0, 0, 1, 2, 3, 4, 4, 3, 1, 1, 1, 0, -1, -2, -3, -4, //127552
-3, -2, -1, 0, 0, -2, -3, -5, -6, -7, -8, -11, -13, -14, -14, -13, //127568
-14, -15, -14, -14, -14, -13, -14, -15, -15, -14, -14, -14, -13, -13, -15, -16, //127584
-14, -14, -14, -14, -14, -13, -13, -11, -9, -8, -9, -10, -10, -11, -10, -9, //127600
-8, -8, -10, -10, -9, -8, -6, -3, -2, -2, -2, -2, -2, -2, -1, 1, //127616
1, 1, 1, 1, 1, 1, 0, 0, 0, 2, 3, 4, 6, 6, 6, 6, //127632
6, 6, 6, 6, 5, 4, 4, 5, 6, 8, 9, 9, 10, 10, 9, 10, //127648
10, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 9, 10, 11, 12, 13, //127664
14, 12, 12, 13, 13, 13, 11, 10, 9, 8, 7, 5, 4, 3, 4, 5, //127680
6, 7, 9, 10, 10, 11, 12, 12, 14, 16, 16, 14, 14, 12, 13, 13, //127696
14, 15, 16, 18, 18, 19, 20, 23, 26, 27, 27, 28, 28, 26, 23, 22, //127712
22, 20, 18, 18, 19, 20, 21, 21, 21, 21, 20, 20, 21, 22, 20, 16, //127728
13, 9, 7, 5, 5, 4, 5, 6, 5, 3, 3, 1, 0, -1, -2, -5, //127744
-8, -11, -13, -13, -14, -19, -18, -16, -16, -16, -14, -12, -11, -11, -12, -14, //127760
-15, -15, -17, -17, -18, -19, -19, -18, -16, -15, -15, -13, -10, -8, -7, -6, //127776
-5, -2, 0, 0, 0, 1, 2, 2, 4, 5, 5, 6, 7, 10, 10, 11, //127792
10, 7, 4, 2, 1, 0, 0, 0, -3, -3, -3, -3, -3, -5, -7, -7, //127808
-7, -7, -8, -9, -8, -8, -8, -9, -10, -10, -11, -10, -8, -8, -8, -9, //127824
-11, -11, -10, -8, -8, -7, -6, -7, -8, -10, -11, -13, -14, -14, -15, -18, //127840
-18, -20, -22, -24, -24, -23, -21, -20, -18, -17, -17, -15, -16, -16, -14, -11, //127856
-9, -9, -9, -9, -8, -8, -8, -8, -9, -11, -11, -11, -10, -9, -8, -8, //127872
-8, -6, -4, -5, -5, -4, -3, -3, -2, -3, -4, -5, -5, -3, -2, -1, //127888
0, 2, 6, 9, 11, 13, 14, 14, 13, 12, 11, 9, 9, 10, 10, 10, //127904
10, 9, 10, 11, 13, 14, 13, 10, 8, 6, 5, 7, 9, 10, 11, 11, //127920
12, 14, 15, 19, 23, 24, 24, 23, 24, 24, 24, 23, 22, 21, 19, 19, //127936
18, 19, 21, 22, 23, 25, 26, 26, 25, 23, 21, 18, 17, 16, 15, 15, //127952
15, 11, 10, 10, 9, 7, 7, 7, 5, 5, 5, 3, 3, 2, 1, 0, //127968
0, 1, 1, 1, 0, -1, -3, -3, -2, -2, -2, -2, -4, -6, -7, -8, //127984
-7, -6, -6, -3, -3, -2, -2, -3, -3, -4, -6, -7, -7, -8, -9, -9, //128000
-8, -8, -11, -11, -12, -12, -11, -10, -8, -7, -7, -6, -5, -6, -6, -4, //128016
-3, -2, -1, 0, 0, -2, -4, -5, -5, -5, -3, -3, -3, -2, -3, -3, //128032
-2, -3, -4, -3, -3, -4, -4, -5, -5, -4, -4, -4, -5, -5, -5, -5, //128048
-5, -7, -7, -8, -8, -8, -6, -6, -6, -6, -6, -6, -6, -6, -5, -5, //128064
-5, -5, -4, -3, -2, -1, 1, 1, 0, 0, 1, 3, 5, 5, 6, 5, //128080
4, 4, 5, 4, 3, 3, 2, -1, -3, -3, -3, -2, -1, -2, -5, -5, //128096
-5, -4, -1, 1, 0, 1, 3, 6, 9, 11, 10, 9, 8, 6, 5, 5, //128112
4, 4, 5, 5, 5, 7, 8, 9, 11, 12, 14, 13, 11, 10, 9, 8, //128128
5, 4, 4, 4, 5, 5, 3, 3, 2, 2, 3, 5, 4, 3, 2, 0, //128144
-2, -2, -1, 0, 1, 2, 3, 4, 4, 3, 2, 2, 2, 3, 2, 1, //128160
1, 0, 0, -2, -2, -2, -2, -2, -2, -2, -3, -4, -5, -5, -5, -6, //128176
-7, -7, -8, -9, -11, -13, -15, -15, -15, -15, -15, -15, -15, -16, -18, -18, //128192
-17, -16, -14, -14, -15, -15, -14, -14, -14, -12, -11, -10, -9, -9, -10, -11, //128208
-13, -14, -14, -14, -15, -16, -18, -21, -23, -24, -24, -22, -21, -21, -20, -18, //128224
-17, -15, -13, -14, -15, -15, -11, -9, -8, -6, -4, -2, -1, -1, 0, 2, //128240
2, 0, -1, 0, 0, -1, -2, -1, -2, -3, -3, -4, -5, -7, -7, -6, //128256
-5, -4, -4, -3, -2, -3, -3, -2, -2, -2, -4, -5, -6, -9, -9, -9, //128272
-9, -7, -5, -4, -2, -1, 0, 2, 4, 5, 5, 4, 4, 3, 0, -2, //128288
-4, -4, -5, -7, -6, -6, -8, -9, -9, -9, -9, -7, -7, -8, -8, -8, //128304
-8, -7, -6, -5, -6, -6, -6, -7, -7, -6, -4, 1, 3, 5, 8, 8, //128320
6, 4, 3, 1, -1, -1, -4, -5, -5, -5, -5, -3, -2, -1, -1, -1, //128336
1, -1, -3, -4, -6, -9, -9, -10, -11, -10, -9, -7, -5, -2, 1, 3, //128352
6, 7, 10, 10, 12, 12, 11, 12, 13, 14, 13, 13, 14, 13, 14, 14, //128368
14, 16, 17, 19, 20, 19, 19, 18, 16, 14, 14, 14, 12, 12, 11, 7, //128384
7, 10, 11, 12, 15, 15, 15, 14, 14, 12, 9, 7, 6, 5, 5, 8, //128400
9, 10, 11, 13, 15, 15, 17, 19, 20, 20, 20, 16, 14, 12, 10, 9, //128416
9, 8, 6, 3, 3, 4, 4, 5, 6, 6, 5, 5, 6, 4, 3, 3, //128432
4, 5, 6, 7, 7, 5, 1, -1, -1, -1, -2, -2, -2, -4, -4, -3, //128448
-3, -4, -6, -7, -8, -9, -9, -7, -8, -6, -5, -6, -6, -5, -6, -5, //128464
-5, -5, -4, -4, -4, -5, -5, -4, -4, -4, -5, -5, -6, -8, -8, -7, //128480
-8, -8, -7, -5, -6, -6, -6, -6, -7, -9, -8, -7, -6, -6, -6, -6, //128496
-6, -5, -3, 0, 2, 5, 5, 5, 4, 2, 2, 4, 3, 1, -1, -2, //128512
-4, -4, -6, -7, -7, -7, -8, -8, -8, -7, -7, -9, -8, -7, -9, -9, //128528
-8, -8, -7, -7, -6, -4, -4, -4, -5, -6, -7, -8, -8, -6, -6, -7, //128544
-7, -5, -5, -5, -5, -5, -6, -7, -7, -7, -8, -8, -8, -8, -8, -8, //128560
-8, -7, -6, -6, -6, -5, -4, -4, -4, -3, -3, -2, 1, 3, 5, 7, //128576
9, 9, 9, 10, 10, 9, 8, 7, 8, 8, 7, 7, 7, 6, 5, 6, //128592
8, 9, 9, 10, 10, 10, 9, 10, 10, 8, 8, 5, 3, 2, 2, 3, //128608
4, 4, 6, 7, 8, 9, 12, 14, 16, 18, 19, 22, 21, 21, 21, 20, //128624
20, 21, 21, 22, 22, 21, 19, 18, 19, 18, 16, 16, 15, 11, 9, 7, //128640
6, 4, 4, 4, 2, 2, 3, 3, 2, 3, 5, 6, 7, 9, 9, 10, //128656
11, 11, 12, 13, 13, 13, 13, 10, 7, 7, 5, 5, 6, 7, 7, 7, //128672
7, 6, 4, 4, 3, 2, 1, 0, -3, -5, -6, -7, -8, -7, -7, -7, //128688
-6, -6, -6, -7, -8, -7, -7, -7, -6, -6, -7, -6, -4, -2, -1, 1, //128704
2, 1, 1, 1, 1, 1, -1, -2, -4, -7, -9, -9, -8, -10, -10, -10, //128720
-10, -9, -7, -7, -7, -8, -9, -11, -13, -15, -16, -16, -16, -16, -15, -16, //128736
-16, -14, -14, -11, -9, -9, -10, -10, -9, -8, -7, -6, -6, -6, -6, -7, //128752
-8, -7, -6, -6, -6, -6, -6, -7, -7, -6, -7, -9, -9, -10, -10, -10, //128768
-10, -9, -7, -7, -9, -9, -9, -10, -10, -8, -7, -7, -7, -8, -8, -7, //128784
-7, -7, -6, -6, -7, -7, -7, -7, -6, -5, -4, -4, -3, -1, 0, 0, //128800
0, 2, 2, 3, 3, 4, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, //128816
7, 5, 4, 3, 1, 0, -1, -4, -5, -5, -5, -6, -8, -8, -8, -7, //128832
-6, -6, -4, -5, -4, -4, -4, -4, -4, -5, -6, -6, -3, -3, -5, -5, //128848
-5, -6, -6, -6, -5, -6, -7, -8, -10, -12, -13, -13, -14, -14, -12, -10, //128864
-9, -9, -8, -8, -8, -6, -5, -5, -4, -4, -4, -3, -3, -3, -3, -3, //128880
-5, -5, -6, -5, -5, -6, -6, -7, -6, -5, -4, -2, -2, -2, -2, -3, //128896
-4, -3, -4, -4, -4, -4, -5, -5, -6, -7, -7, -8, -9, -9, -10, -10, //128912
-11, -11, -9, -8, -6, -2, 0, 4, 7, 9, 9, 10, 12, 10, 10, 10, //128928
9, 8, 8, 7, 5, 4, 4, 4, 8, 9, 9, 8, 7, 7, 5, 5, //128944
5, 5, 5, 4, 4, 2, 1, 1, 1, 2, 4, 6, 6, 5, 4, 4, //128960
3, 3, 4, 5, 5, 3, 3, 2, 1, 1, 1, 1, 2, 2, 1, 0, //128976
-2, -4, -5, -6, -8, -7, -8, -8, -7, -7, -7, -6, -6, -7, -6, -5, //128992
-5, -4, -4, -4, -4, -4, -3, -3, -2, -3, -4, -4, -5, -4, -3, -2, //129008
1, 1, 4, 5, 7, 7, 6, 4, 2, 0, 1, 1, 0, -1, -1, -2, //129024
-1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 4, 4, 1, 1, 3, 5, //129040
6, 7, 7, 7, 9, 10, 12, 14, 18, 20, 19, 20, 20, 19, 19, 19, //129056
17, 17, 17, 17, 16, 15, 16, 17, 18, 18, 16, 16, 15, 13, 13, 12, //129072
10, 10, 9, 9, 9, 9, 8, 9, 10, 11, 13, 15, 16, 16, 15, 13, //129088
14, 13, 10, 8, 7, 5, 4, 6, 7, 9, 10, 9, 9, 10, 11, 10, //129104
10, 10, 6, 5, 4, 3, 1, -1, -3, -3, -3, -4, -5, -6, -6, -7, //129120
-6, -6, -8, -10, -10, -11, -11, -11, -10, -10, -8, -8, -11, -12, -15, -19, //129136
-20, -20, -20, -18, -17, -18, -18, -19, -20, -20, -18, -18, -18, -18, -19, -21, //129152
-20, -20, -20, -18, -18, -18, -18, -18, -18, -19, -20, -20, -20, -21, -21, -19, //129168
-17, -15, -13, -11, -11, -9, -9, -8, -8, -7, -7, -9, -7, -6, -5, -4, //129184
-3, -1, 0, 1, 2, 2, 2, 4, 3, 3, 4, 6, 8, 9, 9, 10, //129200
9, 8, 8, 7, 7, 6, 5, 4, 2, 2, 1, 0, 1, -1, -1, -2, //129216
-3, -3, -4, -3, -3, -3, -2, -2, -3, -2, -3, -4, -3, -3, -5, -7, //129232
-7, -8, -8, -8, -10, -10, -10, -11, -11, -9, -10, -10, -10, -11, -12, -14, //129248
-15, -14, -13, -11, -11, -8, -6, -4, -2, 1, 3, 6, 8, 8, 7, 6, //129264
5, 6, 8, 10, 11, 12, 15, 18, 18, 17, 17, 17, 18, 17, 16, 16, //129280
15, 13, 13, 12, 11, 10, 11, 12, 12, 11, 10, 8, 8, 8, 8, 9, //129296
9, 9, 10, 10, 11, 11, 11, 11, 10, 9, 9, 9, 9, 9, 7, 7, //129312
8, 8, 8, 8, 7, 6, 5, 4, 4, 2, 3, 3, 3, 5, 6, 6, //129328
6, 5, 4, 4, 3, 2, 0, -1, -2, -1, 0, 0, 1, 1, 1, 2, //129344
3, 5, 6, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, //129360
4, 4, 3, 0, -1, -1, -4, -4, -4, -4, -5, -5, -5, -5, -4, -2, //129376
-2, -3, -4, -5, -7, -7, -7, -9, -9, -9, -10, -10, -8, -5, -5, -4, //129392
-3, -4, -4, -4, -4, -4, -5, -5, -4, -3, -2, -1, -1, 0, -1, -3, //129408
-4, -5, -5, -6, -7, -8, -10, -10, -10, -10, -11, -12, -13, -13, -14, -15, //129424
-15, -14, -13, -13, -13, -12, -11, -10, -9, -7, -6, -5, -3, -2, -2, -1, //129440
1, 2, 3, 3, 2, 3, 3, 2, 2, 2, 2, 1, 1, 2, 2, 2, //129456
4, 5, 5, 7, 7, 6, 6, 6, 5, 4, 3, 2, 2, 3, 3, 4, //129472
4, 3, 3, 2, 2, 2, 2, 2, 4, 5, 5, 5, 6, 6, 6, 7, //129488
7, 4, 1, -2, -2, -1, 0, 2, 3, 3, 2, 2, 3, 3, 2, 1, //129504
0, -1, -4, -4, -5, -5, -4, -3, -2, -2, -4, -4, -4, -5, -5, -8, //129520
-7, -8, -8, -7, -7, -8, -8, -7, -6, -5, -3, -2, -3, -5, -5, -6, //129536
-8, -9, -9, -8, -8, -7, -6, -5, -5, -5, -5, -2, -2, -2, -1, -1, //129552
-3, -3, -3, -2, -2, -2, -1, -1, -1, 0, 1, 1, 1, 1, 1, 2, //129568
3, 2, 3, 4, 3, 3, 4, 4, 1, 1, 1, 0, 0, 2, 3, 3, //129584
4, 4, 3, 3, 3, 2, 2, 1, -2, -4, -6, -8, -8, -8, -6, -6, //129600
-5, -3, -3, -1, -1, -2, -3, -4, -4, -2, -1, 0, 0, 0, 0, 3, //129616
4, 5, 5, 5, 4, 2, 2, 2, 1, 0, 1, 1, 1, 1, 2, 2, //129632
3, 4, 4, 4, 5, 5, 4, 3, 1, 0, 0, 2, 5, 10, 11, 11, //129648
9, 7, 4, 4, 4, 3, 2, 1, 0, 0, 1, 2, 2, 2, 1, 0, //129664
-1, -2, -6, -8, -10, -11, -12, -13, -12, -11, -11, -11, -9, -10, -11, -11, //129680
-11, -12, -13, -14, -14, -14, -14, -12, -11, -11, -10, -9, -9, -9, -8, -8, //129696
-8, -8, -8, -9, -9, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, //129712
-1, -2, -2, -2, -2, 0, 1, 1, 1, 2, 3, 5, 7, 7, 7, 7, //129728
5, 5, 4, 4, 5, 5, 5, 4, 4, 4, 4, 8, 11, 12, 12, 13, //129744
13, 13, 14, 14, 13, 12, 12, 12, 11, 11, 13, 13, 12, 13, 13, 13, //129760
13, 13, 13, 13, 12, 11, 10, 10, 8, 7, 7, 7, 8, 9, 10, 10, //129776
10, 10, 9, 10, 11, 11, 10, 8, 7, 4, 3, 2, 2, 2, 0, 0, //129792
0, 1, 2, 3, 2, 1, -1, -2, -3, -3, -3, -3, -3, -4, -6, -6, //129808
-5, -5, -4, -3, -3, -5, -6, -8, -9, -11, -13, -14, -16, -17, -17, -15, //129824
-12, -11, -10, -9, -7, -7, -5, -4, -3, -1, 0, -1, 0, 1, 2, 2, //129840
3, 6, 6, 6, 6, 7, 7, 6, 6, 6, 5, 5, 0, -1, -2, -4, //129856
-3, -1, -1, 0, 1, 1, 1, 1, 4, 5, 5, 4, 3, 1, -1, -1, //129872
0, 0, 0, 3, 5, 5, 6, 8, 8, 10, 9, 8, 7, 6, 6, 5, //129888
5, 4, 3, 1, -2, -2, -3, -4, -4, -4, -6, -7, -8, -10, -10, -10, //129904
-11, -10, -10, -9, -7, -5, -2, -1, 0, 0, 1, 3, 5, 5, 3, 2, //129920
-2, -4, -6, -7, -8, -8, -9, -8, -8, -7, -7, -8, -7, -7, -9, -9, //129936
-9, -13, -14, -15, -16, -15, -13, -9, -7, -5, -2, 0, 2, 4, 5, 5, //129952
5, 5, 1, -1, -3, -5, -5, -6, -6, -5, -4, -1, 0, 2, 4, 4, //129968
4, 4, 4, 4, 5, 6, 5, 6, 8, 8, 9, 9, 9, 10, 10, 11, //129984
12, 11, 10, 8, 6, 6, 5, 5, 6, 6, 6, 6, 7, 10, 13, 16, //130000
16, 15, 14, 14, 12, 10, 10, 10, 9, 9, 9, 9, 8, 8, 9, 10, //130016
10, 11, 12, 12, 12, 12, 9, 8, 9, 9, 10, 10, 9, 7, 5, 3, //130032
4, 4, 4, 5, 4, 4, 5, 6, 8, 9, 10, 9, 6, 4, 3, 2, //130048
1, 0, -1, -2, -2, -2, -1, 0, 1, 1, 2, 2, 1, 0, -1, -2, //130064
-3, -4, -5, -5, -6, -7, -7, -7, -9, -9, -7, -6, -6, -6, -5, -5, //130080
-4, -5, -5, -5, -7, -8, -8, -7, -7, -8, -9, -10, -12, -13, -13, -11, //130096
-9, -9, -8, -8, -8, -9, -9, -9, -10, -11, -11, -12, -13, -13, -14, -14, //130112
-14, -15, -16, -17, -17, -17, -20, -20, -20, -21, -21, -20, -17, -15, -13, -10, //130128
-10, -10, -10, -10, -11, -12, -12, -13, -13, -14, -14, -13, -13, -10, -8, -5, //130144
-3, -1, -1, -2, -3, -4, -4, -4, -5, -6, -7, -8, -8, -6, -4, -2, //130160
-2, -2, -1, -1, 0, 0, -2, -3, -3, -3, -2, -1, 3, 6, 6, 9, //130176
10, 11, 13, 15, 16, 17, 16, 15, 14, 14, 13, 13, 12, 12, 12, 10, //130192
9, 8, 8, 9, 10, 10, 9, 10, 9, 6, 5, 4, 3, 4, 4, 4, //130208
3, 1, 0, -2, -2, 0, 3, 4, 5, 5, 3, 2, 0, 0, 1, 1, //130224
0, 0, -1, -3, -4, -3, -3, -4, -2, -1, -1, 0, 0, -3, -2, -1, //130240
0, 1, 2, 2, 1, 1, 0, -2, -1, -1, -1, 0, -1, -1, 2, 4, //130256
6, 7, 7, 7, 6, 5, 5, 5, 3, -2, -5, -7, -10, -13, -13, -13, //130272
-12, -12, -11, -9, -5, -2, 0, 1, 3, 5, 5, 4, 4, 4, 3, 3, //130288
6, 5, 6, 6, 6, 5, 6, 8, 8, 7, 7, 4, 1, -1, -2, -2, //130304
-2, 0, 0, 0, 0, 0, 1, 3, 4, 5, 6, 6, 5, 4, 2, 0, //130320
0, 0, -1, -1, -1, -2, -3, -4, -4, -4, -3, -2, -1, -1, -2, -3, //130336
-4, -5, -6, -7, -7, -7, -6, -6, -6, -5, -5, -4, -2, -2, -1, -2, //130352
-2, -3, -4, -6, -8, -9, -9, -10, -11, -10, -10, -10, -9, -7, -5, -2, //130368
-2, -2, -3, -4, -5, -5, -6, -6, -7, -7, -7, -8, -9, -9, -9, -9, //130384
-9, -8, -8, -7, -7, -8, -9, -8, -7, -8, -8, -6, -6, -6, -5, -4, //130400
-3, -2, -1, -1, -1, -1, -1, 0, -1, -3, -3, -2, -2, -1, 0, -1, //130416
-2, -2, -2, 0, 1, 2, 2, 1, 0, -1, -2, -2, -2, -3, -2, -1, //130432
0, 2, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 6, 7, //130448
8, 7, 5, 5, 3, 2, 1, 2, 4, 4, 5, 5, 4, 4, 4, 4, //130464
3, 4, 5, 4, 4, 6, 7, 8, 9, 10, 12, 12, 13, 13, 13, 13, //130480
9, 8, 8, 8, 9, 9, 9, 9, 10, 10, 12, 17, 17, 16, 15, 15, //130496
14, 10, 10, 10, 6, 3, 1, -1, -2, -2, -1, -1, -1, -1, -2, -2, //130512
-1, 1, 0, 1, 2, 1, 1, 2, 2, 0, -2, -4, -5, -4, -5, -6, //130528
-5, -5, -6, -6, -5, -3, -3, -3, -3, -4, -6, -8, -9, -9, -11, -10, //130544
-9, -9, -9, -9, -7, -7, -6, -3, -2, -3, -1, -1, -3, -5, -4, -5, //130560
-6, -6, -5, -4, -5, -5, -6, -7, -7, -6, -6, -7, -8, -9, -11, -11, //130576
-9, -8, -8, -8, -8, -8, -7, -5, -3, -2, -1, -1, 1, 3, 3, 2, //130592
2, -1, -2, -2, -1, 0, 1, 2, 2, 1, 0, 0, -1, -2, -3, -4, //130608
-5, -7, -11, -14, -15, -15, -13, -11, -10, -9, -8, -5, -5, -4, -5, -6, //130624
-6, -7, -7, -7, -7, -8, -10, -11, -11, -10, -10, -9, -8, -9, -9, -8, //130640
-7, -6, -4, -1, 3, 2, 2, 1, -2, -2, -5, -5, -6, -9, -10, -11, //130656
-11, -10, -9, -7, -5, -3, -1, 0, 1, 1, -1, -4, -3, -1, 0, 1, //130672
1, 0, 1, 2, 4, 6, 5, 5, 4, 4, 6, 6, 5, 5, 5, 5, //130688
5, 4, 3, 2, 3, 3, 4, 3, 3, 3, 4, 4, 4, 4, 4, 3, //130704
3, 4, 5, 5, 5, 6, 7, 7, 8, 10, 11, 11, 12, 13, 13, 13, //130720
13, 14, 13, 10, 8, 7, 7, 7, 7, 9, 9, 11, 15, 15, 17, 20, //130736
21, 21, 19, 19, 16, 16, 16, 15, 14, 15, 16, 17, 18, 19, 19, 18, //130752
18, 17, 15, 13, 12, 9, 9, 9, 8, 8, 9, 9, 9, 10, 10, 9, //130768
7, 6, 4, 1, 0, -1, 0, 2, 4, 4, 4, 2, 1, 1, 0, 0, //130784
1, -1, -2, -4, -5, -6, -8, -6, -5, -4, -4, -6, -8, -11, -13, -13, //130800
-14, -15, -15, -15, -15, -14, -13, -13, -13, -13, -12, -10, -10, -10, -11, -11, //130816
-12, -14, -15, -17, -18, -18, -19, -21, -22, -23, -24, -24, -24, -22, -22, -22, //130832
-23, -23, -23, -23, -20, -18, -16, -14, -14, -12, -12, -12, -11, -11, -11, -11, //130848
-11, -13, -15, -15, -15, -13, -11, -9, -8, -8, -8, -9, -10, -9, -8, -7, //130864
-6, -4, -2, -2, -2, -1, 0, 1, 3, 4, 4, 3, 1, 1, 0, 0, //130880
0, 0, 1, 2, 1, 0, 0, 3, 3, 4, 6, 7, 8, 9, 10, 10, //130896
10, 11, 11, 10, 10, 10, 9, 8, 7, 5, 3, 2, 2, 2, 2, 2, //130912
2, 1, 1, 3, 4, 6, 6, 5, 4, 1, 0, -2, -4, -5, -6, -7, //130928
-8, -9, -9, -8, -8, -6, -4, -4, -5, -6, -8, -10, -11, -12, -13, -14, //130944
-13, -13, -12, -13, -13, -11, -11, -11, -11, -10, -9, -8, -6, -5, -4, -3, //130960
-3, -4, -3, -3, -4, -4, -4, -5, -5, -4, -4, -4, -1, 2, 4, 4, //130976
4, 7, 7, 7, 8, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 8, //130992
8, 8, 6, 6, 6, 5, 3, 3, 3, 4, 5, 6, 7, 8, 8, 8, //131008
7, 7, 7, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 6, 6, 5, //131024
5, 5, 5, 6, 7, 8, 8, 7, 7, 7, 7, 7, 7, 6, 4, 2, //131040
1, 1, 1, 0, 0, 3, 4, 4, 4, 4, 4, 3, 1, -1, -2, -4, //131056
-6, -7, -7, -8, -8, -8, -7, -7, -7, -6, -4, -5, -6, -8, -10, -13, //131072
-16, -17, -17, -17, -17, -17, -15, -13, -12, -11, -10, -9, -9, -10, -11, -11, //131088
-12, -14, -14, -11, -9, -7, -7, -7, -8, -9, -9, -8, -7, -6, -7, -7, //131104
-7, -7, -6, -6, -3, -3, -3, -3, -3, -5, -6, -7, -7, -7, -7, -4, //131120
-3, -3, -2, -1, 0, 1, 0, -1, -2, -3, -6, -8, -9, -8, -7, -7, //131136
-3, -1, 0, 1, 5, 8, 9, 10, 10, 9, 9, 9, 9, 10, 10, 11, //131152
12, 14, 17, 18, 19, 22, 21, 21, 20, 20, 19, 17, 16, 14, 12, 12, //131168
11, 11, 14, 15, 15, 16, 19, 21, 22, 23, 24, 24, 22, 19, 19, 19, //131184
17, 15, 12, 9, 8, 9, 12, 13, 14, 15, 16, 15, 16, 17, 14, 13, //131200
12, 10, 10, 8, 6, 4, 4, 4, 4, 4, 4, 6, 7, 8, 8, 7, //131216
5, 4, 5, 6, 6, 3, 1, -1, -4, -5, -4, -5, -6, -6, -6, -6, //131232
-6, -6, -6, -6, -5, -3, -3, -3, -4, -5, -6, -7, -6, -6, -6, -7, //131248
-10, -13, -14, -15, -16, -17, -17, -16, -17, -18, -18, -18, -16, -15, -14, -13, //131264
-13, -15, -16, -14, -13, -12, -12, -10, -9, -10, -10, -10, -10, -8, -8, -8, //131280
-9, -10, -10, -9, -12, -12, -11, -12, -13, -14, -14, -13, -12, -12, -12, -12, //131296
-12, -12, -12, -10, -7, -5, -4, -3, 0, 5, 9, 11, 13, 14, 14, 12, //131312
10, 9, 7, 5, 4, 1, 1, 2, 5, 6, 7, 8, 8, 9, 9, 9, //131328
9, 7, 5, 5, 5, 5, 2, 2, 3, 3, 3, 3, 2, 3, 2, 1, //131344
1, -1, -2, -4, -4, -3, -4, -9, -10, -12, -12, -12, -14, -15, -17, -19, //131360
-19, -19, -16, -15, -15, -15, -16, -18, -15, -15, -15, -15, -16, -17, -17, -16, //131376
-16, -13, -11, -9, -10, -10, -10, -11, -12, -11, -10, -11, -11, -9, -8, -7, //131392
-6, -5, -4, -2, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 5, 5, //131408
5, 5, 7, 7, 8, 10, 11, 11, 9, 9, 12, 13, 14, 14, 13, 13, //131424
14, 14, 14, 14, 15, 15, 14, 13, 14, 16, 17, 17, 18, 18, 18, 17, //131440
16, 17, 16, 15, 14, 13, 14, 14, 16, 18, 20, 21, 20, 19, 19, 19, //131456
20, 21, 22, 23, 24, 24, 22, 20, 20, 21, 21, 21, 21, 19, 17, 17, //131472
17, 16, 16, 15, 13, 12, 11, 10, 10, 9, 10, 10, 10, 10, 8, 7, //131488
7, 7, 7, 5, 2, -1, -2, -3, -6, -6, -6, -7, -9, -10, -11, -10, //131504
-9, -8, -9, -9, -8, -9, -11, -12, -12, -12, -12, -10, -11, -13, -14, -14, //131520
-13, -11, -10, -10, -10, -11, -12, -13, -13, -13, -13, -13, -14, -16, -16, -15, //131536
-15, -15, -16, -16, -16, -16, -14, -14, -15, -15, -16, -16, -16, -14, -14, -14, //131552
-15, -16, -15, -13, -12, -11, -11, -11, -9, -8, -7, -7, -7, -8, -8, -8, //131568
-8, -8, -7, -7, -7, -7, -6, -4, -2, 0, 2, 3, 4, 4, 1, 0, //131584
0, 1, 1, 2, 2, 2, 1, 1, 2, 2, 5, 6, 7, 8, 9, 10, //131600
10, 10, 12, 12, 11, 11, 12, 12, 11, 11, 11, 9, 8, 6, 6, 6, //131616
8, 9, 10, 10, 10, 9, 8, 8, 7, 5, 2, -1, -7, -8, -8, -8, //131632
-6, -4, -2, -1, 0, 0, 0, 2, 2, 1, -2, -4, -7, -10, -11, -11, //131648
-10, -9, -7, -7, -7, -8, -8, -9, -9, -10, -13, -14, -15, -17, -19, -20, //131664
-20, -19, -17, -12, -10, -9, -6, -5, -5, -3, -1, -2, -4, -4, -4, -6, //131680
-7, -9, -9, -8, -8, -6, -4, -3, 0, 2, 5, 7, 7, 6, 5, 5, //131696
4, 3, 2, 1, 0, 0, 1, 3, 4, 5, 7, 11, 12, 12, 13, 13, //131712
12, 12, 12, 11, 11, 10, 7, 7, 7, 8, 9, 9, 8, 8, 8, 7, //131728
6, 5, 4, 3, 1, 0, -1, -1, 0, 0, 0, 0, 0, -2, -3, -3, //131744
-4, -5, -5, -4, -4, -3, -3, -3, -2, -1, -1, -2, -3, -4, -5, -5, //131760
-4, -5, -5, -5, -6, -6, -5, -3, -3, -2, -2, -3, -4, -4, -5, -7, //131776
-7, -7, -7, -8, -8, -8, -7, -6, -5, -6, -8, -9, -11, -12, -14, -16, //131792
-19, -20, -20, -20, -19, -16, -15, -15, -15, -15, -15, -15, -15, -14, -14, -14, //131808
-14, -13, -13, -13, -13, -13, -11, -10, -10, -10, -9, -9, -10, -8, -7, -7, //131824
-7, -4, -3, -2, -2, -2, -1, -1, -1, -1, -2, -2, -2, -5, -5, -5, //131840
-5, -3, -1, 1, 2, 3, 4, 5, 9, 9, 9, 9, 8, 8, 9, 10, //131856
10, 11, 12, 13, 14, 14, 14, 14, 15, 15, 16, 16, 17, 17, 18, 19, //131872
19, 20, 20, 20, 21, 23, 25, 26, 27, 27, 22, 19, 17, 16, 16, 15, //131888
14, 14, 15, 16, 16, 17, 20, 22, 24, 24, 24, 22, 21, 20, 20, 20, //131904
18, 17, 16, 17, 17, 16, 17, 17, 17, 17, 17, 17, 15, 15, 14, 12, //131920
12, 10, 7, 7, 6, 4, 2, 1, 0, 0, 1, 1, 1, 1, 2, 3, //131936
4, 3, 3, 3, 3, 2, 3, 3, 2, 2, 1, 0, -1, -1, -2, -3, //131952
-3, -4, -6, -8, -12, -14, -15, -14, -12, -12, -13, -12, -11, -9, -7, -7, //131968
-8, -9, -9, -9, -9, -7, -7, -7, -6, -6, -4, -2, 0, 1, 1, 3, //131984
3, 2, 2, 1, -1, -1, -5, -8, -11, -14, -14, -15, -15, -14, -14, -14, //132000
-13, -10, -7, -5, -5, -6, -7, -7, -7, -6, -6, -7, -8, -7, -5, -2, //132016
1, 3, 5, 6, 7, 7, 8, 8, 7, 7, 6, 5, 2, -2, -4, -6, //132032
-7, -8, -10, -12, -13, -12, -11, -11, -11, -12, -13, -13, -13, -13, -12, -13, //132048
-13, -13, -13, -11, -6, -4, -3, -1, -1, -3, -4, -5, -6, -9, -10, -10, //132064
-11, -12, -13, -13, -11, -10, -9, -8, -8, -8, -12, -15, -18, -20, -23, -23, //132080
-23, -23, -23, -22, -19, -16, -13, -11, -6, -4, -4, -4, -5, -7, -10, -11, //132096
-12, -13, -14, -15, -16, -16, -14, -13, -11, -10, -8, -6, -4, -4, -4, -3, //132112
-2, 0, 1, 3, 5, 6, 7, 7, 7, 9, 9, 8, 9, 8, 6, 6, //132128
5, 6, 6, 8, 11, 13, 16, 16, 16, 17, 16, 16, 17, 18, 17, 15, //132144
15, 15, 14, 15, 18, 20, 22, 22, 22, 22, 23, 23, 23, 23, 22, 22, //132160
22, 21, 20, 19, 20, 21, 23, 25, 26, 26, 25, 25, 26, 26, 26, 26, //132176
26, 25, 24, 22, 20, 19, 16, 16, 17, 16, 14, 10, 8, 6, 6, 6, //132192
6, 5, 6, 6, 5, 5, 4, 5, 7, 8, 8, 8, 5, 1, -2, -5, //132208
-6, -5, -3, -3, -3, -3, -4, -5, -6, -6, -6, -7, -9, -12, -13, -14, //132224
-14, -14, -12, -15, -16, -15, -16, -18, -18, -18, -20, -20, -21, -21, -20, -20, //132240
-21, -21, -21, -21, -19, -17, -16, -15, -14, -16, -18, -20, -21, -22, -22, -24, //132256
-27, -28, -29, -30, -28, -24, -22, -20, -18, -16, -16, -15, -16, -17, -19, -20, //132272
-21, -21, -20, -20, -20, -17, -14, -12, -10, -8, -6, -4, -2, -3, -3, -4, //132288
-5, -6, -6, -6, -6, -6, -4, -4, -3, -2, -2, -1, -1, -2, -2, -1, //132304
-1, -3, -4, -5, -6, -7, -8, -10, -10, -8, -6, -5, -3, -2, -1, 0, //132320
1, 2, 3, 3, 1, 0, -1, -2, -1, 3, 4, 5, 8, 9, 9, 8, //132336
8, 9, 9, 7, 6, 4, 1, 1, 1, 1, 2, 2, 3, 3, 3, 5, //132352
6, 7, 7, 4, 5, 4, 3, 1, 0, -1, -3, -3, -3, -3, -3, -3, //132368
-1, -1, -1, 0, 0, -1, -1, -1, -1, -2, -2, -2, -4, -4, -3, -2, //132384
-2, -2, -3, -4, -4, -3, -2, -1, 0, 1, 1, 2, 2, 3, 4, 4, //132400
4, 4, 5, 5, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 7, 8, //132416
8, 8, 8, 8, 7, 8, 8, 7, 7, 7, 6, 6, 5, 4, 4, 5, //132432
5, 6, 6, 6, 4, 4, 3, 3, 3, 1, 0, -2, -4, -4, -4, -6, //132448
-6, -5, -4, -3, -3, 1, 2, 2, 3, 5, 5, 5, 6, 5, 4, 3, //132464
2, 2, 2, 1, 1, 2, 1, 1, 0, -1, -2, -3, -3, -2, -3, -4, //132480
-6, -8, -9, -9, -9, -10, -10, -10, -9, -9, -10, -11, -11, -12, -13, -13, //132496
-13, -13, -14, -14, -16, -17, -18, -18, -17, -17, -16, -15, -13, -11, -8, -7, //132512
-6, -6, -7, -10, -12, -13, -14, -16, -16, -15, -15, -14, -13, -13, -13, -12, //132528
-12, -11, -10, -10, -7, -6, -6, -5, -4, -3, -2, -2, -2, -2, -2, -4, //132544
-5, -4, -4, -4, -3, -3, -3, -3, -3, -4, -4, -5, -4, -4, -4, -4, //132560
-4, -5, -5, -4, -3, -1, 0, 2, 3, 4, 5, 5, 5, 4, 3, 3, //132576
3, 1, 2, 4, 6, 7, 8, 10, 11, 13, 13, 13, 11, 9, 7, 5, //132592
4, 3, -2, -3, -2, -1, 0, 2, 4, 4, 5, 7, 8, 9, 9, 9, //132608
8, 8, 7, 8, 8, 10, 11, 12, 13, 13, 13, 12, 11, 10, 10, 7, //132624
7, 8, 9, 9, 10, 10, 12, 13, 13, 14, 14, 13, 11, 11, 11, 11, //132640
10, 11, 12, 12, 12, 13, 13, 13, 12, 11, 10, 10, 9, 9, 10, 12, //132656
14, 16, 16, 17, 17, 16, 18, 17, 16, 16, 13, 9, 4, 2, 0, 0, //132672
1, 3, 3, 4, 6, 9, 9, 11, 11, 9, 8, 6, 4, 5, 5, 5, //132688
6, 7, 8, 10, 12, 13, 13, 14, 15, 16, 16, 16, 13, 11, 8, 6, //132704
5, 6, 6, 5, 2, 0, -1, -1, -2, -3, -5, -7, -8, -9, -10, -11, //132720
-11, -12, -13, -13, -13, -12, -12, -13, -15, -17, -20, -21, -22, -22, -21, -21, //132736
-21, -22, -23, -23, -23, -24, -23, -23, -24, -25, -26, -27, -26, -26, -26, -26, //132752
-25, -25, -24, -23, -20, -18, -18, -19, -19, -20, -22, -22, -21, -21, -21, -21, //132768
-19, -17, -15, -13, -12, -13, -14, -15, -16, -17, -18, -19, -19, -16, -17, -16, //132784
-13, -12, -12, -11, -12, -15, -16, -17, -19, -19, -19, -20, -20, -20, -18, -17, //132800
-15, -11, -8, -8, -8, -8, -8, -7, -7, -6, -5, -5, -5, -4, -3, -2, //132816
-2, -2, -1, -1, -2, -2, -2, -4, -5, -6, -4, -4, -4, -3, -1, 0, //132832
0, -1, -2, -3, -5, -7, -8, -8, -8, -7, -7, -4, -3, -1, 0, -1, //132848
-1, 3, 4, 3, 3, 5, 6, 6, 8, 8, 8, 8, 7, 6, 6, 7, //132864
8, 9, 9, 10, 9, 9, 12, 13, 15, 16, 17, 18, 18, 18, 19, 19, //132880
20, 21, 22, 22, 21, 20, 19, 20, 21, 21, 21, 21, 21, 21, 22, 22, //132896
21, 20, 18, 18, 19, 21, 23, 25, 25, 25, 24, 24, 26, 27, 26, 24, //132912
23, 21, 20, 20, 20, 20, 19, 18, 18, 19, 19, 19, 20, 20, 19, 19, //132928
19, 19, 19, 19, 20, 20, 18, 18, 18, 18, 16, 16, 16, 15, 14, 14, //132944
14, 13, 13, 12, 11, 11, 11, 9, 8, 9, 11, 11, 11, 11, 10, 9, //132960
8, 7, 6, 3, 3, 3, 1, -1, -2, -2, -2, -1, -1, -1, -1, -1, //132976
-1, -4, -5, -6, -6, -6, -7, -8, -9, -10, -10, -9, -9, -10, -11, -11, //132992
-11, -12, -13, -13, -12, -13, -13, -10, -10, -10, -10, -11, -11, -10, -9, -10, //133008
-9, -9, -10, -11, -12, -12, -14, -16, -16, -16, -18, -18, -18, -20, -21, -21, //133024
-21, -20, -19, -18, -18, -18, -16, -15, -15, -15, -15, -12, -12, -12, -13, -13, //133040
-14, -14, -14, -13, -13, -13, -12, -10, -11, -13, -13, -12, -12, -12, -12, -11, //133056
-10, -11, -11, -10, -10, -10, -8, -7, -8, -8, -9, -10, -9, -6, -6, -5, //133072
-3, -2, -2, -2, -3, -4, -3, -3, -3, -2, -1, -2, -2, -1, -2, -1, //133088
2, 3, 3, 4, 5, 5, 5, 5, 6, 6, 4, 3, 2, 1, 0, 1, //133104
1, 0, 0, 1, 2, 2, 1, 0, -1, -1, 0, 0, 0, 1, 1, 0, //133120
-2, -2, -2, -2, -3, -4, -5, -5, -5, -4, -3, -3, -4, -4, -3, -3, //133136
-4, -3, -3, -2, -1, 0, 1, 1, 2, 2, 2, 4, 5, 6, 7, 8, //133152
8, 8, 7, 8, 7, 6, 6, 6, 3, 3, 3, 2, 2, 2, 1, 0, //133168
-1, -2, -1, -1, -1, 0, 0, 0, 0, 1, 0, -1, 0, 1, 1, 2, //133184
3, 2, 2, 2, 1, 0, 0, -1, -3, -4, -7, -8, -8, -7, -6, -4, //133200
-2, -1, 0, 1, 1, 0, -1, -2, -3, -4, -6, -7, -7, -7, -7, -7, //133216
-5, -4, -3, -2, -1, 1, 2, 2, 2, 3, 3, 3, 5, 6, 6, 6, //133232
6, 8, 8, 7, 7, 7, 5, 3, 4, 4, 5, 6, 6, 5, 5, 5, //133248
5, 5, 6, 5, 4, 3, 1, -1, -2, -2, -3, -4, -5, -5, -6, -6, //133264
-7, -9, -11, -16, -18, -20, -21, -21, -22, -22, -21, -20, -18, -16, -14, -11, //133280
-10, -11, -11, -11, -12, -14, -15, -14, -14, -14, -13, -12, -11, -10, -7, -4, //133296
-1, 0, -1, -3, -4, -7, -8, -9, -10, -11, -12, -13, -13, -12, -12, -13, //133312
-13, -12, -12, -13, -13, -11, -11, -9, -7, -5, -3, -2, -3, -4, -6, -7, //133328
-8, -10, -10, -9, -6, -3, 0, 3, 5, 8, 11, 13, 16, 18, 19, 19, //133344
19, 19, 17, 17, 16, 14, 15, 15, 14, 15, 16, 17, 20, 22, 25, 26, //133360
26, 27, 28, 26, 25, 24, 22, 22, 21, 22, 22, 22, 22, 21, 22, 24, //133376
25, 27, 29, 29, 29, 28, 27, 26, 24, 23, 20, 20, 20, 21, 22, 24, //133392
24, 25, 24, 22, 23, 23, 22, 21, 20, 18, 16, 15, 15, 15, 15, 15, //133408
14, 12, 11, 10, 9, 9, 8, 7, 7, 6, 5, 5, 2, 2, 1, -2, //133424
-4, -6, -6, -7, -9, -9, -9, -10, -11, -10, -8, -9, -10, -12, -13, -13, //133440
-13, -11, -11, -10, -11, -12, -11, -10, -9, -9, -10, -11, -14, -15, -15, -15, //133456
-16, -17, -17, -18, -21, -21, -19, -17, -17, -18, -19, -20, -21, -21, -20, -18, //133472
-18, -19, -21, -22, -23, -23, -24, -25, -26, -26, -24, -23, -22, -21, -21, -19, //133488
-19, -18, -17, -16, -16, -16, -16, -16, -16, -16, -14, -13, -11, -10, -9, -8, //133504
-7, -4, -2, 0, -1, -1, -1, -1, -2, -2, -2, -4, -6, -5, -3, -2, //133520
-1, 1, 3, 4, 4, 5, 6, 6, 7, 7, 7, 6, 4, 1, 2, 2, //133536
1, 1, 1, -1, 0, 1, 1, 2, 2, -1, -2, -1, -2, -2, -3, -6, //133552
-9, -11, -12, -14, -15, -16, -17, -17, -16, -17, -17, -17, -17, -17, -17, -16, //133568
-15, -16, -17, -18, -20, -23, -24, -24, -24, -22, -20, -19, -17, -18, -19, -17, //133584
-13, -11, -10, -8, -9, -10, -8, -6, -4, -1, 1, 2, 3, 4, 5, 6, //133600
8, 9, 8, 8, 9, 9, 10, 11, 9, 9, 8, 8, 11, 11, 11, 12, //133616
13, 15, 15, 16, 18, 19, 20, 22, 21, 20, 19, 19, 20, 22, 22, 22, //133632
23, 24, 26, 30, 31, 32, 32, 31, 29, 30, 30, 30, 30, 28, 25, 23, //133648
23, 23, 22, 23, 26, 26, 27, 27, 27, 28, 27, 27, 27, 25, 25, 22, //133664
19, 17, 16, 15, 14, 14, 14, 14, 14, 14, 12, 11, 11, 11, 10, 10, //133680
11, 11, 10, 8, 9, 9, 7, 6, 5, 4, 1, -2, -3, -3, -3, -3, //133696
-2, -2, -2, -2, -1, -2, -5, -6, -8, -9, -10, -11, -13, -13, -14, -15, //133712
-16, -16, -15, -15, -15, -15, -15, -15, -14, -15, -16, -17, -18, -19, -20, -21, //133728
-21, -22, -23, -25, -25, -25, -24, -22, -22, -18, -17, -17, -15, -13, -13, -12, //133744
-10, -9, -8, -7, -7, -8, -8, -9, -10, -10, -10, -10, -10, -10, -10, -10, //133760
-9, -10, -10, -9, -9, -9, -10, -9, -9, -11, -10, -9, -7, -6, -6, -6, //133776
-6, -6, -6, -5, -4, -5, -3, -2, -2, -2, -2, -2, -1, 0, 0, 1, //133792
2, 1, 0, -2, -3, -2, -1, 0, 1, 3, 4, 4, 4, 4, 3, 3, //133808
3, 4, 3, 2, 2, 2, 2, 2, 1, 0, -1, -2, -3, -5, -6, -6, //133824
-7, -7, -5, -2, -2, -1, 0, 0, 0, -2, -2, -2, -2, -1, -1, -2, //133840
-3, -3, -4, -4, -3, -3, -3, -2, -3, -3, -4, -4, -4, -4, -4, -2, //133856
-2, -3, -3, -3, -2, -2, -1, 2, 2, 1, 1, 2, 2, 3, 3, 1, //133872
-2, -4, -5, -5, -5, -4, -2, 0, 1, 2, 1, 1, 0, -2, -3, -4, //133888
-5, -6, -6, -5, -4, -3, -1, -1, 0, 1, 2, 3, 4, 6, 6, 5, //133904
6, 6, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 13, 14, 15, 15, //133920
14, 14, 14, 12, 11, 11, 11, 10, 8, 6, 5, 4, 4, 3, 4, 5, //133936
4, 2, 1, 1, 0, 1, 1, -1, -2, -3, -4, -4, -3, -2, -3, -2, //133952
-2, -3, -3, -3, -3, -3, -3, -3, -4, -5, -6, -7, -7, -5, -4, -3, //133968
0, 0, 1, 1, 0, -2, -5, -6, -7, -8, -8, -8, -8, -9, -10, -11, //133984
-12, -12, -13, -14, -15, -15, -14, -16, -17, -17, -17, -17, -16, -14, -14, -13, //134000
-12, -12, -12, -11, -10, -10, -10, -10, -12, -14, -15, -16, -15, -15, -16, -17, //134016
-20, -21, -21, -22, -22, -23, -23, -22, -21, -17, -15, -14, -12, -12, -12, -11, //134032
-12, -12, -12, -13, -14, -14, -14, -14, -14, -14, -10, -8, -6, -3, -2, 0, //134048
1, 2, 3, 3, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 6, 5, //134064
4, 3, 2, 2, 3, 4, 4, 4, 4, 4, 4, 5, 8, 9, 9, 9, //134080
9, 10, 10, 10, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 22, 23, //134096
24, 24, 23, 22, 21, 20, 17, 15, 14, 13, 14, 15, 16, 16, 17, 17, //134112
16, 17, 17, 14, 14, 14, 14, 12, 10, 11, 9, 9, 10, 9, 9, 8, //134128
6, 6, 8, 8, 9, 10, 11, 11, 9, 9, 11, 10, 10, 11, 11, 9, //134144
10, 9, 9, 9, 10, 10, 11, 12, 13, 14, 14, 14, 15, 14, 15, 15, //134160
15, 14, 13, 14, 15, 16, 15, 14, 13, 10, 7, 5, 3, 4, 3, 3, //134176
3, 3, 3, 5, 6, 6, 6, 4, 2, 0, -2, -2, -2, -4, -5, -7, //134192
-8, -7, -8, -8, -9, -10, -11, -11, -11, -12, -12, -11, -12, -12, -11, -11, //134208
-10, -9, -9, -6, -6, -6, -7, -7, -7, -7, -6, -4, -3, -3, -3, -3, //134224
-4, -5, -6, -7, -9, -10, -12, -13, -14, -15, -18, -18, -18, -18, -16, -16, //134240
-15, -14, -13, -11, -11, -9, -9, -10, -10, -11, -11, -10, -9, -9, -11, -11, //134256
-11, -12, -12, -12, -13, -14, -15, -16, -15, -14, -12, -9, -6, -6, -7, -8, //134272
-10, -12, -13, -14, -16, -19, -20, -20, -18, -16, -13, -11, -10, -9, -9, -10, //134288
-11, -11, -12, -12, -12, -13, -12, -12, -14, -13, -12, -12, -11, -10, -11, -12, //134304
-12, -13, -14, -15, -16, -16, -16, -13, -11, -10, -8, -7, -6, -6, -6, -8, //134320
-11, -12, -11, -10, -9, -9, -8, -7, -6, -4, -1, 1, 1, 2, 2, 1, //134336
2, 2, 3, 4, 4, 4, 5, 6, 7, 8, 8, 10, 12, 13, 14, 16, //134352
16, 17, 17, 16, 16, 16, 16, 15, 15, 17, 17, 16, 14, 15, 16, 17, //134368
19, 19, 19, 18, 17, 18, 19, 18, 18, 19, 18, 18, 18, 17, 17, 17, //134384
18, 20, 21, 22, 23, 23, 22, 22, 20, 18, 18, 17, 16, 16, 16, 17, //134400
18, 19, 20, 22, 22, 22, 22, 20, 20, 20, 20, 20, 17, 15, 15, 12, //134416
10, 8, 9, 10, 10, 9, 8, 7, 5, 3, 2, 1, 0, -1, -2, -3, //134432
-3, -3, -3, -3, -3, -3, -4, -4, -4, -3, -3, -3, -3, -3, -4, -5, //134448
-6, -5, -5, -6, -7, -7, -7, -8, -8, -10, -11, -12, -13, -13, -13, -13, //134464
-14, -15, -16, -15, -12, -10, -9, -7, -8, -8, -7, -8, -10, -11, -12, -12, //134480
-13, -13, -12, -14, -16, -16, -16, -16, -15, -12, -10, -9, -9, -8, -8, -8, //134496
-9, -10, -10, -10, -12, -11, -11, -11, -10, -8, -7, -7, -6, -7, -7, -6, //134512
-5, -5, -5, -6, -6, -7, -8, -8, -8, -7, -5, -5, -4, -3, -2, -1, //134528
1, 0, -1, -2, -4, -6, -7, -7, -6, -6, -6, -6, -6, -6, -6, -6, //134544
-4, -2, -1, -1, -2, -3, -5, -7, -9, -9, -10, -10, -11, -11, -11, -10, //134560
-10, -7, -4, -2, -1, -2, -3, -3, -3, -3, -3, -4, -5, -4, -4, -4, //134576
-4, -3, -1, -2, -2, -2, -2, -3, -3, -2, -2, -1, -2, -3, -3, -3, //134592
-1, 2, 4, 6, 7, 6, 4, 2, 2, 2, 0, 1, 2, 1, 1, 1, //134608
1, 2, 3, 4, 6, 9, 11, 12, 13, 13, 12, 14, 15, 15, 15, 15, //134624
12, 10, 10, 10, 9, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, //134640
21, 20, 18, 16, 15, 14, 12, 11, 11, 11, 10, 9, 8, 9, 9, 9, //134656
9, 9, 10, 9, 7, 7, 8, 8, 9, 9, 8, 8, 8, 6, 6, 5, //134672
5, 5, 4, 4, 3, 1, 1, 1, 1, 1, 0, -1, -2, -3, -4, -5, //134688
-6, -7, -8, -9, -10, -11, -11, -12, -13, -13, -12, -12, -12, -13, -14, -14, //134704
-14, -14, -14, -14, -15, -15, -13, -12, -11, -11, -11, -9, -9, -8, -7, -6, //134720
-6, -7, -8, -9, -10, -12, -14, -14, -14, -15, -16, -17, -18, -19, -19, -18, //134736
-18, -16, -15, -14, -12, -11, -9, -9, -8, -7, -7, -6, -6, -8, -10, -11, //134752
-12, -13, -14, -14, -14, -13, -13, -14, -15, -15, -17, -17, -16, -17, -17, -16, //134768
-15, -14, -13, -8, -5, -3, -1, 1, 3, 3, 4, 4, 3, 2, 2, -1, //134784
-1, -2, -2, -3, -2, -2, -1, 0, 1, 1, 1, 0, -1, -1, -1, -3, //134800
-3, -4, -4, -4, -4, -7, -8, -10, -11, -11, -11, -11, -10, -10, -9, -7, //134816
-4, -2, 0, 2, 2, 2, 1, -1, -3, -5, -5, -5, -4, -2, 0, 2, //134832
2, 6, 6, 6, 6, 4, 4, 3, 3, 4, 4, 5, 7, 8, 10, 11, //134848
12, 14, 14, 12, 11, 11, 9, 8, 8, 7, 7, 8, 9, 10, 11, 13, //134864
15, 16, 17, 18, 19, 19, 20, 20, 20, 19, 19, 19, 20, 20, 20, 18, //134880
17, 16, 16, 16, 17, 18, 18, 19, 20, 21, 23, 25, 25, 24, 24, 22, //134896
20, 20, 19, 17, 16, 15, 16, 17, 18, 18, 17, 14, 13, 13, 13, 13, //134912
11, 11, 10, 10, 11, 13, 14, 15, 16, 16, 14, 13, 12, 11, 10, 10, //134928
7, 5, 4, 4, 5, 6, 6, 6, 7, 7, 6, 7, 8, 8, 9, 9, //134944
8, 6, 4, 3, 3, 3, 3, 3, 2, 0, -2, -3, -4, -4, -3, -5, //134960
-5, -5, -5, -4, -4, -4, -4, -5, -6, -5, -7, -8, -7, -7, -9, -9, //134976
-9, -11, -11, -9, -11, -13, -14, -14, -14, -15, -17, -17, -17, -17, -17, -18, //134992
-19, -20, -21, -22, -22, -20, -21, -23, -23, -23, -26, -27, -26, -26, -26, -25, //135008
-24, -22, -21, -22, -23, -23, -22, -22, -23, -23, -21, -21, -21, -20, -21, -23, //135024
-23, -23, -22, -21, -21, -20, -21, -21, -21, -20, -20, -20, -18, -19, -21, -24, //135040
-25, -24, -23, -22, -20, -16, -14, -12, -11, -12, -11, -12, -12, -11, -11, -12, //135056
-12, -12, -11, -11, -11, -10, -8, -9, -10, -7, -6, -5, -2, -1, 1, 1, //135072
1, 2, 1, 1, 0, 2, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, //135088
2, 2, 4, 6, 7, 9, 10, 11, 11, 11, 11, 9, 8, 6, 5, 5, //135104
4, 3, 2, 1, 1, 2, 3, 4, 6, 6, 6, 8, 10, 12, 11, 11, //135120
11, 10, 11, 10, 10, 10, 10, 10, 12, 14, 14, 14, 15, 16, 17, 18, //135136
19, 19, 20, 21, 22, 23, 24, 24, 22, 20, 20, 19, 17, 16, 14, 14, //135152
15, 15, 14, 14, 13, 12, 13, 13, 12, 11, 9, 9, 10, 10, 11, 14, //135168
15, 15, 15, 15, 14, 12, 12, 12, 12, 10, 8, 7, 7, 8, 8, 8, //135184
8, 8, 9, 9, 10, 10, 10, 9, 9, 9, 8, 9, 9, 9, 9, 8, //135200
8, 8, 9, 10, 10, 11, 12, 12, 12, 11, 11, 11, 10, 10, 10, 10, //135216
9, 7, 7, 6, 4, 3, 2, 2, 0, 1, 1, 0, 0, 0, 1, 0, //135232
0, 1, 1, -1, -1, -1, -2, -2, -1, -2, -1, 0, 0, -1, -3, -4, //135248
-6, -7, -7, -8, -11, -11, -13, -14, -15, -16, -17, -17, -17, -17, -15, -15, //135264
-15, -15, -15, -15, -15, -15, -15, -15, -15, -16, -16, -15, -16, -17, -17, -16, //135280
-17, -17, -17, -17, -17, -18, -18, -18, -17, -18, -18, -17, -17, -19, -18, -19, //135296
-19, -18, -19, -19, -19, -19, -18, -18, -17, -17, -18, -19, -19, -19, -20, -19, //135312
-17, -17, -17, -18, -18, -18, -18, -17, -18, -17, -18, -19, -19, -17, -18, -18, //135328
-17, -16, -16, -16, -15, -14, -13, -12, -9, -6, -5, -5, -4, -4, -4, -5, //135344
-5, -4, -4, -3, 0, 1, 3, 4, 5, 6, 6, 7, 8, 8, 8, 7, //135360
8, 8, 9, 11, 12, 14, 16, 18, 20, 21, 21, 20, 20, 20, 18, 19, //135376
18, 16, 16, 16, 16, 15, 17, 18, 18, 19, 21, 21, 20, 21, 21, 20, //135392
20, 19, 18, 16, 15, 13, 12, 12, 11, 11, 11, 9, 7, 7, 7, 8, //135408
9, 11, 12, 13, 12, 11, 11, 11, 11, 11, 10, 9, 9, 5, 4, 2, //135424
2, 3, 2, 0, 0, 0, 0, -1, -1, 0, 1, 0, -1, 0, -1, -2, //135440
-3, -4, -3, -3, -3, -3, -3, -3, -4, -5, -4, -3, -3, -4, -5, -7, //135456
-9, -10, -10, -9, -9, -5, -5, -6, -6, -6, -7, -7, -6, -5, -5, -7, //135472
-8, -9, -9, -8, -7, -6, -3, -3, -4, -3, -2, -1, -1, -2, -2, -1, //135488
-1, -3, -4, -4, -3, -3, -3, -1, 1, 2, 3, 4, 6, 8, 9, 9, //135504
9, 9, 7, 6, 4, 2, 1, 0, -2, -2, -2, -2, -2, -4, -5, -6, //135520
-6, -6, -6, -5, -4, -4, -5, -5, -5, -3, -1, 0, 1, 0, -5, -7, //135536
-9, -11, -13, -13, -13, -14, -16, -16, -16, -16, -14, -13, -12, -12, -12, -15, //135552
-19, -20, -21, -21, -22, -22, -21, -22, -24, -25, -25, -25, -26, -27, -27, -28, //135568
-29, -29, -28, -27, -25, -24, -20, -18, -17, -15, -14, -15, -14, -13, -14, -14, //135584
-13, -11, -10, -10, -9, -8, -7, -6, -4, -3, -2, -2, -3, -1, -1, -1, //135600
0, 3, 7, 9, 9, 8, 6, 5, 6, 5, 4, 3, 3, 3, 3, 4, //135616
6, 9, 10, 12, 14, 13, 10, 9, 6, 3, 2, 3, 6, 8, 10, 15, //135632
17, 19, 23, 26, 29, 32, 33, 33, 33, 31, 29, 29, 29, 30, 31, 31, //135648
31, 31, 30, 30, 30, 30, 30, 31, 32, 32, 30, 25, 23, 21, 20, 20, //135664
20, 20, 20, 20, 19, 19, 22, 22, 22, 23, 24, 24, 22, 19, 16, 14, //135680
12, 11, 10, 9, 10, 10, 9, 11, 13, 14, 16, 17, 17, 16, 14, 12, //135696
10, 8, 4, 3, 3, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, //135712
-1, -2, -4, -5, -5, -6, -5, -6, -10, -13, -13, -12, -11, -11, -10, -8, //135728
-9, -10, -10, -11, -12, -12, -13, -13, -14, -14, -14, -15, -16, -15, -15, -15, //135744
-13, -13, -14, -14, -15, -18, -19, -20, -21, -21, -20, -17, -17, -17, -16, -15, //135760
-15, -13, -13, -12, -12, -13, -15, -15, -14, -12, -11, -11, -10, -10, -12, -13, //135776
-13, -13, -14, -17, -19, -20, -20, -21, -21, -20, -19, -19, -22, -22, -20, -19, //135792
-19, -19, -19, -18, -18, -17, -15, -13, -11, -10, -8, -7, -5, -5, -5, -7, //135808
-10, -13, -15, -17, -19, -20, -20, -20, -19, -17, -15, -10, -7, -7, -5, -3, //135824
-3, -3, -3, -3, -1, 0, -1, -1, 0, 0, -2, -1, 0, 0, -1, -3, //135840
-3, -3, -3, -3, -1, 0, 1, 2, 1, 1, 2, 3, 3, 2, 2, 2, //135856
0, -2, -4, -6, -6, -5, -4, -3, -2, -2, -2, -2, -2, -1, 0, -1, //135872
-2, -3, -3, -3, -2, 0, 3, 6, 6, 5, 6, 7, 7, 7, 7, 7, //135888
7, 7, 8, 9, 9, 8, 6, 6, 6, 7, 7, 6, 5, 6, 6, 5, //135904
5, 6, 5, 5, 8, 7, 6, 5, 5, 6, 8, 9, 10, 10, 11, 13, //135920
16, 18, 20, 21, 21, 23, 23, 22, 22, 21, 19, 20, 22, 23, 23, 24, //135936
23, 23, 23, 24, 24, 24, 24, 23, 23, 23, 23, 23, 25, 25, 24, 24, //135952
22, 21, 19, 18, 18, 15, 13, 12, 11, 11, 11, 10, 11, 12, 12, 12, //135968
11, 11, 12, 10, 9, 8, 8, 6, 5, 5, 4, 4, 6, 8, 10, 10, //135984
9, 8, 6, 5, 5, 4, 4, 3, 1, 1, 1, 0, 0, -1, -1, 0, //136000
1, 1, 1, 1, 0, -2, -4, -4, -5, -7, -8, -9, -10, -11, -13, -12, //136016
-13, -13, -13, -13, -12, -14, -16, -17, -18, -19, -23, -23, -23, -23, -24, -24, //136032
-24, -24, -24, -25, -25, -23, -21, -21, -21, -21, -19, -19, -18, -18, -19, -20, //136048
-21, -18, -19, -19, -18, -18, -17, -18, -18, -19, -19, -19, -19, -18, -18, -18, //136064
-18, -17, -15, -14, -14, -14, -14, -13, -11, -9, -9, -10, -12, -12, -13, -14, //136080
-14, -14, -14, -15, -16, -16, -15, -14, -13, -9, -9, -9, -7, -7, -6, -4, //136096
-2, 0, 1, 2, 4, 4, 4, 4, 3, 1, 1, -1, -2, -3, -4, -2, //136112
0, 1, 2, 3, 3, 6, 7, 7, 6, 5, 4, 3, 0, 0, 0, -2, //136128
-3, -2, -1, 0, 1, 1, 0, 1, 2, 1, 1, 1, 0, 0, 1, 1, //136144
1, 2, 2, 2, 3, 4, 3, 3, 3, 2, 2, 3, 4, 6, 7, 8, //136160
9, 10, 11, 11, 11, 13, 13, 13, 15, 15, 15, 15, 13, 12, 11, 11, //136176
11, 11, 11, 9, 9, 8, 7, 8, 8, 9, 9, 8, 6, 6, 3, 1, //136192
-1, -3, -3, -3, -1, 0, 0, 1, 2, 1, 1, 1, 0, 0, -1, -4, //136208
-6, -5, -4, -4, -2, 2, 4, 6, 7, 8, 10, 9, 8, 7, 6, 5, //136224
6, 7, 7, 7, 8, 9, 10, 12, 13, 14, 16, 16, 15, 14, 12, 10, //136240
10, 6, 5, 5, 5, 5, 5, 6, 7, 8, 9, 9, 8, 8, 7, 6, //136256
4, 2, 2, 2, 1, 0, -2, -2, -3, -3, -3, -2, -1, -1, -2, -2, //136272
-2, -3, -3, -5, -7, -7, -9, -11, -11, -11, -10, -9, -8, -7, -5, -4, //136288
-3, -1, -1, -1, -2, -2, -3, -5, -6, -5, -5, -6, -6, -7, -7, -7, //136304
-9, -10, -10, -11, -13, -13, -14, -15, -15, -16, -16, -15, -14, -14, -15, -15, //136320
-17, -18, -19, -21, -23, -24, -25, -25, -25, -25, -25, -25, -23, -22, -22, -20, //136336
-21, -21, -20, -19, -20, -20, -18, -18, -17, -16, -15, -14, -14, -13, -13, -13, //136352
-13, -14, -14, -15, -14, -14, -14, -14, -11, -10, -9, -8, -6, -4, -3, -3, //136368
-3, -3, -3, -3, -2, -1, 0, 1, 2, 4, 6, 7, 8, 9, 11, 11, //136384
11, 11, 11, 11, 12, 12, 13, 17, 18, 19, 20, 20, 21, 21, 21, 21, //136400
21, 20, 19, 18, 17, 14, 13, 13, 14, 17, 20, 23, 23, 25, 25, 26, //136416
26, 25, 24, 22, 21, 20, 21, 21, 20, 20, 20, 18, 18, 18, 17, 16, //136432
14, 11, 9, 8, 8, 8, 8, 10, 12, 13, 13, 14, 14, 14, 14, 13, //136448
11, 10, 8, 6, 3, 2, 2, 2, 3, 4, 6, 8, 8, 7, 6, 6, //136464
5, 6, 7, 8, 6, 5, 4, 4, 5, 5, 5, 4, 3, 1, -1, 0, //136480
1, 1, 1, 2, 2, 1, 0, -1, -2, -3, -4, -2, 1, 3, 3, 5, //136496
7, 7, 7, 8, 8, 6, 4, 2, 0, 0, -2, -1, 0, 0, 0, 0, //136512
-2, -1, -1, -2, -2, -2, -3, -3, -3, -3, -2, -2, -4, -4, -4, -3, //136528
-2, -1, -1, -1, -1, 0, 0, -3, -5, -5, -6, -7, -8, -9, -10, -12, //136544
-12, -12, -12, -14, -13, -14, -16, -16, -18, -18, -18, -19, -19, -19, -18, -19, //136560
-20, -19, -20, -20, -20, -20, -19, -18, -18, -18, -18, -18, -20, -21, -22, -22, //136576
-23, -25, -25, -25, -27, -27, -27, -26, -24, -23, -20, -18, -16, -15, -15, -16, //136592
-16, -15, -16, -17, -17, -18, -19, -21, -22, -20, -18, -16, -15, -15, -14, -12, //136608
-11, -9, -8, -7, -6, -5, -4, -3, -1, -1, -2, -2, -3, -4, -5, -6, //136624
-8, -10, -11, -10, -10, -10, -8, -5, -3, -3, -3, -1, 0, -1, 0, 0, //136640
0, 0, -1, -1, 0, 2, 2, 2, 3, 3, 4, 3, 3, 3, 3, 4, //136656
5, 5, 6, 6, 5, 6, 8, 8, 8, 10, 9, 10, 10, 11, 12, 13, //136672
15, 16, 17, 17, 18, 18, 18, 18, 16, 16, 16, 16, 16, 15, 16, 17, //136688
17, 17, 17, 16, 16, 16, 17, 17, 17, 18, 18, 19, 20, 20, 19, 17, //136704
17, 15, 14, 14, 15, 16, 16, 17, 18, 17, 18, 18, 16, 15, 14, 14, //136720
13, 14, 14, 15, 16, 15, 15, 14, 13, 14, 15, 16, 16, 16, 15, 15, //136736
16, 17, 17, 18, 17, 17, 17, 18, 19, 20, 21, 20, 16, 14, 11, 11, //136752
11, 8, 8, 8, 8, 8, 7, 7, 7, 6, 6, 4, 3, 2, 0, -1, //136768
-1, -1, 0, 0, -2, -3, -3, -3, -4, -4, -8, -8, -9, -10, -10, -10, //136784
-11, -10, -10, -10, -8, -7, -7, -7, -7, -8, -8, -8, -9, -10, -11, -12, //136800
-13, -14, -14, -14, -14, -14, -15, -16, -16, -16, -16, -16, -15, -15, -16, -17, //136816
-17, -17, -19, -20, -19, -18, -18, -19, -20, -20, -20, -20, -20, -19, -18, -18, //136832
-18, -18, -18, -17, -17, -16, -15, -16, -17, -16, -16, -16, -17, -17, -15, -14, //136848
-14, -14, -14, -15, -15, -16, -17, -17, -14, -12, -11, -11, -11, -11, -12, -11, //136864
-11, -12, -11, -11, -12, -12, -12, -11, -10, -10, -8, -7, -8, -8, -8, -6, //136880
-4, -3, -2, -2, -2, -3, -3, -4, -5, -5, -5, -3, -3, -3, -5, -7, //136896
-5, -6, -6, -5, -5, -5, -6, -6, -6, -6, -6, -6, -5, -5, -5, -4, //136912
-4, -4, -3, -2, -1, 0, 1, 1, 4, 4, 4, 4, 4, 4, 3, 3, //136928
2, 2, 2, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 11, 12, 11, //136944
10, 9, 8, 8, 6, 6, 7, 7, 8, 8, 9, 12, 13, 13, 14, 16, //136960
16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 17, 17, 17, 16, 17, 18, //136976
21, 23, 23, 24, 25, 25, 26, 28, 29, 29, 28, 29, 26, 26, 26, 24, //136992
22, 18, 17, 16, 15, 15, 13, 11, 11, 10, 10, 9, 9, 8, 7, 6, //137008
5, 6, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 3, 2, 2, //137024
2, 2, 3, 4, 4, 3, 2, 1, -1, -1, -1, 0, 0, -1, -2, -2, //137040
-2, -1, 0, 1, 0, -1, -2, -3, -4, -6, -8, -10, -11, -12, -13, -12, //137056
-11, -9, -9, -9, -8, -9, -10, -10, -10, -10, -11, -12, -14, -15, -15, -15, //137072
-14, -13, -13, -14, -15, -16, -15, -15, -15, -14, -14, -14, -14, -13, -11, -10, //137088
-9, -5, -4, -4, -4, -4, -5, -7, -7, -9, -10, -11, -12, -14, -15, -16, //137104
-18, -18, -19, -21, -21, -21, -21, -21, -21, -20, -19, -18, -16, -16, -15, -15, //137120
-14, -14, -14, -13, -12, -13, -15, -15, -15, -13, -12, -12, -12, -12, -12, -10, //137136
-9, -9, -9, -10, -10, -11, -11, -12, -12, -10, -8, -8, -8, -7, -8, -9, //137152
-10, -10, -10, -11, -11, -12, -12, -11, -10, -9, -6, -3, -1, 1, 2, 4, //137168
4, 5, 4, 2, 1, 0, -1, -3, -3, -3, -3, -1, 0, -1, -1, 0, //137184
1, 2, 4, 5, 6, 8, 8, 9, 10, 10, 11, 11, 10, 12, 13, 13, //137200
13, 13, 13, 13, 14, 14, 14, 14, 13, 12, 12, 12, 13, 14, 15, 16, //137216
17, 19, 20, 20, 20, 19, 19, 19, 19, 16, 14, 12, 11, 10, 8, 7, //137232
7, 8, 9, 9, 10, 11, 12, 14, 16, 16, 17, 17, 16, 15, 15, 14, //137248
12, 10, 8, 8, 8, 7, 8, 9, 8, 8, 8, 9, 9, 9, 10, 10, //137264
10, 9, 9, 8, 9, 9, 9, 10, 10, 11, 12, 12, 11, 10, 9, 8, //137280
8, 8, 9, 10, 9, 9, 10, 10, 12, 14, 15, 15, 13, 10, 9, 8, //137296
7, 7, 4, 2, 0, -2, -3, -4, -4, -4, -6, -7, -6, -6, -6, -6, //137312
-5, -4, -4, -4, -4, -3, -2, -2, -2, -3, -3, -3, -3, -2, -2, -2, //137328
-3, -3, -4, -3, -4, -5, -6, -8, -11, -13, -14, -13, -13, -15, -16, -17, //137344
-16, -15, -14, -13, -15, -19, -21, -22, -22, -23, -24, -25, -26, -27, -28, -28, //137360
-28, -25, -24, -25, -26, -27, -29, -29, -29, -27, -28, -30, -28, -27, -27, -24, //137376
-22, -21, -20, -20, -20, -19, -17, -17, -15, -15, -16, -16, -17, -17, -16, -15, //137392
-13, -11, -10, -11, -12, -12, -11, -9, -8, -7, -8, -8, -7, -6, -4, -4, //137408
-6, -7, -8, -9, -8, -6, -5, -3, -1, 2, 4, 7, 9, 10, 10, 8, //137424
8, 8, 7, 6, 6, 5, 5, 6, 6, 7, 7, 8, 10, 10, 10, 11, //137440
11, 11, 12, 13, 13, 11, 11, 13, 14, 14, 15, 15, 14, 14, 15, 16, //137456
16, 15, 13, 13, 12, 12, 12, 13, 14, 15, 15, 15, 13, 12, 11, 10, //137472
9, 9, 10, 10, 10, 10, 11, 12, 12, 14, 15, 14, 14, 16, 15, 14, //137488
14, 14, 14, 14, 14, 14, 14, 12, 12, 11, 11, 11, 11, 9, 6, 5, //137504
5, 4, 4, 5, 6, 7, 7, 6, 7, 6, 7, 7, 7, 8, 7, 5, //137520
4, 3, 2, 1, 0, 0, 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, //137536
5, 5, 6, 6, 6, 6, 6, 6, 5, 5, 5, 2, 1, 0, -1, -2, //137552
-3, -4, -3, -2, -1, 0, 1, 1, 1, 0, 0, 0, 0, -1, -1, -1, //137568
-1, -1, 0, 1, 2, 2, 2, 1, 2, 2, 1, 0, 1, 1, 1, 2, //137584
2, 2, 2, 0, -1, 0, 0, -2, 0, 0, -2, -1, -1, -2, -2, -2, //137600
-1, -2, -3, -2, -4, -5, -6, -7, -8, -9, -8, -6, -6, -5, -3, -3, //137616
-4, -5, -6, -6, -6, -7, -9, -10, -10, -10, -11, -12, -12, -12, -13, -14, //137632
-13, -12, -11, -9, -7, -7, -6, -8, -8, -9, -9, -8, -10, -12, -13, -15, //137648
-17, -20, -21, -21, -21, -21, -22, -21, -20, -19, -16, -15, -14, -13, -13, -13, //137664
-13, -13, -12, -13, -14, -15, -16, -17, -16, -16, -17, -17, -18, -18, -18, -18, //137680
-18, -18, -18, -16, -16, -15, -15, -15, -14, -12, -12, -12, -12, -10, -9, -8, //137696
-7, -8, -9, -10, -10, -10, -10, -10, -11, -12, -11, -11, -10, -7, -7, -5, //137712
-4, -3, -2, 0, 0, 0, 1, 2, 3, 4, 4, 4, 4, 4, 5, 6, //137728
7, 8, 9, 9, 9, 10, 10, 11, 13, 15, 16, 17, 18, 18, 17, 16, //137744
16, 17, 16, 16, 15, 15, 15, 15, 17, 19, 19, 19, 20, 21, 21, 22, //137760
22, 21, 19, 20, 22, 22, 21, 21, 21, 19, 19, 20, 21, 21, 21, 20, //137776
19, 19, 18, 16, 16, 16, 17, 18, 18, 18, 19, 19, 18, 18, 18, 16, //137792
15, 14, 13, 13, 14, 15, 15, 16, 17, 17, 15, 14, 11, 10, 9, 7, //137808
7, 6, 6, 6, 4, 4, 3, 2, 1, 0, -1, -1, 0, 0, 1, 2, //137824
1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 0, -1, -2, -3, //137840
-4, -5, -6, -7, -7, -8, -9, -9, -9, -10, -10, -10, -10, -11, -11, -10, //137856
-9, -8, -6, -7, -7, -7, -8, -8, -9, -10, -12, -12, -13, -13, -13, -13, //137872
-13, -13, -13, -13, -13, -13, -12, -10, -8, -7, -6, -6, -6, -4, -2, -2, //137888
-1, 0, -1, -2, -2, -2, -3, -4, -5, -6, -7, -8, -9, -9, -10, -11, //137904
-12, -13, -13, -13, -13, -11, -9, -9, -9, -8, -8, -7, -7, -8, -8, -8, //137920
-11, -11, -13, -13, -12, -13, -14, -15, -16, -15, -15, -15, -15, -14, -13, -12, //137936
-12, -10, -10, -9, -7, -7, -9, -12, -13, -15, -17, -17, -17, -16, -15, -14, //137952
-13, -12, -9, -7, -6, -5, -4, -4, -5, -7, -8, -8, -8, -8, -8, -8, //137968
-7, -6, -6, -7, -6, -6, -7, -7, -7, -9, -9, -9, -10, -10, -9, -6, //137984
-4, -3, 0, 2, 5, 5, 4, 5, 5, 4, 3, 2, 2, 2, 1, 2, //138000
2, 3, 3, 2, 2, 1, 2, 2, 3, 5, 5, 8, 8, 9, 12, 13, //138016
14, 15, 15, 14, 13, 12, 11, 9, 9, 11, 12, 13, 16, 18, 18, 18, //138032
18, 18, 18, 17, 16, 16, 14, 15, 15, 15, 16, 17, 17, 18, 20, 21, //138048
21, 21, 20, 21, 21, 21, 20, 18, 16, 16, 16, 15, 15, 15, 14, 14, //138064
15, 15, 16, 15, 15, 15, 14, 14, 14, 13, 12, 12, 11, 10, 9, 9, //138080
8, 7, 6, 6, 6, 6, 6, 5, 4, 4, 3, 3, 2, 1, 1, 1, //138096
-1, -1, 0, 1, 1, 0, -1, -2, -3, -4, -6, -8, -10, -10, -11, -11, //138112
-10, -10, -9, -9, -8, -8, -8, -8, -9, -10, -11, -11, -11, -11, -10, -11, //138128
-12, -12, -14, -15, -16, -17, -18, -17, -16, -16, -17, -18, -18, -17, -17, -17, //138144
-17, -17, -18, -18, -18, -18, -17, -15, -12, -12, -12, -14, -15, -16, -16, -14, //138160
-15, -15, -16, -16, -16, -16, -16, -17, -17, -16, -15, -13, -12, -12, -10, -10, //138176
-8, -6, -5, -4, -4, -4, -6, -7, -6, -7, -7, -7, -7, -7, -7, -7, //138192
-7, -5, -5, -5, -4, -4, -4, -4, -5, -6, -6, -6, -6, -6, -6, -7, //138208
-7, -6, -5, -3, -2, -1, 2, 2, 1, 0, -1, -3, -4, -6, -7, -7, //138224
-7, -7, -5, -2, 0, 1, 2, 3, 3, 2, 1, 0, -2, -5, -6, -6, //138240
-5, -4, -2, -2, -1, 0, 0, 0, 2, 1, 1, 1, 1, 1, 2, 3, //138256
2, 1, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 5, 7, 9, 11, //138272
11, 12, 12, 13, 14, 14, 15, 15, 15, 15, 13, 11, 10, 10, 8, 7, //138288
8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 12, 13, 14, 14, 14, //138304
12, 12, 12, 12, 13, 13, 12, 11, 11, 11, 9, 8, 8, 8, 9, 9, //138320
9, 8, 9, 9, 10, 11, 11, 12, 14, 14, 15, 15, 14, 14, 12, 11, //138336
11, 11, 11, 10, 9, 7, 7, 9, 10, 10, 9, 8, 8, 8, 7, 6, //138352
6, 5, 5, 6, 6, 5, 4, 5, 5, 5, 5, 5, 4, 4, 5, 4, //138368
5, 6, 6, 7, 7, 6, 6, 6, 6, 6, 6, 5, 4, 3, 2, 2, //138384
-1, -2, -3, -3, -2, -2, -2, -2, -1, 0, 0, 0, -1, -1, -2, -4, //138400
-4, -5, -6, -6, -6, -7, -7, -7, -6, -6, -5, -5, -4, -3, -3, -4, //138416
-5, -5, -6, -6, -6, -7, -7, -7, -8, -9, -8, -8, -8, -8, -8, -8, //138432
-8, -9, -11, -12, -13, -13, -14, -15, -15, -16, -17, -18, -18, -19, -18, -18, //138448
-18, -17, -17, -17, -17, -17, -17, -17, -17, -17, -16, -17, -17, -16, -16, -16, //138464
-15, -14, -14, -14, -12, -11, -10, -9, -8, -8, -7, -6, -7, -6, -6, -6, //138480
-7, -6, -5, -4, -2, 0, 1, 1, 1, 1, 0, -1, -1, -2, -3, -4, //138496
-5, -5, -4, -4, -3, -3, -3, -3, -3, -3, -2, -2, -1, 0, -1, 0, //138512
0, 0, 0, 0, 0, 0, -1, -2, -3, -3, -3, -4, -4, -3, -3, -2, //138528
-2, -2, 0, 0, 1, 2, 2, 3, 3, 2, 2, 2, 1, 2, 1, 0, //138544
0, 0, 1, 2, 2, 1, 1, 1, 2, 1, -2, -4, -4, -5, -6, -6, //138560
-5, -4, -3, -1, 1, 2, 4, 5, 6, 7, 7, 5, 4, 3, 2, 1, //138576
1, 1, 1, 2, 3, 5, 6, 6, 6, 7, 8, 10, 10, 9, 9, 9, //138592
9, 9, 10, 11, 11, 11, 11, 10, 9, 8, 6, 5, 3, 2, 2, 2, //138608
1, 1, 1, 3, 4, 4, 5, 6, 7, 7, 7, 7, 5, 3, 3, 3, //138624
3, 3, 3, 3, 3, 4, 6, 7, 7, 8, 8, 8, 8, 8, 7, 6, //138640
5, 5, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 5, 4, 4, 3, //138656
2, 0, -1, -2, -2, -3, -3, -4, -4, -4, -4, -1, -1, -1, -2, -2, //138672
-2, -2, -2, -2, -2, -2, -4, -4, -4, -6, -6, -4, -4, -3, -3, -3, //138688
-4, -4, -4, -4, -5, -7, -9, -12, -13, -14, -15, -15, -15, -14, -13, -12, //138704
-10, -10, -10, -10, -10, -10, -10, -11, -12, -13, -14, -16, -16, -16, -15, -14, //138720
-13, -11, -11, -9, -9, -9, -8, -8, -8, -9, -10, -10, -11, -12, -12, -10, //138736
-9, -8, -6, -6, -6, -6, -6, -6, -7, -7, -8, -8, -8, -8, -8, -6, //138752
-6, -7, -7, -7, -8, -9, -10, -10, -11, -13, -13, -13, -13, -12, -11, -10, //138768
-9, -8, -8, -7, -7, -7, -6, -6, -7, -6, -6, -6, -4, -4, -4, -4, //138784
-3, -1, -1, -1, 0, 1, 1, 3, 4, 4, 4, 4, 4, 4, 5, 6, //138800
6, 6, 6, 6, 5, 4, 3, 2, 1, 1, 2, 3, 2, 2, 3, 3, //138816
3, 3, 4, 3, 3, 2, 2, 3, 4, 5, 8, 10, 12, 13, 14, 14, //138832
13, 14, 15, 16, 15, 14, 14, 14, 13, 13, 15, 14, 14, 15, 15, 14, //138848
15, 15, 14, 13, 13, 13, 13, 13, 13, 13, 13, 12, 14, 14, 15, 15, //138864
15, 13, 12, 12, 13, 13, 13, 12, 12, 12, 13, 14, 16, 16, 18, 18, //138880
18, 19, 18, 18, 17, 15, 15, 13, 11, 12, 13, 14, 15, 16, 17, 17, //138896
17, 17, 16, 14, 13, 12, 10, 8, 7, 8, 9, 10, 11, 12, 13, 13, //138912
12, 10, 8, 6, 4, 3, 2, 1, 0, -2, -3, -3, -2, -1, -1, -1, //138928
0, 1, 1, 2, 4, 5, 5, 5, 5, 2, 0, -2, -4, -6, -8, -6, //138944
-6, -5, -3, -2, 0, 2, 4, 6, 6, 5, 3, 0, -3, -4, -6, -8, //138960
-8, -9, -9, -10, -11, -11, -9, -10, -10, -11, -11, -11, -14, -14, -15, -15, //138976
-15, -15, -14, -15, -15, -13, -12, -10, -9, -7, -5, -6, -7, -8, -8, -8, //138992
-8, -8, -8, -7, -7, -6, -7, -7, -5, -6, -7, -8, -9, -10, -10, -11, //139008
-13, -16, -17, -18, -20, -20, -22, -23, -24, -24, -24, -24, -22, -20, -20, -18, //139024
-16, -15, -15, -16, -16, -15, -14, -13, -13, -11, -9, -8, -6, -6, -6, -5, //139040
-4, -3, -4, -5, -7, -9, -11, -11, -11, -11, -10, -6, -5, -6, -5, -5, //139056
-5, -5, -6, -6, -6, -9, -11, -10, -11, -11, -9, -7, -7, -5, -3, -3, //139072
-4, -5, -5, -5, -6, -6, -7, -7, -7, -6, -7, -7, -5, -3, -1, -1, //139088
-1, -1, -1, -2, -1, -1, -4, -5, -4, -3, -1, 0, 1, 2, 4, 5, //139104
8, 9, 9, 9, 8, 8, 7, 6, 6, 2, 2, 3, 3, 3, 3, 4, //139120
4, 5, 5, 5, 5, 7, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, //139136
4, 7, 8, 9, 12, 12, 14, 14, 15, 16, 16, 14, 13, 13, 13, 12, //139152
13, 13, 12, 11, 12, 14, 15, 15, 16, 16, 15, 15, 16, 18, 18, 17, //139168
15, 13, 12, 12, 11, 10, 10, 11, 10, 9, 8, 9, 9, 7, 7, 7, //139184
6, 6, 6, 8, 9, 10, 12, 12, 12, 13, 13, 13, 13, 11, 10, 10, //139200
9, 8, 6, 6, 3, 3, 3, 4, 5, 5, 4, 4, 5, 5, 5, 6, //139216
7, 7, 6, 6, 5, 3, 2, 0, 0, 0, -1, -3, -6, -6, -6, -7, //139232
-5, -3, -4, -4, -2, -2, -5, -5, -5, -6, -6, -4, -3, -3, -3, -4, //139248
-4, -3, -2, -3, -4, -4, -4, -6, -7, -7, -6, -6, -6, -6, -6, -6, //139264
-5, -4, -4, -4, -4, -4, -5, -7, -9, -11, -12, -12, -13, -13, -11, -11, //139280
-12, -12, -12, -11, -11, -10, -11, -12, -14, -15, -15, -16, -15, -13, -11, -9, //139296
-7, -7, -7, -5, -4, -4, -5, -5, -6, -8, -9, -10, -10, -9, -9, -6, //139312
-5, -5, -4, -4, -5, -6, -6, -5, -4, -5, -7, -7, -10, -11, -12, -13, //139328
-13, -12, -12, -13, -13, -12, -10, -10, -10, -9, -8, -8, -7, -8, -8, -7, //139344
-7, -5, -4, -4, -3, -2, -2, 0, 1, 2, 4, 4, 4, 4, 4, 3, //139360
2, 1, 0, -2, -3, -4, -5, -5, -5, -4, -2, -1, -1, -1, -1, -1, //139376
-2, -3, -5, -5, -5, -5, -4, -3, -2, -2, 0, 1, 2, 3, 6, 6, //139392
6, 5, 5, 5, 3, 2, 2, 2, 2, 2, 5, 6, 8, 10, 11, 14, //139408
14, 14, 13, 12, 11, 8, 7, 8, 8, 8, 9, 7, 6, 8, 10, 11, //139424
13, 14, 14, 14, 14, 14, 13, 13, 12, 11, 12, 12, 11, 8, 8, 9, //139440
9, 11, 12, 12, 12, 12, 12, 10, 10, 10, 12, 12, 13, 13, 13, 13, //139456
13, 14, 15, 15, 15, 15, 14, 13, 10, 10, 10, 8, 9, 9, 10, 13, //139472
13, 13, 13, 13, 14, 16, 16, 15, 14, 11, 9, 7, 4, 4, 2, 1, //139488
2, 2, 1, 1, 2, 1, 1, 1, 1, 0, -3, -5, -6, -8, -10, -8, //139504
-8, -6, -5, -5, -2, 0, 1, 2, 3, 4, 4, 2, 1, -1, -4, -6, //139520
-6, -5, -3, -3, -2, -2, -4, -4, -3, -2, -1, -1, -2, -4, -6, -7, //139536
-8, -10, -11, -14, -17, -18, -18, -19, -19, -20, -21, -21, -20, -18, -16, -15, //139552
-15, -15, -14, -13, -12, -13, -13, -12, -13, -12, -12, -12, -11, -12, -11, -12, //139568
-12, -12, -15, -17, -18, -20, -21, -21, -21, -20, -18, -15, -12, -10, -8, -8, //139584
-6, -5, -6, -7, -9, -11, -13, -15, -15, -16, -16, -16, -17, -17, -16, -16, //139600
-15, -14, -13, -12, -12, -9, -10, -11, -11, -11, -11, -10, -11, -11, -12, -12, //139616
-12, -10, -9, -8, -7, -7, -6, -6, -6, -7, -7, -8, -7, -7, -7, -5, //139632
-3, -3, -1, 0, 1, 1, -1, 1, 2, 1, 2, 2, -1, -3, -5, -5, //139648
-4, -3, -2, 0, 1, 1, 0, 0, 2, 3, 4, 5, 4, 4, 4, 4, //139664
3, 4, 4, 4, 3, 4, 5, 4, 5, 5, 6, 7, 8, 10, 10, 8, //139680
8, 6, 6, 8, 8, 9, 10, 9, 7, 7, 6, 7, 8, 9, 9, 9, //139696
6, 5, 6, 7, 8, 9, 9, 10, 11, 11, 13, 16, 16, 17, 17, 16, //139712
17, 17, 16, 15, 14, 13, 12, 12, 13, 12, 10, 11, 10, 10, 11, 11, //139728
12, 15, 17, 17, 17, 17, 17, 14, 14, 13, 13, 13, 12, 13, 12, 13, //139744
15, 14, 15, 14, 13, 14, 14, 12, 10, 8, 8, 7, 7, 8, 9, 9, //139760
9, 8, 6, 6, 6, 5, 4, 4, 4, 2, 4, 4, 5, 6, 6, 4, //139776
4, 3, 1, 1, 1, 2, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, //139792
0, 0, -1, -2, -4, -8, -11, -12, -11, -10, -9, -9, -8, -7, -7, -7, //139808
-8, -8, -7, -8, -9, -9, -11, -13, -14, -15, -14, -12, -11, -10, -12, -13, //139824
-13, -13, -11, -9, -10, -11, -11, -12, -13, -14, -14, -13, -12, -11, -10, -11, //139840
-12, -13, -13, -13, -12, -12, -12, -11, -12, -14, -14, -14, -13, -13, -13, -13, //139856
-13, -14, -15, -17, -16, -15, -14, -13, -12, -13, -13, -12, -11, -11, -11, -10, //139872
-11, -13, -15, -18, -20, -19, -18, -17, -16, -14, -12, -12, -11, -11, -11, -11, //139888
-10, -11, -11, -11, -12, -13, -12, -13, -13, -11, -9, -7, -7, -8, -9, -9, //139904
-10, -9, -7, -5, -4, -4, -5, -5, -5, -4, -3, -2, -2, -4, -5, -5, //139920
-4, -3, -2, -2, -3, -3, -4, -5, -5, -6, -7, -6, -5, -3, -2, -2, //139936
-2, -2, -2, 1, 3, 5, 7, 8, 9, 9, 10, 10, 11, 12, 15, 16, //139952
16, 16, 17, 17, 18, 21, 22, 22, 21, 19, 17, 15, 15, 15, 14, 13, //139968
13, 12, 13, 14, 14, 14, 15, 16, 17, 17, 19, 20, 19, 20, 21, 19, //139984
18, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19, 19, 18, 18, 18, //140000
19, 20, 20, 21, 21, 20, 20, 19, 18, 16, 15, 13, 10, 10, 9, 6, //140016
5, 4, 3, 2, 2, 3, 4, 3, 4, 3, 2, 2, 2, 1, 2, 3, //140032
4, 3, 3, 4, 2, 1, 0, -1, -1, 0, 1, 0, -1, -1, -1, -2, //140048
-2, -2, -3, -4, -5, -6, -7, -7, -6, -6, -5, -3, -1, 0, 1, 1, //140064
0, -1, -1, -2, -3, -5, -7, -9, -10, -10, -9, -9, -8, -5, -4, -4, //140080
-4, -6, -7, -7, -7, -7, -9, -11, -12, -14, -14, -13, -13, -12, -11, -9, //140096
-7, -5, -3, -2, -1, 0, 2, 3, 3, 3, 4, 4, 4, 5, 4, 3, //140112
4, 3, 1, 0, -2, -3, -5, -7, -7, -8, -9, -10, -11, -12, -11, -11, //140128
-10, -10, -11, -12, -12, -12, -12, -12, -11, -12, -12, -11, -12, -12, -11, -12, //140144
-11, -12, -12, -11, -11, -9, -7, -7, -7, -5, -5, -4, -4, -4, -4, -7, //140160
-9, -10, -12, -14, -14, -14, -12, -11, -11, -9, -7, -5, -4, -4, -4, -5, //140176
-6, -7, -8, -8, -9, -10, -10, -11, -10, -9, -8, -8, -5, -4, -3, -3, //140192
-2, -3, -4, -4, -3, -3, -3, 0, 0, 1, 1, 1, 1, 0, 0, -1, //140208
-1, -1, -1, -2, -3, -3, -3, -5, -6, -5, -6, -6, -5, -4, -3, -2, //140224
-1, -1, -1, -1, -1, -3, -4, -4, -5, -5, -3, -3, -2, 0, 2, 4, //140240
5, 6, 9, 9, 7, 6, 4, 1, -1, -2, -4, -3, -2, -1, 1, 2, //140256
4, 5, 6, 8, 11, 12, 14, 15, 14, 14, 14, 14, 14, 15, 16, 16, //140272
15, 15, 14, 13, 13, 13, 13, 13, 13, 13, 12, 11, 10, 10, 10, 11, //140288
11, 11, 10, 9, 8, 6, 5, 6, 6, 7, 9, 9, 9, 11, 12, 13, //140304
15, 16, 17, 16, 16, 16, 15, 15, 16, 16, 16, 17, 17, 15, 13, 11, //140320
11, 11, 12, 13, 13, 12, 12, 11, 8, 6, 5, 4, 4, 3, 3, 1, //140336
0, -1, -2, -3, -3, -3, -5, -5, -6, -9, -9, -10, -9, -9, -8, -6, //140352
-6, -5, -4, -4, -3, -1, -1, 0, -1, -1, -1, -2, -1, 0, 0, 1, //140368
1, 0, -1, -3, -4, -4, -4, -2, -1, 0, 0, -1, -2, -4, -5, -6, //140384
-8, -10, -11, -13, -13, -14, -14, -14, -13, -12, -11, -10, -10, -8, -8, -7, //140400
-8, -8, -8, -10, -12, -12, -13, -13, -11, -10, -8, -6, -5, -3, -3, -4, //140416
-3, -4, -5, -5, -7, -6, -6, -6, -5, -3, -2, 0, 1, 1, 1, 0, //140432
-1, -2, -3, -4, -5, -5, -7, -9, -10, -11, -12, -13, -14, -14, -15, -16, //140448
-16, -15, -14, -13, -11, -10, -10, -11, -12, -13, -14, -15, -15, -16, -16, -16, //140464
-16, -16, -15, -13, -13, -11, -8, -7, -6, -7, -7, -7, -9, -8, -8, -8, //140480
-6, -6, -7, -6, -7, -8, -7, -7, -7, -7, -8, -9, -10, -13, -12, -12, //140496
-12, -10, -8, -7, -6, -6, -5, -5, -7, -6, -6, -6, -5, -4, -3, -2, //140512
0, 0, 0, 0, -1, -2, -3, -4, -4, -5, -5, -3, -3, -3, -2, -2, //140528
-3, -2, -1, -1, -1, 0, -1, -2, -1, 0, 2, 3, 5, 6, 7, 8, //140544
8, 8, 8, 7, 7, 8, 9, 10, 11, 12, 12, 11, 12, 12, 13, 13, //140560
12, 12, 12, 11, 11, 10, 11, 12, 12, 13, 13, 13, 15, 16, 15, 16, //140576
16, 14, 12, 13, 13, 11, 12, 13, 15, 16, 18, 20, 21, 21, 22, 22, //140592
20, 18, 15, 12, 10, 8, 8, 8, 6, 7, 8, 8, 8, 8, 8, 8, //140608
9, 10, 10, 8, 7, 5, 3, 2, 2, 3, 4, 6, 8, 8, 8, 11, //140624
12, 13, 13, 13, 13, 9, 7, 6, 4, 4, 4, 4, 5, 5, 5, 5, //140640
5, 5, 4, 4, 4, 2, 0, -1, -3, -5, -5, -4, -4, -4, -4, -4, //140656
-3, -3, -3, -3, -3, -3, -3, -2, -3, -3, -3, -3, -1, 0, -1, -2, //140672
-3, -4, -6, -7, -6, -6, -6, -3, -1, -1, -2, -2, -2, -3, -2, 0, //140688
0, 0, 0, -1, -1, -2, -4, -4, -5, -6, -8, -9, -10, -12, -13, -13, //140704
-12, -11, -10, -10, -8, -7, -6, -5, -4, -5, -6, -7, -9, -10, -11, -11, //140720
-11, -11, -11, -10, -10, -7, -7, -8, -8, -8, -8, -9, -10, -10, -10, -9, //140736
-8, -9, -8, -8, -8, -7, -7, -8, -8, -9, -11, -11, -11, -12, -13, -12, //140752
-11, -10, -9, -8, -9, -11, -11, -11, -13, -15, -16, -18, -20, -19, -18, -17, //140768
-15, -13, -9, -8, -7, -5, -5, -4, -3, -3, -3, -4, -4, -4, -3, -3, //140784
-3, -3, -3, -2, -1, -1, -1, 0, 0, -1, -2, -2, -2, -2, -2, -1, //140800
-1, -1, -1, -1, -3, -3, -3, -3, -3, -3, -1, 1, 3, 3, 3, 3, //140816
2, 3, 4, 5, 6, 6, 6, 5, 3, 3, 4, 4, 4, 5, 6, 8, //140832
10, 10, 11, 13, 14, 16, 16, 16, 15, 15, 15, 13, 13, 12, 11, 11, //140848
10, 10, 8, 8, 8, 6, 7, 8, 7, 6, 5, 3, 2, 3, 3, 3, //140864
3, 2, 0, -1, -2, -3, -5, -5, -4, -4, -3, -1, 1, 2, 3, 3, //140880
4, 5, 5, 3, 3, 3, 2, 0, -1, 0, 0, 1, 3, 4, 6, 7, //140896
7, 7, 8, 8, 7, 6, 5, 4, 4, 5, 6, 6, 5, 4, 4, 4, //140912
3, 3, 3, 2, 1, -1, -1, -1, -1, -1, -3, -2, -3, -3, -1, -1, //140928
2, 2, 2, 4, 5, 5, 7, 6, 6, 6, 5, 5, 2, 2, 1, 1, //140944
1, 0, 0, 0, 0, 1, 2, 2, 2, 3, 2, 2, 2, 3, 3, 4, //140960
4, 3, 2, 1, 0, -1, -2, -3, -3, -3, -2, -2, -2, -2, -3, -3, //140976
-3, -3, -3, -5, -6, -7, -8, -8, -8, -8, -7, -6, -3, -3, -3, -3, //140992
-2, 0, 1, 2, 3, 1, 0, -1, -1, -1, -2, -2, -1, -2, -3, -4, //141008
-4, -5, -6, -5, -5, -4, -3, -4, -5, -6, -7, -7, -8, -8, -9, -10, //141024
-10, -10, -10, -10, -10, -9, -9, -9, -9, -10, -11, -12, -13, -15, -15, -14, //141040
-14, -13, -13, -12, -10, -10, -10, -7, -6, -5, -4, -3, -3, -4, -4, -4, //141056
-4, -4, -5, -6, -6, -7, -7, -7, -6, -5, -5, -5, -5, -5, -4, -4, //141072
-4, -5, -5, -4, -4, -4, -3, -2, -2, -2, -1, -1, -1, -1, 0, 0, //141088
0, 0, 1, 1, -1, -1, -2, -3, -3, -3, -4, -3, -2, -2, -2, 0, //141104
2, 3, 4, 5, 5, 4, 4, 3, 3, 2, 1, 2, 1, 1, 1, 0, //141120
1, 2, 2, 3, 5, 7, 8, 8, 7, 6, 5, 5, 6, 7, 6, 6, //141136
7, 6, 5, 5, 5, 5, 6, 6, 6, 5, 3, 2, 3, 2, 3, 5, //141152
5, 6, 6, 6, 5, 3, 4, 5, 6, 7, 6, 6, 5, 5, 5, 6, //141168
6, 5, 4, 4, 3, 3, 2, 2, 2, 4, 5, 6, 9, 10, 11, 11, //141184
10, 10, 10, 10, 8, 7, 7, 7, 7, 7, 6, 7, 8, 10, 10, 10, //141200
9, 8, 8, 7, 7, 7, 8, 8, 8, 9, 10, 10, 10, 11, 12, 13, //141216
13, 13, 13, 13, 13, 11, 11, 10, 9, 8, 7, 5, 6, 6, 6, 6, //141232
6, 7, 8, 9, 9, 10, 10, 11, 10, 9, 9, 8, 6, 2, 1, 0, //141248
-1, -1, -1, 0, 1, 0, -1, -1, -1, -2, -3, -4, -7, -8, -10, -10, //141264
-11, -13, -14, -15, -14, -12, -11, -9, -9, -8, -8, -8, -8, -8, -8, -8, //141280
-10, -10, -11, -12, -12, -12, -13, -12, -9, -7, -4, -3, -4, -5, -6, -6, //141296
-6, -7, -9, -10, -11, -14, -16, -16, -15, -14, -14, -11, -11, -10, -11, -11, //141312
-10, -11, -11, -11, -12, -14, -16, -17, -19, -19, -20, -19, -16, -15, -15, -14, //141328
-15, -15, -15, -14, -13, -12, -10, -8, -7, -7, -6, -5, -5, -4, -4, -4, //141344
-5, -7, -7, -8, -8, -7, -6, -5, -5, -4, -3, -4, -5, -6, -7, -8, //141360
-8, -8, -9, -10, -10, -10, -9, -8, -7, -7, -6, -5, -4, -3, -3, -5, //141376
-4, -4, -4, -5, -6, -7, -7, -6, -4, -1, 1, 1, 1, 2, 4, 5, //141392
5, 4, 4, 5, 5, 6, 8, 8, 8, 8, 9, 10, 10, 10, 9, 9, //141408
9, 9, 8, 8, 9, 10, 11, 13, 15, 15, 15, 16, 16, 16, 16, 15, //141424
14, 14, 14, 14, 14, 13, 13, 13, 13, 14, 14, 13, 13, 12, 11, 10, //141440
10, 10, 9, 7, 8, 9, 11, 11, 13, 13, 14, 15, 16, 16, 16, 16, //141456
16, 16, 14, 14, 11, 10, 10, 10, 11, 10, 10, 10, 10, 10, 11, 12, //141472
11, 11, 11, 11, 11, 9, 9, 8, 7, 7, 6, 4, 2, 1, -2, -2, //141488
-2, -2, -2, -2, -2, -3, -4, -4, -5, -6, -6, -6, -6, -6, -6, -7, //141504
-8, -8, -8, -7, -8, -8, -7, -8, -9, -8, -8, -8, -6, -6, -7, -6, //141520
-6, -6, -7, -6, -6, -6, -6, -6, -6, -6, -6, -5, -4, -4, -4, -4, //141536
-3, -3, -4, -6, -6, -7, -8, -9, -9, -8, -8, -7, -6, -6, -6, -6, //141552
-6, -6, -6, -7, -7, -7, -7, -7, -7, -7, -7, -9, -10, -9, -7, -7, //141568
-5, -5, -5, -6, -6, -6, -6, -5, -4, -4, -6, -6, -6, -6, -3, -1, //141584
1, 1, 2, 2, 2, 2, 2, 2, 1, -1, -3, -5, -6, -6, -6, -6, //141600
-6, -6, -7, -7, -7, -7, -8, -10, -13, -14, -15, -17, -17, -19, -20, -19, //141616
-18, -18, -16, -15, -13, -12, -12, -11, -10, -10, -9, -8, -8, -11, -12, -11, //141632
-11, -11, -10, -7, -5, -3, -2, 0, 0, -2, -3, -4, -5, -5, -6, -8, //141648
-8, -9, -9, -8, -4, -3, -4, -3, -2, -3, -3, -4, -5, -6, -8, -11, //141664
-12, -13, -13, -11, -11, -8, -6, -5, -2, 0, 1, 4, 5, 6, 5, 5, //141680
5, 5, 4, 4, 5, 6, 6, 7, 8, 8, 7, 7, 7, 7, 8, 11, //141696
13, 12, 12, 11, 12, 13, 14, 14, 15, 14, 14, 14, 14, 14, 13, 12, //141712
11, 11, 11, 10, 10, 11, 11, 10, 12, 14, 15, 16, 17, 17, 16, 15, //141728
15, 15, 13, 13, 12, 11, 13, 13, 12, 12, 12, 12, 12, 13, 14, 13, //141744
11, 10, 9, 7, 6, 7, 8, 7, 7, 8, 6, 5, 7, 7, 6, 6, //141760
6, 5, 4, 3, 2, 4, 3, 3, 2, 0, 0, -2, -1, -1, 0, 0, //141776
0, -1, -1, -1, -2, -3, -5, -6, -6, -7, -8, -7, -6, -5, -4, -3, //141792
-3, -4, -3, -3, -3, -2, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, //141808
-2, -3, -4, -5, -5, -5, -5, -4, -3, -2, -1, -2, -2, -2, -3, -4, //141824
-4, -3, -3, -3, -4, -4, -3, -3, -3, -2, -3, -4, -5, -6, -7, -7, //141840
-6, -5, -5, -6, -7, -8, -7, -7, -8, -8, -6, -6, -6, -5, -5, -7, //141856
-7, -8, -8, -9, -9, -10, -10, -10, -9, -9, -10, -9, -8, -7, -6, -4, //141872
-4, -4, -5, -6, -6, -6, -7, -6, -6, -6, -5, -4, -4, -4, -4, -5, //141888
-6, -6, -5, -4, -4, -3, -3, -5, -4, -4, -4, -4, -4, -3, -3, -4, //141904
-5, -7, -9, -10, -11, -11, -11, -11, -11, -11, -10, -8, -6, -4, -2, -1, //141920
-2, -2, -1, -2, -4, -5, -6, -7, -7, -6, -5, -5, -6, -6, -5, -5, //141936
-4, -3, -3, -3, -3, -3, -4, -5, -5, -4, -4, -3, -3, -2, -1, 0, //141952
2, 3, 4, 4, 3, 2, 1, 1, 1, 0, -1, -1, -1, -1, -1, -1, //141968
0, -1, -1, -1, 0, 0, -1, -1, -2, -3, -4, -5, -5, -4, -5, -6, //141984
-6, -6, -4, -4, -3, -1, -1, -1, -2, -2, -3, -4, -4, -5, -6, -6, //142000
-5, -4, -3, -2, -1, 0, 1, 3, 5, 6, 7, 7, 7, 5, 5, 4, //142016
3, 4, 4, 5, 6, 7, 8, 9, 9, 10, 10, 10, 10, 10, 8, 7, //142032
5, 4, 4, 4, 5, 6, 7, 7, 7, 7, 5, 5, 5, 6, 8, 8, //142048
10, 10, 11, 13, 13, 14, 15, 16, 16, 16, 17, 16, 15, 14, 14, 14, //142064
12, 11, 10, 10, 10, 10, 10, 10, 9, 9, 9, 10, 11, 12, 12, 12, //142080
13, 14, 15, 15, 15, 15, 13, 10, 9, 9, 8, 7, 7, 7, 7, 7, //142096
6, 5, 4, 3, 3, 4, 4, 2, 2, 0, 0, -1, -1, 0, 1, 0, //142112
0, 0, 0, 0, 0, 1, 2, 2, 2, 3, 2, 0, 0, 0, 0, -2, //142128
-2, -3, -3, -2, -2, -3, -3, -3, -4, -5, -5, -7, -9, -10, -12, -14, //142144
-15, -15, -15, -16, -16, -16, -17, -16, -15, -15, -15, -14, -14, -14, -15, -15, //142160
-16, -17, -17, -17, -17, -15, -15, -15, -14, -14, -14, -13, -11, -12, -12, -13, //142176
-14, -15, -16, -18, -18, -19, -18, -16, -15, -14, -13, -11, -9, -6, -5, -5, //142192
-6, -7, -8, -9, -10, -10, -9, -10, -10, -10, -10, -11, -11, -10, -10, -10, //142208
-10, -11, -11, -11, -11, -10, -9, -8, -8, -6, -6, -4, -4, -4, -4, -4, //142224
-4, -5, -5, -5, -5, -5, -5, -6, -6, -6, -6, -7, -7, -7, -7, -7, //142240
-7, -6, -4, -3, -3, -2, -3, -2, -1, -1, -1, -1, -1, -2, -2, -2, //142256
-2, -2, -1, 0, -1, -2, -2, -3, -4, -3, -4, -4, -4, -4, -4, -4, //142272
-4, -4, -3, -2, -1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 0, //142288
0, 0, 1, 3, 5, 6, 7, 9, 10, 11, 12, 12, 12, 12, 10, 10, //142304
9, 9, 9, 9, 10, 10, 11, 11, 11, 12, 12, 12, 12, 13, 14, 14, //142320
14, 14, 14, 15, 15, 16, 17, 17, 17, 17, 16, 15, 14, 13, 13, 14, //142336
14, 14, 14, 14, 14, 14, 17, 17, 18, 19, 19, 19, 18, 17, 16, 15, //142352
13, 10, 10, 10, 9, 9, 9, 9, 9, 10, 11, 11, 12, 12, 11, 10, //142368
9, 9, 9, 8, 8, 7, 7, 7, 7, 6, 5, 5, 6, 5, 5, 4, //142384
3, 2, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, //142400
1, 1, 2, 2, 1, 1, 1, 1, 1, -1, -3, -4, -4, -3, -2, -1, //142416
1, 3, 4, 5, 6, 5, 5, 4, 4, 4, 2, 1, 0, -2, -2, -2, //142432
-4, -5, -5, -5, -5, -5, -3, -3, -3, -4, -3, -3, -2, -2, -2, -3, //142448
-4, -5, -6, -6, -7, -7, -7, -9, -9, -10, -10, -10, -9, -9, -9, -8, //142464
-9, -10, -9, -9, -10, -10, -11, -12, -11, -11, -11, -11, -11, -11, -11, -12, //142480
-12, -12, -13, -14, -12, -11, -10, -10, -10, -11, -12, -14, -14, -15, -15, -15, //142496
-16, -16, -16, -17, -16, -15, -14, -13, -12, -12, -11, -10, -8, -7, -6, -7, //142512
-7, -6, -6, -5, -5, -5, -5, -5, -6, -7, -7, -7, -9, -9, -9, -10, //142528
-11, -11, -10, -9, -8, -9, -9, -10, -10, -10, -11, -11, -12, -13, -12, -12, //142544
-12, -11, -10, -9, -9, -8, -8, -8, -7, -7, -7, -6, -5, -5, -6, -7, //142560
-7, -7, -4, -3, -3, -3, -3, -1, 2, 3, 5, 6, 6, 7, 7, 6, //142576
5, 5, 5, 5, 5, 4, 4, 4, 2, 2, 3, 4, 5, 6, 7, 6, //142592
6, 7, 7, 8, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 9, //142608
10, 10, 11, 12, 12, 12, 13, 14, 15, 16, 16, 16, 15, 14, 13, 12, //142624
13, 13, 13, 13, 12, 13, 13, 14, 15, 15, 13, 13, 15, 14, 14, 14, //142640
12, 10, 10, 11, 11, 11, 9, 6, 3, 2, 2, 2, 2, 2, 1, 1, //142656
1, 1, 1, 1, 2, 1, 0, 0, 1, 1, 1, 1, 1, 1, -1, -1, //142672
0, 0, -1, -1, -3, -3, -2, -1, 0, 1, 1, 1, 2, 3, 3, 3, //142688
2, 3, 3, 3, 4, 3, 2, 1, 1, 1, 0, 0, -1, -2, -3, -4, //142704
-5, -5, -6, -6, -6, -8, -8, -8, -8, -7, -7, -6, -6, -6, -6, -6, //142720
-6, -4, -4, -4, -5, -5, -6, -6, -6, -6, -7, -7, -6, -5, -4, -4, //142736
-4, -3, -3, -3, -3, -2, -2, -2, -3, -3, -3, -4, -5, -4, -4, -4, //142752
-5, -6, -7, -8, -8, -7, -7, -7, -5, -5, -4, -5, -5, -5, -5, -4, //142768
-4, -5, -6, -8, -9, -10, -9, -9, -9, -8, -8, -8, -8, -8, -8, -7, //142784
-7, -7, -6, -6, -6, -6, -6, -7, -7, -7, -7, -9, -10, -11, -11, -12, //142800
-11, -10, -9, -10, -10, -8, -8, -8, -8, -9, -10, -12, -12, -11, -10, -9, //142816
-7, -7, -7, -7, -7, -6, -6, -5, -5, -6, -6, -6, -7, -7, -6, -5, //142832
-5, -5, -4, -3, -3, -2, -2, -2, -2, -2, -2, -2, -1, -1, -1, -1, //142848
-2, -2, -2, -3, -3, -3, -3, -2, -2, -2, -2, -2, -3, -3, -1, -1, //142864
-1, -1, -1, -1, -1, 1, 2, 3, 4, 4, 3, 2, 1, 0, 0, 0, //142880
0, -1, -2, -2, -2, -3, -2, -2, -3, -4, -4, -4, -4, -4, -4, -3, //142896
-3, -2, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 4, //142912
4, 5, 6, 7, 8, 8, 7, 7, 7, 7, 7, 8, 8, 9, 11, 13, //142928
14, 15, 16, 16, 16, 15, 15, 14, 14, 13, 13, 13, 13, 12, 11, 11, //142944
11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 11, 12, 13, 13, 13, 13, //142960
14, 14, 15, 16, 17, 17, 17, 17, 17, 16, 16, 16, 15, 13, 13, 11, //142976
10, 10, 9, 9, 9, 9, 8, 8, 7, 7, 8, 9, 8, 8, 8, 8, //142992
6, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, //143008
0, -1, -2, -3, -3, -4, -4, -4, -3, -2, -2, -2, -1, -1, -1, -2, //143024
-3, -4, -7, -8, -9, -10, -11, -12, -12, -12, -11, -11, -12, -12, -13, -13, //143040
-13, -13, -12, -12, -12, -11, -11, -11, -10, -10, -11, -12, -12, -12, -15, -15, //143056
-15, -15, -15, -13, -13, -13, -12, -12, -12, -12, -13, -14, -14, -14, -14, -12, //143072
-11, -11, -11, -11, -9, -9, -9, -9, -9, -10, -10, -10, -10, -10, -10, -8, //143088
-9, -9, -9, -9, -9, -9, -7, -8, -9, -10, -10, -10, -11, -10, -9, -10, //143104
-10, -10, -10, -10, -10, -9, -9, -9, -10, -10, -10, -11, -10, -10, -9, -9, //143120
-10, -11, -12, -14, -15, -15, -15, -16, -15, -15, -15, -13, -12, -9, -7, -7, //143136
-7, -8, -11, -15, -16, -16, -16, -16, -16, -15, -15, -15, -14, -14, -11, -10, //143152
-10, -10, -10, -8, -7, -6, -5, -4, -3, -1, 1, 3, 3, 4, 4, 4, //143168
4, 4, 4, 5, 5, 5, 6, 7, 7, 7, 10, 11, 11, 10, 9, 8, //143184
5, 4, 3, 3, 4, 4, 4, 5, 6, 6, 7, 6, 6, 5, 4, 3, //143200
2, 1, 0, 1, 2, 3, 5, 8, 11, 12, 12, 13, 13, 12, 12, 12, //143216
12, 12, 13, 14, 15, 16, 17, 19, 20, 19, 19, 19, 19, 19, 19, 18, //143232
18, 19, 20, 21, 21, 21, 20, 19, 19, 18, 18, 17, 17, 17, 16, 15, //143248
15, 16, 17, 18, 19, 20, 20, 19, 19, 19, 17, 15, 14, 14, 12, 12, //143264
13, 14, 15, 15, 16, 17, 17, 17, 14, 12, 11, 8, 7, 6, 6, 6, //143280
6, 7, 7, 8, 10, 11, 11, 11, 11, 10, 9, 8, 5, 4, 2, 2, //143296
2, 2, 2, 2, 1, 0, -1, -1, -1, -1, 0, 0, -2, -5, -6, -6, //143312
-7, -7, -7, -8, -8, -9, -10, -11, -11, -10, -10, -11, -11, -12, -12, -12, //143328
-13, -14, -14, -14, -14, -13, -12, -12, -12, -11, -11, -10, -9, -7, -7, -8, //143344
-9, -9, -9, -9, -8, -9, -9, -10, -10, -10, -9, -8, -7, -6, -5, -5, //143360
-4, -4, -4, -4, -4, -5, -6, -6, -5, -4, -4, -1, 0, 1, 1, -1, //143376
-4, -5, -6, -7, -8, -9, -9, -10, -10, -10, -10, -10, -8, -7, -7, -6, //143392
-6, -7, -8, -8, -8, -8, -8, -9, -10, -10, -10, -10, -7, -4, -3, -3, //143408
-4, -5, -7, -7, -6, -5, -5, -5, -6, -7, -8, -8, -8, -9, -9, -11, //143424
-11, -11, -11, -10, -9, -7, -6, -6, -6, -6, -7, -8, -9, -10, -12, -14, //143440
-14, -15, -16, -17, -16, -16, -15, -14, -12, -9, -6, -5, -5, -4, -4, -5, //143456
-4, -3, -3, -2, -3, -3, -3, -2, -2, -2, -2, -4, -5, -5, -5, -6, //143472
-5, -5, -5, -4, -3, -3, -2, -1, -1, -2, -2, -1, -1, 0, 1, 1, //143488
1, 1, 2, 2, 3, 3, 3, 2, 1, 0, -1, -1, 0, 0, 1, 2, //143504
2, 3, 3, 4, 6, 8, 8, 8, 10, 11, 12, 12, 13, 15, 17, 18, //143520
19, 19, 20, 20, 20, 20, 20, 20, 19, 17, 16, 15, 15, 15, 15, 15, //143536
15, 15, 14, 14, 13, 12, 12, 12, 12, 10, 8, 6, 5, 4, 3, 3, //143552
2, 1, 1, 2, 3, 4, 4, 3, 3, 4, 5, 5, 5, 5, 4, 2, //143568
2, -1, -3, -4, -4, -4, -4, -4, -3, -1, 1, 1, 1, 3, 2, 2, //143584
2, 2, 2, 1, 0, 0, 0, -2, -2, -2, -2, -1, -1, 0, 0, 1, //143600
2, 3, 4, 3, 2, 2, 2, 0, -1, 0, 1, 3, 4, 5, 7, 7, //143616
7, 7, 7, 7, 6, 5, 4, 3, 1, -2, -4, -4, -4, -4, -2, 0, //143632
1, 1, 2, 3, 4, 4, 4, 4, 4, 4, 0, -1, -1, -2, -3, -4, //143648
-5, -6, -8, -8, -8, -8, -7, -6, -6, -6, -6, -6, -5, -5, -6, -7, //143664
-8, -10, -10, -10, -9, -9, -8, -7, -6, -5, -4, -4, -6, -6, -7, -8, //143680
-9, -11, -13, -14, -15, -15, -15, -13, -12, -11, -10, -10, -10, -9, -8, -7, //143696
-7, -8, -8, -8, -7, -7, -7, -6, -6, -6, -6, -6, -6, -8, -9, -9, //143712
-10, -10, -11, -11, -11, -10, -10, -9, -9, -8, -8, -7, -6, -6, -5, -6, //143728
-5, -4, -4, -4, -4, -4, -4, -4, -4, -5, -6, -6, -6, -7, -7, -5, //143744
-5, -5, -4, -3, -3, -3, -1, 1, 2, 2, 2, 3, 3, 3, 4, 5, //143760
6, 6, 6, 6, 6, 6, 6, 6, 5, 4, 3, 2, 0, -1, -1, -2, //143776
-3, -3, -3, -3, -3, -3, -3, 0, 1, 3, 3, 3, 3, 2, 2, 3, //143792
3, 3, 3, 2, 1, 0, -1, -2, -3, -4, -5, -5, -5, -6, -6, -5, //143808
-4, -4, -4, -4, -4, -5, -6, -6, -4, -3, -3, -2, -2, -2, -2, -2, //143824
-1, -2, -3, -3, -3, -4, -5, -5, -5, -5, -6, -6, -5, -5, -6, -6, //143840
-4, -3, -2, -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 5, //143856
5, 8, 9, 9, 9, 10, 11, 11, 12, 12, 13, 13, 13, 13, 13, 13, //143872
13, 13, 13, 13, 13, 13, 13, 13, 12, 12, 13, 13, 12, 12, 12, 12, //143888
11, 11, 12, 12, 13, 13, 12, 12, 12, 11, 11, 10, 9, 8, 8, 8, //143904
7, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 11, 11, 11, 9, //143920
9, 10, 11, 11, 11, 12, 13, 13, 13, 13, 11, 10, 10, 9, 8, 7, //143936
4, 2, 0, 0, -1, -1, -1, 0, 0, 1, 1, 1, 0, 0, -1, -1, //143952
-2, -4, -6, -7, -8, -11, -12, -13, -14, -13, -13, -13, -12, -11, -10, -10, //143968
-10, -10, -12, -14, -16, -17, -18, -20, -20, -19, -19, -19, -16, -13, -13, -12, //143984
-11, -10, -11, -10, -10, -10, -11, -11, -11, -13, -14, -14, -14, -14, -14, -13, //144000
-13, -13, -13, -11, -11, -10, -10, -11, -11, -11, -14, -15, -17, -18, -16, -14, //144016
-12, -11, -10, -8, -8, -6, -6, -6, -7, -8, -9, -12, -14, -15, -16, -16, //144032
-15, -14, -12, -11, -11, -9, -7, -6, -6, -6, -6, -7, -7, -8, -9, -9, //144048
-10, -9, -8, -8, -7, -7, -7, -8, -9, -8, -8, -9, -9, -9, -9, -9, //144064
-8, -7, -6, -6, -5, -4, -4, -5, -5, -6, -7, -7, -7, -7, -7, -7, //144080
-7, -7, -6, -6, -6, -6, -6, -6, -7, -7, -8, -7, -7, -6, -3, -2, //144096
-1, 0, 2, 4, 7, 8, 9, 9, 9, 9, 7, 6, 5, 4, 4, 5, //144112
7, 8, 9, 10, 11, 11, 12, 12, 11, 9, 9, 6, 5, 4, 4, 5, //144128
5, 7, 8, 8, 9, 9, 9, 8, 8, 9, 9, 9, 11, 12, 13, 14, //144144
15, 15, 16, 16, 17, 17, 16, 16, 15, 15, 15, 15, 15, 15, 17, 18, //144160
18, 18, 18, 19, 18, 18, 18, 17, 15, 15, 15, 15, 15, 15, 13, 12, //144176
12, 12, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 12, 12, 9, //144192
8, 7, 7, 7, 5, 4, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, //144208
3, 2, 1, 0, 0, 0, 0, -1, -1, -1, -2, -1, -1, 0, 1, 2, //144224
3, 4, 3, 3, 3, 2, 2, 1, 1, 1, 0, -1, -2, -4, -5, -6, //144240
-6, -5, -5, -6, -6, -7, -8, -8, -7, -7, -8, -9, -9, -10, -10, -10, //144256
-10, -10, -8, -7, -6, -5, -3, -1, -1, -1, -1, -2, -3, -5, -7, -9, //144272
-11, -12, -12, -12, -12, -10, -10, -10, -8, -6, -6, -6, -7, -8, -9, -8, //144288
-8, -10, -11, -12, -12, -11, -10, -7, -6, -5, -4, -3, -2, -1, -1, -2, //144304
-2, -3, -3, -4, -5, -6, -6, -5, -4, -2, -2, 0, -1, -1, -1, -2, //144320
-2, -3, -4, -5, -8, -9, -11, -12, -13, -13, -13, -14, -15, -15, -15, -15, //144336
-13, -13, -10, -10, -10, -9, -9, -8, -7, -6, -6, -7, -8, -9, -9, -9, //144352
-10, -10, -10, -12, -12, -13, -14, -14, -16, -16, -16, -16, -17, -17, -16, -14, //144368
-12, -11, -10, -10, -11, -10, -9, -8, -6, -4, -3, -3, -3, -1, 0, 1, //144384
2, 2, 2, 2, 0, -1, -3, -4, -4, -5, -5, -4, -4, -4, -2, 0, //144400
1, 2, 3, 3, 2, 1, -1, -3, -5, -5, -4, -1, 0, 1, 2, 4, //144416
6, 8, 10, 12, 12, 12, 12, 13, 13, 12, 12, 12, 11, 11, 11, 12, //144432
12, 10, 9, 9, 10, 11, 11, 14, 15, 16, 18, 19, 20, 21, 21, 20, //144448
20, 20, 19, 17, 16, 16, 13, 11, 11, 11, 11, 10, 9, 9, 9, 9, //144464
9, 9, 10, 10, 11, 10, 10, 10, 8, 7, 7, 6, 5, 4, 3, 2, //144480
3, 4, 3, 2, 2, 3, 5, 6, 5, 5, 3, 2, 2, 1, 1, 0, //144496
0, -1, -1, -1, -1, 1, 2, 4, 4, 5, 5, 5, 6, 5, 5, 5, //144512
4, 4, 3, 3, 2, 1, 2, 2, 1, 1, 0, 0, -1, -2, -2, -2, //144528
-2, -2, -2, -2, -3, -2, -1, 0, 0, -1, -1, -2, -2, 2, 3, 4, //144544
5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 3, 4, 4, 4, 4, //144560
5, 5, 3, 2, 1, -1, -2, -3, -4, -5, -5, -6, -6, -6, -6, -7, //144576
-8, -8, -9, -9, -8, -8, -8, -9, -10, -11, -12, -13, -14, -16, -16, -16, //144592
-14, -13, -12, -11, -11, -11, -10, -11, -11, -12, -13, -14, -15, -15, -14, -14, //144608
-14, -13, -12, -12, -11, -11, -11, -10, -10, -10, -10, -10, -10, -11, -11, -11, //144624
-11, -11, -11, -10, -9, -9, -9, -7, -7, -6, -6, -6, -6, -7, -8, -8, //144640
-9, -9, -9, -8, -7, -6, -5, -4, -3, -3, -3, -3, -3, -4, -5, -6, //144656
-7, -7, -6, -5, -4, -2, -1, 0, 0, 0, 0, 0, 1, 1, 2, 1, //144672
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, //144688
4, 5, 4, 3, 3, 3, 4, 4, 3, 2, 1, 1, 2, 4, 5, 6, //144704
7, 8, 8, 8, 9, 9, 7, 6, 4, 2, 1, 1, 1, 1, 3, 3, //144720
3, 4, 4, 4, 4, 4, 4, 2, 1, 1, 1, 1, 1, 1, 0, 0, //144736
0, 0, -1, -1, -1, -2, -2, -1, 0, 1, 1, 1, 1, 1, 2, 2, //144752
2, 1, 0, -1, -1, -1, -1, -1, -1, 1, 3, 5, 6, 6, 5, 5, //144768
5, 5, 5, 5, 5, 4, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, //144784
5, 6, 6, 7, 8, 9, 10, 11, 11, 12, 12, 12, 12, 11, 10, 9, //144800
8, 7, 7, 7, 6, 6, 7, 7, 7, 7, 8, 9, 10, 10, 9, 9, //144816
8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 9, 9, 8, 8, //144832
8, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 7, 7, 6, 5, 3, //144848
1, 0, -1, -1, 0, 0, 1, 1, 0, -1, -1, -2, -2, -2, -1, -1, //144864
-1, -1, 0, 1, 2, 3, 3, 3, 2, 1, 1, 0, -1, -2, -3, -3, //144880
-4, -5, -6, -6, -7, -8, -8, -9, -9, -9, -9, -10, -10, -9, -9, -9, //144896
-9, -8, -9, -9, -9, -10, -10, -9, -9, -9, -9, -9, -9, -9, -9, -9, //144912
-9, -9, -9, -9, -10, -11, -12, -13, -13, -13, -13, -13, -13, -13, -13, -13, //144928
-13, -14, -15, -16, -16, -16, -16, -15, -15, -15, -13, -12, -11, -10, -10, -10, //144944
-10, -9, -8, -8, -9, -10, -11, -12, -13, -13, -13, -14, -15, -15, -15, -12, //144960
-9, -7, -6, -5, -4, -4, -5, -6, -7, -10, -11, -12, -13, -15, -16, -16, //144976
-17, -16, -16, -16, -15, -15, -16, -16, -15, -14, -13, -13, -12, -10, -9, -8, //144992
-7, -6, -5, -3, -2, -2, -2, -3, -5, -6, -7, -7, -8, -8, -8, -8, //145008
-9, -9, -7, -6, -5, -4, -3, -3, -2, 0, 0, 1, 2, 3, 2, 1, //145024
1, 1, -1, -2, -3, -4, -4, -4, -4, -2, -1, 0, 0, 1, 1, 1, //145040
1, 2, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9, 10, 10, 10, 10, //145056
10, 9, 9, 9, 7, 7, 8, 9, 10, 11, 12, 15, 17, 19, 21, 22, //145072
24, 23, 23, 22, 20, 20, 16, 14, 13, 11, 11, 12, 12, 12, 12, 13, //145088
14, 15, 16, 17, 17, 17, 17, 17, 17, 16, 15, 13, 12, 11, 12, 12, //145104
13, 14, 14, 14, 14, 14, 14, 12, 12, 11, 11, 10, 10, 10, 10, 11, //145120
12, 14, 15, 17, 17, 18, 18, 17, 17, 14, 12, 10, 8, 7, 5, 5, //145136
4, 4, 4, 5, 5, 5, 6, 7, 6, 6, 6, 5, 4, 3, 2, 1, //145152
-1, -2, -3, -4, -5, -5, -5, -5, -4, -4, -3, -3, -2, -1, 0, 1, //145168
1, 0, 0, -1, -2, -4, -4, -5, -5, -6, -6, -5, -6, -6, -6, -6, //145184
-6, -6, -6, -6, -5, -4, -4, -1, 1, 3, 4, 5, 5, 5, 4, 2, //145200
1, -1, -4, -7, -8, -9, -9, -10, -10, -10, -10, -10, -9, -8, -7, -7, //145216
-8, -7, -7, -8, -8, -8, -9, -9, -9, -9, -10, -11, -11, -12, -12, -12, //145232
-12, -11, -11, -11, -12, -12, -13, -14, -14, -15, -15, -16, -17, -17, -17, -17, //145248
-16, -16, -15, -15, -16, -16, -16, -17, -17, -15, -15, -15, -14, -14, -14, -14, //145264
-14, -13, -13, -13, -13, -14, -15, -15, -16, -17, -18, -19, -19, -19, -19, -19, //145280
-17, -16, -15, -15, -14, -14, -14, -14, -14, -14, -14, -14, -12, -12, -11, -10, //145296
-9, -9, -9, -8, -9, -8, -8, -8, -8, -7, -7, -6, -6, -6, -7, -6, //145312
-7, -8, -9, -9, -9, -9, -8, -7, -6, -4, -3, -2, -1, -2, -2, -2, //145328
-2, -2, -2, -2, -2, -1, -1, -1, 0, 0, -2, -1, 0, 0, 0, 0, //145344
2, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 4, 4, 4, 5, 6, //145360
6, 6, 6, 7, 8, 9, 10, 11, 11, 10, 10, 10, 9, 8, 7, 4, //145376
3, 2, 2, 3, 3, 4, 5, 7, 8, 8, 9, 9, 10, 11, 12, 13, //145392
13, 14, 14, 15, 15, 15, 16, 16, 13, 13, 13, 14, 16, 17, 18, 18, //145408
18, 19, 19, 20, 20, 19, 19, 19, 18, 18, 18, 18, 18, 17, 17, 16, //145424
16, 16, 14, 12, 12, 10, 9, 10, 11, 12, 14, 15, 15, 16, 16, 17, //145440
18, 18, 18, 18, 17, 15, 12, 11, 11, 10, 8, 7, 6, 6, 5, 4, //145456
2, 2, 1, 0, -1, 0, 0, 0, 0, 1, 1, 0, 1, 2, 2, 2, //145472
2, 2, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, -1, -2, -2, //145488
-2, -2, -1, -2, -3, -3, -3, -3, -2, -3, -5, -6, -7, -8, -9, -10, //145504
-10, -11, -12, -12, -13, -14, -14, -13, -13, -13, -12, -13, -13, -12, -12, -10, //145520
-9, -8, -9, -9, -10, -10, -10, -11, -12, -13, -14, -15, -15, -15, -15, -14, //145536
-12, -12, -11, -11, -11, -10, -11, -11, -12, -12, -12, -12, -13, -14, -14, -15, //145552
-16, -16, -15, -14, -13, -12, -12, -10, -9, -8, -6, -4, -2, -2, -1, -2, //145568
-3, -3, -3, -4, -4, -4, -5, -5, -5, -4, -4, -4, -4, -4, -4, -4, //145584
-5, -6, -7, -7, -6, -6, -6, -6, -7, -7, -7, -6, -6, -6, -6, -5, //145600
-6, -6, -7, -8, -9, -9, -9, -9, -9, -9, -8, -8, -8, -7, -6, -5, //145616
-5, -4, -4, -4, -3, -3, -2, -2, -1, 0, 0, -1, 0, 1, 2, 3, //145632
3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 6, 6, //145648
6, 5, 4, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, //145664
4, 4, 4, 4, 3, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 7, //145680
7, 7, 7, 7, 8, 8, 7, 6, 6, 7, 8, 8, 7, 6, 6, 5, //145696
5, 5, 5, 5, 4, 5, 4, 3, 2, 1, 0, -1, 0, -1, -1, -1, //145712
-1, -2, -3, -3, -3, -2, -2, -2, -1, -1, -2, -1, -1, -2, -2, -3, //145728
-3, -4, -4, -3, -3, -2, -2, -2, -1, -1, -1, -1, -1, -1, 0, 0, //145744
0, -1, -2, -3, -3, -3, -3, -2, -2, -1, -1, -1, 0, 0, 0, 0, //145760
1, 1, 1, 2, 3, 3, 4, 5, 7, 7, 7, 8, 8, 6, 6, 6, //145776
5, 5, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, //145792
6, 6, 6, 6, 5, 5, 4, 4, 4, 5, 4, 4, 3, 3, 3, 3, //145808
5, 5, 6, 6, 6, 6, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, //145824
3, 3, 3, 3, 3, 3, 0, -1, -3, -4, -5, -5, -6, -8, -8, -8, //145840
-8, -8, -7, -7, -7, -7, -7, -8, -10, -10, -11, -12, -13, -13, -13, -13, //145856
-12, -11, -10, -10, -10, -9, -9, -10, -9, -9, -9, -9, -8, -8, -8, -7, //145872
-6, -6, -6, -6, -5, -6, -7, -8, -8, -8, -7, -7, -6, -5, -5, -5, //145888
-5, -6, -6, -6, -7, -8, -8, -9, -10, -11, -12, -11, -10, -9, -7, -7, //145904
-7, -8, -9, -10, -11, -11, -11, -11, -10, -10, -10, -8, -6, -5, -4, -3, //145920
-2, -2, -1, -1, -1, -2, -2, -2, -2, -1, -1, 0, 0, 0, 0, 0, //145936
1, 1, 0, 0, 0, 0, 0, 0, -1, -2, -3, -4, -6, -7, -8, -8, //145952
-8, -8, -8, -7, -6, -5, -4, -2, -1, -1, -1, -1, -2, -3, -3, -3, //145968
-4, -4, -3, -3, -3, -3, -2, -1, 0, 1, 2, 3, 4, 4, 4, 6, //145984
6, 8, 9, 9, 9, 8, 6, 5, 3, 1, 1, 1, 1, 2, 2, 2, //146000
5, 5, 6, 6, 6, 6, 5, 4, 3, 2, 1, 1, 1, 1, 1, 1, //146016
2, 2, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 4, 6, 8, 11, //146032
12, 14, 17, 18, 18, 18, 18, 18, 18, 18, 18, 17, 17, 17, 18, 19, //146048
19, 20, 20, 20, 20, 20, 20, 20, 17, 17, 16, 16, 16, 15, 13, 11, //146064
10, 10, 8, 6, 6, 5, 4, 4, 4, 5, 5, 6, 7, 7, 7, 6, //146080
5, 4, 3, 3, 3, 3, 3, 4, 4, 4, 6, 6, 7, 8, 8, 8, //146096
6, 4, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 2, 1, //146112
0, -1, -2, -3, -5, -5, -6, -5, -3, -2, -1, 0, 0, 0, 0, -1, //146128
-2, -3, -4, -6, -7, -8, -9, -10, -11, -11, -10, -10, -10, -8, -7, -6, //146144
-6, -6, -4, -3, -3, -4, -4, -4, -6, -6, -7, -8, -8, -8, -8, -8, //146160
-7, -7, -7, -6, -6, -5, -5, -5, -5, -7, -7, -8, -9, -10, -10, -10, //146176
-10, -10, -10, -10, -8, -8, -8, -8, -8, -9, -10, -10, -10, -10, -10, -11, //146192
-10, -10, -10, -9, -9, -8, -7, -6, -7, -7, -6, -8, -9, -10, -12, -12, //146208
-13, -13, -12, -11, -10, -10, -8, -6, -5, -4, -4, -4, -2, -2, -2, -2, //146224
-3, -4, -4, -5, -6, -7, -8, -9, -10, -10, -9, -9, -9, -7, -7, -7, //146240
-6, -7, -7, -8, -9, -9, -9, -9, -9, -10, -10, -10, -11, -10, -8, -6, //146256
-4, -3, -2, -2, -3, -3, -3, -4, -5, -7, -8, -9, -11, -11, -11, -10, //146272
-8, -6, -5, -4, -2, 0, 0, 1, 2, 3, 3, 4, 4, 4, 4, 4, //146288
3, 3, 2, 1, 0, -1, -2, -4, -5, -6, -5, -5, -3, -2, -2, -2, //146304
-2, -3, -2, -2, -2, -2, -3, -3, -3, -3, -2, -2, 0, 1, 2, 3, //146320
4, 5, 6, 6, 5, 6, 6, 5, 5, 6, 6, 6, 6, 7, 8, 9, //146336
9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 19, 19, 19, 17, 16, //146352
15, 15, 15, 14, 14, 14, 13, 14, 14, 14, 14, 14, 13, 13, 13, 10, //146368
9, 8, 5, 4, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, //146384
17, 17, 17, 18, 18, 19, 19, 20, 20, 18, 16, 14, 11, 10, 9, 9, //146400
9, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 9, 8, 7, 6, //146416
5, 4, 4, 3, 3, 2, 2, 2, 0, -1, -1, -2, -3, -5, -7, -8, //146432
-9, -9, -9, -6, -5, -5, -5, -5, -6, -6, -7, -8, -8, -9, -9, -9, //146448
-8, -8, -7, -7, -6, -5, -4, -3, -2, -2, 0, -1, 0, 0, 0, -1, //146464
-1, -1, -2, -2, -3, -3, -4, -4, -5, -6, -6, -6, -7, -7, -8, -8, //146480
-8, -8, -8, -7, -8, -8, -9, -10, -10, -10, -11, -11, -11, -10, -9, -9, //146496
-9, -9, -9, -9, -9, -8, -8, -8, -9, -10, -11, -11, -11, -11, -10, -10, //146512
-10, -10, -9, -8, -8, -7, -7, -7, -8, -8, -9, -9, -9, -9, -9, -9, //146528
-8, -8, -8, -8, -8, -8, -9, -9, -9, -8, -8, -9, -9, -9, -9, -10, //146544
-9, -8, -8, -7, -7, -6, -6, -6, -5, -5, -4, -3, -4, -4, -5, -5, //146560
-6, -6, -6, -7, -7, -8, -8, -7, -6, -6, -6, -4, -4, -3, -3, -2, //146576
-2, -2, -2, -2, -2, -3, -3, -2, -1, 0, 1, 1, 2, 2, 1, 1, //146592
1, -1, -2, -3, -4, -4, -3, -3, -3, -3, -2, -1, -1, 0, 0, 0, //146608
0, 0, 1, 2, 2, 3, 3, 4, 4, 4, 4, 3, 4, 4, 4, 3, //146624
2, 1, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4, 5, 6, 7, 7, //146640
7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 4, 3, 2, 1, 1, //146656
1, 1, 1, 1, 1, 0, -1, 0, 0, 0, 0, 0, 0, 0, -1, -1, //146672
-1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, -1, //146688
-1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 3, 4, //146704
5, 7, 7, 7, 7, 6, 5, 5, 4, 3, 3, 2, 2, 2, 2, 3, //146720
3, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 5, 5, 5, 6, 6, //146736
7, 7, 7, 8, 8, 8, 8, 7, 7, 7, 8, 9, 9, 10, 10, 10, //146752
10, 10, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 9, 8, //146768
8, 6, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 5, 5, 5, 4, //146784
4, 4, 1, 0, 0, -1, -2, -2, -1, -2, -1, -1, -1, 0, 1, 2, //146800
3, 3, 3, 3, 3, 2, 2, 2, 0, -1, -2, -1, -1, -2, -2, -1, //146816
-1, 0, 1, 1, 1, 0, -1, -1, -1, -2, -4, -5, -6, -7, -8, -8, //146832
-8, -8, -7, -6, -6, -3, -3, -2, -1, -1, -2, -3, -5, -7, -8, -10, //146848
-12, -12, -13, -12, -12, -10, -9, -9, -9, -9, -8, -8, -8, -8, -9, -9, //146864
-10, -11, -12, -13, -14, -15, -15, -14, -13, -12, -11, -9, -9, -9, -9, -11, //146880
-12, -13, -15, -16, -18, -18, -19, -18, -17, -15, -12, -10, -8, -7, -8, -8, //146896
-9, -10, -11, -14, -15, -17, -19, -20, -20, -19, -18, -17, -15, -14, -13, -13, //146912
-13, -11, -10, -10, -10, -10, -11, -11, -11, -10, -10, -10, -9, -9, -10, -10, //146928
-10, -11, -11, -11, -11, -9, -8, -7, -7, -5, -4, -3, -3, -3, -3, -4, //146944
-5, -6, -6, -6, -6, -6, -5, -4, -3, -2, 0, 1, 1, 0, -1, -2, //146960
-3, -4, -5, -5, -5, -5, -3, 0, 1, 2, 3, 4, 5, 6, 6, 6, //146976
7, 7, 7, 7, 6, 6, 5, 5, 8, 9, 9, 9, 9, 8, 9, 9, //146992
10, 11, 11, 11, 11, 11, 11, 12, 12, 13, 14, 14, 14, 12, 12, 12, //147008
12, 13, 13, 13, 14, 16, 18, 19, 20, 20, 20, 20, 20, 20, 20, 19, //147024
18, 17, 16, 16, 16, 16, 17, 18, 19, 19, 19, 19, 18, 17, 17, 16, //147040
14, 13, 12, 12, 12, 13, 12, 12, 13, 14, 14, 13, 13, 12, 11, 12, //147056
12, 10, 9, 8, 8, 8, 8, 7, 8, 8, 9, 10, 10, 10, 8, 7, //147072
7, 5, 5, 4, 4, 4, 3, 3, 3, 2, 1, 0, 0, 0, -1, -1, //147088
-2, -2, -2, -3, -2, -1, 0, 1, 1, 1, 0, 0, 0, 0, 0, -1, //147104
-1, -2, -3, -3, -4, -3, -3, -4, -5, -5, -6, -8, -9, -10, -10, -9, //147120
-9, -8, -7, -6, -6, -6, -7, -7, -8, -8, -8, -7, -6, -6, -6, -4, //147136
-4, -3, -2, -3, -3, -3, -7, -8, -9, -10, -11, -11, -12, -12, -11, -11, //147152
-11, -10, -9, -9, -8, -8, -9, -11, -12, -13, -14, -15, -16, -15, -14, -14, //147168
-14, -12, -11, -9, -9, -9, -7, -7, -9, -11, -12, -12, -13, -13, -13, -12, //147184
-11, -10, -10, -8, -8, -7, -8, -8, -8, -10, -10, -11, -11, -12, -12, -12, //147200
-12, -11, -10, -10, -8, -8, -9, -9, -10, -11, -12, -11, -11, -12, -12, -11, //147216
-10, -9, -8, -7, -7, -5, -5, -5, -5, -5, -5, -3, -2, 0, 0, 0, //147232
0, 0, -1, -3, -4, -5, -6, -7, -7, -7, -7, -7, -6, -5, -4, -4, //147248
-5, -5, -4, -3, -2, -2, -2, 0, 1, 1, 2, 4, 5, 5, 4, 4, //147264
4, 5, 5, 4, 5, 5, 5, 5, 8, 9, 9, 9, 9, 9, 7, 6, //147280
6, 6, 4, 5, 6, 6, 7, 7, 7, 10, 11, 11, 11, 11, 9, 8, //147296
6, 5, 5, 4, 3, 4, 4, 5, 6, 7, 10, 11, 12, 14, 15, 16, //147312
16, 15, 16, 16, 15, 15, 15, 15, 14, 13, 13, 13, 12, 11, 11, 11, //147328
10, 10, 10, 11, 12, 13, 14, 16, 17, 17, 17, 16, 14, 12, 10, 9, //147344
9, 7, 5, 4, 5, 5, 4, 4, 5, 6, 7, 8, 9, 9, 8, 8, //147360
7, 7, 7, 7, 6, 5, 4, 3, 2, 2, 2, 2, 2, 2, 3, 3, //147376
3, 4, 5, 6, 6, 6, 6, 5, 5, 2, 1, -1, -2, -3, -3, -3, //147392
-3, -3, -4, -6, -5, -4, -4, -4, -3, -3, -5, -6, -6, -6, -7, -7, //147408
-7, -7, -5, -5, -5, -4, -5, -5, -5, -5, -5, -6, -6, -8, -8, -7, //147424
-7, -6, -6, -5, -4, -4, -4, -3, -3, -4, -4, -4, -6, -6, -7, -8, //147440
-8, -8, -7, -7, -7, -6, -6, -5, -5, -5, -5, -6, -6, -6, -6, -7, //147456
-8, -8, -9, -11, -11, -11, -11, -11, -10, -9, -8, -7, -7, -7, -6, -6, //147472
-6, -7, -7, -9, -11, -12, -13, -14, -14, -14, -14, -13, -11, -10, -8, -7, //147488
-5, -4, -4, -5, -5, -7, -9, -10, -10, -11, -11, -11, -10, -10, -10, -8, //147504
-8, -8, -7, -6, -4, -4, -4, -4, -4, -3, -4, -4, -5, -5, -5, -4, //147520
-4, -3, -3, -2, -2, -1, -1, 0, -1, -2, -1, -1, -2, -3, -3, -2, //147536
-2, -2, -1, -1, -1, -1, -1, -1, -1, 0, 1, 0, 0, 0, -1, 0, //147552
2, 2, 2, 3, 2, 2, 1, 1, 3, 3, 4, 4, 4, 4, 4, 5, //147568
6, 6, 7, 7, 6, 5, 5, 4, 4, 4, 4, 4, 4, 3, 2, 2, //147584
2, 1, 0, 0, 0, 0, 1, 2, 3, 3, 2, 2, 2, 2, 1, 1, //147600
0, -1, -2, -2, -3, -3, -2, -1, -1, -1, -1, 1, 1, 2, 2, 2, //147616
2, 2, 2, 3, 3, 4, 4, 4, 4, 3, 3, 3, 1, 0, -1, -2, //147632
-2, -2, -2, -3, -3, -3, -2, -2, -2, -3, -3, -4, -5, -5, -5, -6, //147648
-6, -7, -7, -7, -7, -6, -5, -4, -3, -2, -1, 0, 1, 1, 2, 2, //147664
3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 2, //147680
2, 3, 4, 5, 6, 8, 8, 8, 7, 6, 6, 6, 4, 4, 4, 4, //147696
2, 3, 3, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 5, 5, 6, //147712
7, 8, 9, 11, 12, 12, 12, 12, 13, 12, 12, 12, 9, 10, 10, 9, //147728
9, 10, 10, 10, 11, 10, 10, 11, 10, 9, 9, 8, 8, 8, 7, 6, //147744
7, 7, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, //147760
5, 4, 4, 4, 4, 3, 2, 2, 2, 1, 1, 1, 1, 0, 0, -1, //147776
-2, -2, -2, -2, -2, -2, -3, -3, -2, -2, -2, -2, -3, -4, -4, -4, //147792
-5, -6, -6, -6, -6, -6, -5, -5, -5, -6, -7, -8, -9, -9, -9, -10, //147808
-10, -10, -11, -10, -11, -11, -11, -12, -12, -13, -13, -14, -14, -14, -14, -15, //147824
-15, -15, -14, -13, -13, -13, -13, -13, -13, -13, -13, -14, -14, -15, -15, -14, //147840
-14, -14, -15, -16, -16, -16, -16, -14, -14, -13, -13, -13, -13, -13, -13, -13, //147856
-13, -12, -12, -11, -9, -9, -9, -9, -10, -10, -10, -11, -12, -13, -15, -18, //147872
-20, -21, -22, -22, -22, -19, -17, -15, -12, -10, -6, -5, -5, -6, -7, -8, //147888
-9, -10, -10, -12, -12, -13, -12, -12, -12, -10, -10, -9, -8, -8, -9, -9, //147904
-7, -6, -5, -4, -3, -1, 1, 4, 4, 5, 5, 5, 4, 2, 1, 0, //147920
-2, -4, -5, -6, -6, -5, -5, -4, -3, -2, -1, 0, 2, 4, 6, 7, //147936
8, 10, 10, 11, 11, 11, 10, 8, 8, 6, 5, 4, 3, 2, 2, 2, //147952
3, 3, 4, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 16, //147968
16, 17, 17, 18, 18, 17, 17, 16, 16, 15, 16, 16, 16, 16, 16, 17, //147984
18, 19, 21, 22, 23, 23, 23, 22, 21, 21, 19, 19, 16, 15, 15, 15, //148000
15, 14, 13, 13, 13, 13, 14, 15, 16, 16, 16, 17, 17, 16, 16, 16, //148016
15, 15, 15, 15, 15, 15, 15, 15, 14, 13, 12, 12, 11, 11, 10, 10, //148032
10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 8, 7, 6, 3, 1, //148048
0, -1, -2, -3, -3, -4, -3, -2, -2, -2, 0, 1, 1, 1, 1, -1, //148064
-1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -3, -3, -4, -4, -5, -6, //148080
-6, -6, -6, -6, -5, -4, -4, -5, -6, -7, -8, -9, -10, -11, -11, -10, //148096
-9, -8, -7, -7, -7, -7, -8, -9, -10, -10, -11, -11, -11, -11, -10, -9, //148112
-8, -6, -5, -4, -4, -4, -5, -6, -8, -10, -12, -14, -15, -16, -17, -18, //148128
-18, -17, -17, -16, -16, -16, -15, -16, -16, -15, -14, -13, -12, -12, -12, -11, //148144
-11, -11, -11, -11, -12, -13, -13, -14, -15, -15, -14, -13, -12, -12, -12, -12, //148160
-12, -12, -12, -13, -13, -13, -13, -13, -14, -14, -14, -14, -14, -13, -12, -11, //148176
-10, -10, -10, -10, -10, -10, -9, -9, -10, -10, -11, -11, -11, -10, -9, -9, //148192
-9, -9, -8, -8, -7, -7, -7, -6, -6, -5, -4, -4, -4, -4, -4, -3, //148208
-3, -3, -3, -2, -1, -1, 0, 1, 1, 1, 1, 1, 1, 1, -1, -1, //148224
-2, -2, -2, -2, -2, -2, -1, 0, 0, 1, 0, -1, -1, -1, -1, -1, //148240
0, 1, 1, 0, 0, 0, 0, -1, -1, -1, 0, 0, 1, 2, 3, 3, //148256
3, 3, 4, 4, 5, 5, 5, 6, 7, 7, 7, 6, 7, 7, 8, 8, //148272
8, 8, 8, 8, 7, 7, 7, 7, 8, 8, 8, 9, 10, 10, 9, 10, //148288
10, 10, 10, 11, 11, 9, 9, 7, 7, 7, 7, 7, 7, 7, 6, 5, //148304
6, 7, 8, 9, 10, 10, 9, 9, 9, 9, 9, 8, 8, 7, 5, 5, //148320
5, 4, 4, 5, 6, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, //148336
7, 8, 8, 8, 8, 7, 7, 7, 7, 7, 5, 4, 4, 4, 4, 5, //148352
5, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 1, 1, 0, 0, 0, //148368
-1, -1, -2, -3, -3, -3, -3, -3, -3, -3, -3, -3, -2, -1, -2, -2, //148384
-2, -4, -4, -3, -2, -2, -2, -2, -2, -2, -3, -4, -4, -4, -4, -4, //148400
-4, -4, -4, -4, -5, -4, -4, -4, -2, -1, 0, 0, 0, 0, -1, -3, //148416
-3, -4, -6, -6, -7, -8, -9, -8, -8, -7, -6, -5, -4, -4, -4, -4, //148432
-5, -6, -7, -7, -7, -5, -5, -5, -4, -4, -3, -3, -3, -3, -4, -5, //148448
-5, -6, -7, -8, -8, -8, -8, -8, -7, -7, -7, -5, -4, -2, -1, 0, //148464
0, 0, 0, 0, 0, -1, -2, -3, -3, -3, -3, -4, -3, -2, -2, -1, //148480
0, 0, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, //148496
1, 2, 2, 3, 4, 4, 5, 5, 6, 5, 4, 4, 3, 3, 3, 3, //148512
3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 0, 0, -1, -2, -2, -2, //148528
-2, -2, -3, -3, -3, -1, 0, 1, 2, 2, 2, 2, 2, 1, 0, 0, //148544
-2, -2, -2, -1, 0, 0, 1, 2, 3, 3, 3, 2, 1, 1, 1, 1, //148560
1, 1, 2, 3, 3, 4, 4, 4, 4, 4, 3, 2, 1, 1, 0, 0, //148576
0, -1, -1, 0, 0, 0, 0, -1, -1, -2, -3, -4, -5, -6, -6, -6, //148592
-6, -6, -6, -5, -4, -3, -2, -2, -2, 0, -1, 0, 0, 0, 0, 1, //148608
1, 2, 3, 3, 3, 3, 3, 2, 2, 1, 1, 1, 0, 0, 0, 0, //148624
-1, 0, 0, 0, 1, 1, 1, 1, 0, 0, -1, -1, -1, -1, -1, -1, //148640
-2, -3, -4, -4, -4, -4, -6, -6, -7, -7, -8, -8, -7, -7, -7, -6, //148656
-5, -4, -4, -3, -3, -3, -3, -3, -3, -4, -4, -3, -4, -4, -3, -2, //148672
-1, -1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, //148688
1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, //148704
1, 0, 0, 1, 2, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, //148720
4, 4, 4, 3, 3, 4, 4, 4, 4, 4, 3, 4, 5, 5, 6, 7, //148736
8, 9, 9, 9, 8, 8, 8, 7, 7, 6, 6, 6, 5, 5, 6, 6, //148752
4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 3, 2, 1, //148768
1, 1, -1, -1, -1, 0, -1, -1, 0, 0, -1, -2, -2, -2, -3, -4, //148784
-4, -4, -4, -3, -4, -4, -3, -3, -3, -3, -3, -4, -5, -5, -5, -5, //148800
-6, -6, -6, -6, -6, -5, -4, -3, -3, -3, -3, -3, -3, -3, -4, -5, //148816
-5, -5, -6, -7, -7, -7, -7, -8, -8, -8, -9, -8, -8, -8, -8, -8, //148832
-8, -8, -7, -6, -6, -6, -7, -7, -8, -8, -9, -9, -10, -11, -11, -11, //148848
-11, -9, -9, -8, -8, -8, -7, -7, -7, -6, -6, -5, -5, -4, -4, -4, //148864
-4, -4, -4, -4, -4, -5, -6, -7, -9, -10, -10, -11, -11, -10, -10, -9, //148880
-9, -8, -8, -8, -9, -10, -10, -10, -10, -11, -11, -10, -9, -8, -8, -5, //148896
-4, -3, -2, -1, 0, 0, 1, 1, 2, 2, 2, 2, 1, 1, 1, -1, //148912
-1, -1, -2, -2, -1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, //148928
-1, -3, -3, -4, -4, -5, -4, -2, -3, -3, -1, 0, 0, 1, 1, 2, //148944
3, 4, 5, 6, 7, 8, 8, 8, 8, 7, 5, 5, 5, 3, 3, 3, //148960
4, 5, 7, 9, 11, 13, 14, 14, 14, 13, 12, 10, 8, 6, 5, 5, //148976
6, 6, 7, 8, 8, 8, 8, 9, 9, 7, 6, 6, 5, 5, 5, 5, //148992
5, 7, 8, 9, 10, 11, 12, 12, 10, 10, 10, 10, 11, 12, 13, 14, //149008
14, 15, 16, 16, 16, 16, 15, 14, 13, 11, 9, 7, 7, 8, 8, 9, //149024
10, 11, 11, 10, 10, 9, 6, 3, 1, 0, -1, -1, 0, 1, 3, 4, //149040
6, 8, 8, 7, 4, 3, 1, -2, -2, -3, -3, -2, -1, 1, 4, 5, //149056
6, 6, 6, 5, 3, 2, 0, -2, -4, -5, -5, -4, -3, -3, 0, 1, //149072
2, 2, 1, 1, -1, -2, -3, -4, -7, -9, -10, -11, -11, -9, -9, -8, //149088
-7, -6, -6, -7, -7, -7, -8, -10, -10, -11, -11, -12, -12, -11, -11, -11, //149104
-10, -10, -11, -11, -10, -10, -8, -7, -6, -6, -5, -5, -5, -6, -6, -6, //149120
-7, -9, -10, -11, -12, -12, -10, -9, -7, -6, -5, -4, -3, -4, -6, -7, //149136
-8, -10, -11, -12, -13, -14, -15, -14, -14, -13, -12, -12, -10, -9, -8, -7, //149152
-7, -7, -8, -8, -7, -6, -5, -4, -3, -3, -3, -3, -4, -4, -5, -6, //149168
-8, -9, -10, -10, -11, -11, -11, -10, -8, -5, -3, -1, 0, 0, 0, 0, //149184
-1, -2, -3, -4, -5, -5, -5, -6, -6, -6, -6, -6, -4, -4, -4, -2, //149200
-1, -2, -2, -1, 0, -1, -2, -2, -3, -3, -3, -3, -4, -4, -4, -3, //149216
-3, 0, 1, 2, 4, 5, 6, 6, 5, 5, 4, 2, 0, -1, -2, -5, //149232
-6, -6, -4, -3, -1, 0, 0, 3, 4, 5, 6, 6, 6, 4, 5, 5, //149248
6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 4, 3, 3, 4, 4, //149264
5, 6, 6, 6, 7, 7, 7, 6, 5, 4, 2, 1, 2, 2, 0, 1, //149280
2, 4, 7, 8, 9, 9, 9, 9, 9, 9, 7, 5, 5, 4, 4, 4, //149296
5, 5, 4, 3, 2, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 13, //149312
13, 11, 10, 9, 8, 7, 6, 5, 3, 3, 2, 2, 3, 4, 4, 5, //149328
5, 5, 5, 4, 3, 2, 1, -1, -2, -3, -3, -3, -2, -2, -2, -1, //149344
0, 0, 1, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, //149360
3, 3, 2, 2, 4, 5, 5, 6, 7, 6, 7, 7, 7, 7, 7, 4, //149376
2, 1, 0, -1, -1, -2, -3, -3, -4, -4, -3, -2, -2, -2, -1, -1, //149392
-4, -5, -6, -7, -8, -9, -8, -8, -7, -6, -5, -6, -5, -5, -5, -5, //149408
-5, -6, -7, -8, -9, -9, -9, -9, -9, -8, -7, -7, -4, -4, -3, -2, //149424
-1, -1, -2, -2, -3, -4, -5, -6, -5, -5, -5, -5, -5, -5, -6, -6, //149440
-6, -6, -6, -6, -7, -7, -8, -8, -9, -9, -8, -8, -8, -8, -8, -9, //149456
-8, -7, -6, -4, -2, -2, -2, -2, -2, -2, -3, -4, -4, -4, -5, -6, //149472
-6, -6, -5, -4, -4, -3, -2, -1, 0, 0, 0, 0, 0, 0, 0, 0, //149488
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, -1, -2, -3, -4, -4, //149504
-4, -5, -5, -5, -4, -4, -4, -3, -3, -3, -2, -1, -1, -1, 0, 1, //149520
2, 2, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, //149536
3, 3, 3, 3, 2, 2, 1, 0, -1, -1, -1, -1, 0, 0, 0, 1, //149552
2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, //149568
0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, //149584
2, 3, 2, 2, 3, 3, 4, 3, 2, 2, 3, 4, 4, 4, 5, 5, //149600
6, 6, 5, 4, 4, 3, 3, 3, 3, 3, 2, 1, 0, -1, -1, -2, //149616
-2, -2, -1, -1, -1, -2, -2, -1, 0, 1, 2, 3, 3, 2, 2, 1, //149632
1, 1, 0, 0, -1, -1, -2, -2, -2, -2, -3, -3, -3, -3, -2, -1, //149648
-1, -2, -2, -2, -3, -4, -4, -4, -4, -4, -4, -3, -3, -2, -2, -1, //149664
-1, -2, -3, -3, -4, -4, -5, -5, -6, -7, -7, -8, -8, -7, -6, -6, //149680
-5, -6, -5, -5, -5, -4, -3, -2, -1, 0, 0, 0, 0, -1, -1, -2, //149696
-2, -2, -2, -3, -3, -3, -3, -2, -2, -1, 0, 0, 1, 1, 2, 3, //149712
4, 4, 5, 5, 5, 5, 4, 3, 3, 2, 2, 2, 3, 3, 4, 5, //149728
6, 6, 7, 7, 7, 7, 6, 7, 7, 6, 6, 6, 6, 7, 7, 8, //149744
8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 9, 8, 8, 8, 8, 8, //149760
8, 8, 8, 8, 8, 9, 8, 8, 8, 8, 7, 7, 6, 6, 6, 6, //149776
6, 5, 5, 4, 4, 4, 2, 2, 1, 0, -1, -2, -3, -3, -3, -3, //149792
-3, -3, -3, -3, -3, -3, -3, -3, -3, -4, -5, -5, -5, -5, -6, -6, //149808
-5, -4, -3, -3, -3, -4, -5, -6, -6, -7, -8, -9, -10, -10, -10, -8, //149824
-7, -6, -6, -4, -3, -2, -1, -1, -2, -2, -3, -4, -5, -7, -7, -8, //149840
-10, -10, -11, -11, -10, -9, -7, -6, -5, -5, -5, -5, -5, -6, -7, -8, //149856
-11, -13, -14, -15, -15, -14, -13, -12, -10, -8, -6, -5, -5, -4, -4, -4, //149872
-4, -6, -7, -9, -10, -10, -10, -10, -8, -7, -7, -6, -4, -3, -3, -3, //149888
-3, -4, -6, -7, -7, -8, -10, -11, -11, -10, -9, -7, -5, -2, -1, 0, //149904
-1, -1, -1, -3, -5, -7, -8, -10, -12, -14, -14, -12, -12, -10, -7, -5, //149920
-4, -3, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, 0, 2, //149936
2, 2, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, //149952
3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 5, 4, 3, //149968
2, 2, 1, 1, 1, 2, 2, 4, 5, 6, 7, 8, 9, 9, 10, 10, //149984
10, 10, 8, 8, 9, 10, 11, 11, 11, 13, 15, 16, 17, 18, 18, 18, //150000
18, 18, 17, 14, 13, 13, 12, 12, 11, 11, 12, 12, 13, 13, 13, 12, //150016
11, 10, 10, 10, 7, 6, 6, 7, 8, 10, 12, 14, 14, 15, 16, 15, //150032
15, 15, 15, 13, 11, 10, 9, 8, 8, 8, 9, 9, 10, 10, 9, 9, //150048
7, 5, 4, 4, 4, 2, 3, 3, 3, 4, 5, 7, 8, 9, 9, 9, //150064
9, 8, 7, 6, 5, 4, 4, 4, 5, 5, 5, 5, 5, 5, 4, 4, //150080
3, 2, 0, -2, -4, -5, -4, -4, -5, -5, -5, -5, -5, -5, -6, -6, //150096
-7, -7, -8, -9, -10, -10, -11, -11, -10, -9, -7, -7, -6, -6, -6, -6, //150112
-7, -8, -8, -8, -11, -12, -14, -14, -14, -13, -12, -11, -11, -12, -13, -14, //150128
-14, -15, -16, -16, -16, -16, -16, -15, -15, -15, -15, -14, -14, -13, -13, -13, //150144
-14, -13, -13, -13, -12, -12, -12, -12, -13, -13, -13, -13, -14, -14, -15, -15, //150160
-15, -15, -14, -13, -13, -11, -9, -9, -9, -9, -9, -10, -11, -14, -15, -16, //150176
-16, -15, -15, -14, -13, -12, -10, -8, -6, -5, -6, -8, -8, -8, -9, -8, //150192
-7, -6, -5, -4, -2, -2, -2, -1, -1, -2, -2, -2, -3, -4, -6, -6, //150208
-6, -6, -5, -4, -4, -4, -3, -2, -2, -2, -2, -2, -2, -3, -4, -4, //150224
-3, -3, -2, 1, 1, 1, 1, 2, 3, 4, 3, 4, 4, 5, 5, 4, //150240
5, 3, 1, 1, 0, 0, -1, -2, -2, -2, -1, 1, 1, 2, 2, 3, //150256
4, 6, 6, 7, 8, 9, 11, 11, 11, 12, 12, 12, 9, 8, 8, 8, //150272
5, 3, 2, 0, -2, -3, -2, 0, 1, 4, 5, 6, 8, 10, 8, 8, //150288
7, 7, 6, 7, 7, 8, 8, 7, 7, 10, 11, 12, 13, 13, 11, 9, //150304
8, 7, 7, 7, 6, 5, 5, 5, 4, 4, 3, 3, 2, 2, 4, 4, //150320
2, 2, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 2, 2, 3, //150336
4, 5, 6, 6, 6, 8, 9, 7, 7, 7, 6, 5, 4, 2, 0, -1, //150352
-2, -3, -3, -3, -4, -4, -4, -1, 0, 1, 4, 5, 8, 11, 11, 11, //150368
11, 9, 7, 6, 6, 5, 4, 4, 3, 2, 2, 2, 1, 2, 3, 4, //150384
4, 5, 6, 4, 5, 5, 5, 5, 5, 5, 4, 3, 3, 3, 1, 2, //150400
1, 2, 2, 2, 1, 1, 1, 1, 2, 3, 4, 3, 3, 3, 3, 0, //150416
-1, -2, -2, -3, -3, -2, -3, -3, -4, -5, -5, -3, -2, -3, -4, -4, //150432
-4, -5, -6, -7, -6, -6, -7, -6, -5, -4, -4, -4, -4, -3, -4, -5, //150448
-5, -5, -7, -7, -6, -6, -6, -6, -6, -7, -7, -7, -8, -7, -6, -6, //150464
-6, -6, -6, -7, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -7, -7, //150480
-6, -6, -6, -6, -7, -8, -9, -10, -10, -8, -6, -4, -3, -2, -2, -2, //150496
-2, -1, -1, -1, -1, -3, -4, -5, -6, -8, -9, -8, -8, -9, -9, -7, //150512
-6, -5, -4, -3, -3, -3, -2, -2, -2, -2, -4, -7, -7, -7, -6, -6, //150528
-5, -5, -4, -3, -3, -3, -1, -2, -2, -2, -3, -3, -5, -4, -4, -4, //150544
-4, -4, -3, -3, -2, -1, -1, -1, -1, 0, 1, 1, 1, -2, -3, -4, //150560
-5, -5, -5, -4, -4, -4, -4, -4, -3, -3, -4, -3, -2, -1, -1, 0, //150576
-1, -2, -2, -2, -1, 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 6, //150592
6, 5, 5, 5, 6, 6, 5, 6, 7, 7, 6, 5, 5, 4, 4, 4, //150608
3, 3, 3, 3, 3, 3, 2, 2, 2, 1, 1, 2, 1, 0, 0, 1, //150624
1, 2, 2, 3, 3, 3, 4, 4, 4, 3, 3, 3, 3, 4, 4, 4, //150640
4, 3, 3, 4, 5, 6, 7, 7, 7, 7, 6, 4, 4, 2, 1, 0, //150656
-1, -1, -1, -3, -2, -1, 0, 0, 0, 0, 0, 0, 0, -1, -1, -2, //150672
-3, -4, -4, -4, -3, -3, -2, -1, -1, -3, -3, -3, -3, -3, -3, -5, //150688
-5, -5, -4, -4, -3, -1, -1, -1, 0, 0, 0, -1, -2, -2, -2, -2, //150704
-3, -2, -1, 0, 1, 1, 2, 1, 1, 0, 0, -1, 0, 0, 0, 1, //150720
2, 2, 2, 3, 4, 5, 5, 6, 6, 5, 5, 5, 6, 6, 6, 7, //150736
7, 8, 8, 9, 10, 10, 10, 10, 9, 8, 8, 9, 9, 9, 10, 10, //150752
11, 12, 12, 13, 13, 14, 14, 12, 11, 11, 10, 9, 7, 5, 5, 4, //150768
4, 4, 5, 5, 3, 3, 3, 2, 2, 2, 2, 2, 1, 0, -1, 0, //150784
0, 0, 1, 1, 1, -1, -1, -1, 0, 0, 0, 0, 1, 1, -2, -2, //150800
-2, -3, -5, -6, -6, -6, -6, -7, -6, -5, -5, -5, -5, -4, -4, -4, //150816
-4, -5, -5, -6, -7, -8, -9, -10, -11, -11, -10, -9, -8, -7, -6, -5, //150832
-5, -6, -5, -5, -6, -6, -6, -6, -7, -7, -7, -7, -7, -7, -8, -8, //150848
-9, -8, -8, -9, -9, -10, -10, -10, -10, -10, -9, -8, -8, -8, -6, -6, //150864
-6, -6, -6, -6, -7, -7, -7, -7, -6, -7, -7, -7, -7, -8, -9, -10, //150880
-11, -12, -13, -13, -13, -11, -9, -8, -7, -5, -5, -4, -4, -4, -3, -3, //150896
-3, -4, -5, -6, -7, -7, -8, -10, -11, -13, -13, -14, -13, -12, -11, -10, //150912
-9, -8, -6, -5, -4, -3, -3, -3, -5, -6, -6, -7, -8, -8, -9, -9, //150928
-10, -10, -11, -10, -9, -9, -9, -7, -4, -2, 1, 4, 6, 9, 9, 7, //150944
6, 5, 2, -1, -4, -7, -9, -10, -10, -10, -9, -8, -6, -5, -3, -2, //150960
-2, -1, -1, -1, 1, 2, 2, 3, 6, 7, 9, 10, 10, 10, 10, 7, //150976
4, 2, 1, -1, -2, -2, -1, -1, 0, 1, 2, 3, 3, 4, 5, 6, //150992
7, 8, 9, 11, 11, 12, 11, 10, 9, 7, 5, 2, 1, -1, -2, -2, //151008
-2, 0, 2, 4, 7, 9, 10, 12, 14, 15, 15, 15, 15, 14, 13, 13, //151024
13, 14, 14, 14, 15, 15, 14, 14, 14, 15, 15, 14, 13, 13, 12, 12, //151040
13, 14, 16, 17, 19, 21, 23, 25, 25, 25, 25, 23, 19, 16, 13, 10, //151056
6, 5, 3, 2, 2, 2, 3, 6, 7, 9, 10, 12, 12, 12, 13, 13, //151072
12, 11, 10, 8, 7, 7, 6, 6, 6, 5, 5, 4, 5, 5, 4, 4, //151088
4, 4, 4, 4, 4, 4, 4, 4, 3, 4, 4, 2, 2, 2, 2, 1, //151104
-1, -3, -5, -7, -9, -12, -13, -14, -13, -12, -11, -9, -7, -5, -4, -3, //151120
-2, -2, -4, -5, -6, -8, -8, -8, -9, -9, -10, -10, -10, -10, -10, -9, //151136
-8, -7, -8, -7, -6, -5, -4, -3, -2, -3, -4, -5, -8, -9, -12, -14, //151152
-16, -17, -18, -19, -19, -18, -17, -16, -16, -16, -16, -16, -16, -16, -16, -14, //151168
-14, -13, -11, -10, -8, -6, -6, -6, -7, -7, -8, -10, -11, -12, -13, -14, //151184
-15, -15, -15, -15, -15, -15, -12, -13, -13, -11, -9, -9, -7, -6, -6, -6, //151200
-6, -8, -8, -10, -12, -13, -15, -16, -17, -17, -15, -13, -12, -9, -7, -6, //151216
-5, -5, -6, -6, -7, -9, -9, -9, -10, -10, -9, -8, -7, -7, -5, -4, //151232
-3, -1, -1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 1, //151248
1, 2, 1, 1, 1, 0, 0, 0, 0, 0, 3, 4, 4, 3, 4, 3, //151264
3, 3, 4, 4, 4, 6, 7, 7, 8, 9, 10, 10, 10, 9, 9, 9, //151280
9, 9, 9, 8, 8, 8, 8, 9, 10, 10, 9, 9, 9, 8, 9, 9, //151296
9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 9, 8, 7, 7, 7, 7, //151312
7, 8, 9, 9, 8, 8, 8, 8, 7, 7, 8, 8, 9, 10, 10, 10, //151328
10, 10, 10, 10, 10, 9, 8, 7, 6, 6, 6, 6, 6, 7, 7, 7, //151344
7, 6, 6, 6, 5, 3, 2, 2, 1, -1, -2, -2, -1, -2, -2, -2, //151360
-3, -3, -3, -2, -1, -1, 0, 1, 2, 2, 2, 1, 1, 1, 0, -2, //151376
-2, -4, -4, -4, -4, -4, -3, -1, 0, 0, 0, 1, 1, 2, 2, 3, //151392
3, 2, 1, 1, 1, 0, -1, -1, -3, -5, -6, -7, -8, -9, -10, -9, //151408
-9, -9, -9, -7, -4, -3, -2, 0, -1, -2, -2, -2, -2, -2, -1, -2, //151424
-3, -4, -4, -3, -2, -1, -1, -2, -3, -4, -4, -4, -3, -3, -3, -3, //151440
-3, -3, -3, -3, -4, -4, -5, -6, -6, -6, -8, -7, -7, -6, -5, -5, //151456
-4, -3, -2, -2, -1, -1, -1, -2, -2, -1, 0, 0, -1, -2, -3, -3, //151472
-3, -3, -3, -4, -5, -5, -5, -5, -5, -4, -4, -4, -4, -3, -1, -1, //151488
-1, -1, -1, -2, -3, -2, -2, -2, -2, -2, -3, -3, -3, -3, -3, -3, //151504
-3, -3, -3, -5, -4, -4, -4, -2, -2, -2, -1, -1, -1, -1, -2, -2, //151520
-2, -3, -3, -4, -4, -4, -3, -2, -2, -1, -1, -1, -1, -2, -2, -2, //151536
-2, -2, -2, -1, 0, 0, 0, 1, 1, 1, 2, 2, 1, 1, 1, 1, //151552
0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 1, //151568
1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 2, 2, //151584
3, 4, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, //151600
2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 3, 3, 3, 3, 3, 3, //151616
3, 3, 3, 4, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, //151632
2, 2, 2, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, //151648
1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, //151664
2, 2, 2, 2, 2, 2, 1, 1, 1, 0, 0, -1, -1, -2, -2, -2, //151680
-2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2, //151696
-2, -2, -1, -1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, //151712
-1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, //151728
-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -1, -1, //151744
-1, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -1, //151760
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //151776
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //151792
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, };
|
e343bce5d60957493c950422575743bec7e3f271
|
b732361d6b3405c3e79ac0a7d8361cf5b329b015
|
/ext/phalcon/logger/formatter/formatterinterface.zep.c
|
5b8ec5b0efbd81860179d296af28fcebddd63dcc
|
[
"BSD-3-Clause"
] |
permissive
|
phalcon/cphalcon
|
4a5b26f47b5c2a4107541d7fd73c595c0d90ed73
|
fc183e11e8b96c43daf7d893244846206dc2aa73
|
refs/heads/master
| 2023-03-07T22:09:48.814291
| 2023-02-28T16:45:15
| 2023-02-28T16:45:15
| 2,854,337
| 8,135
| 2,343
|
BSD-3-Clause
| 2023-09-12T12:41:13
| 2011-11-26T05:52:50
|
PHP
|
UTF-8
|
C
| false
| true
| 969
|
c
|
formatterinterface.zep.c
|
#ifdef HAVE_CONFIG_H
#include "../../../ext_config.h"
#endif
#include <php.h>
#include "../../../php_ext.h"
#include "../../../ext.h"
#include <Zend/zend_exceptions.h>
#include "kernel/main.h"
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
/**
* Phalcon\Logger\FormatterInterface
*
* This interface must be implemented by formatters in Phalcon\Logger
*/
ZEPHIR_INIT_CLASS(Phalcon_Logger_Formatter_FormatterInterface)
{
ZEPHIR_REGISTER_INTERFACE(Phalcon\\Logger\\Formatter, FormatterInterface, phalcon, logger_formatter_formatterinterface, phalcon_logger_formatter_formatterinterface_method_entry);
return SUCCESS;
}
/**
* Applies a format to an item
*
* @param Item $item
*
* @return string
*/
ZEPHIR_DOC_METHOD(Phalcon_Logger_Formatter_FormatterInterface, format);
|
4cbf7ffd235f4ea0304fa3301b360c4351e1e8cc
|
011e552512f45ca313615e428924d001a427e8e6
|
/hal/console.h
|
87ca3ecf4ee45036ea5702534e3a388d09e46212
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] |
permissive
|
phoenix-rtos/phoenix-rtos-kernel
|
3d4c1d0e7703ea5ce50c2642d35fbb79c1f2afd6
|
e15898bac82e168f7e6aaea60d413790a282f389
|
refs/heads/master
| 2023-09-01T15:04:26.226958
| 2023-09-01T09:21:17
| 2023-09-01T09:45:00
| 125,823,596
| 115
| 39
|
BSD-3-Clause
| 2023-09-14T13:34:22
| 2018-03-19T08:14:43
|
C
|
UTF-8
|
C
| false
| false
| 632
|
h
|
console.h
|
/*
* Phoenix-RTOS
*
* Operating system kernel
*
* HAL console
*
* Copyright 2012, 2016 Phoenix Systems
* Copyright 2001, 2005 Pawel Pisarczyk
* Author: Pawel Pisarczyk
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#ifndef _HAL_CONSOLE_H_
#define _HAL_CONSOLE_H_
/* Console attributes */
#define ATTR_NORMAL 0x03
#define ATTR_BOLD 0x0f
#define ATTR_USER 0x07
#define CONSOLE_CYAN "\033[36m"
#define CONSOLE_NORMAL "\033[0m"
#define CONSOLE_BOLD "\033[1m"
extern void hal_consolePrint(int attr, const char *s);
extern void hal_consolePutch(char c);
extern void _hal_consoleInit(void);
#endif
|
e80ad6dad7d05115fe365e842ace7e440182a294
|
503bf74961cc3d52236d52439eeb7e8059860b7a
|
/src/win/win-term.h
|
170c4be7894e1d684782dc14eec8107e5d0925b3
|
[] |
no_license
|
angband/angband
|
f00cce82a82b73f8c58a0dc12cbd2f3957dab5ce
|
e2f4b269f276b9fd7a25cba2b9a49fac84642416
|
refs/heads/master
| 2023-08-29T15:58:27.283723
| 2023-08-25T16:50:33
| 2023-08-28T21:40:44
| 1,033,705
| 1,206
| 386
| null | 2023-09-13T21:18:28
| 2010-10-29T01:17:48
|
C
|
UTF-8
|
C
| false
| false
| 2,175
|
h
|
win-term.h
|
/**
* \file win-term.h
* \brief Windows terminal structure.
*
* Copyright (c) 1997 Ben Harrison, Skirmantas Kligys, Robert Ruehlmann,
* and others
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software
* Foundation, version 2, or
*
* b) the "Angband licence":
* This software may be copied and distributed for educational, research,
* and not for profit purposes provided that this copyright and statement
* are included in all such copies. Other copyrights may also apply.
*/
#ifndef INCLUDED_WIN_TERM_H
#define INCLUDED_WIN_TERM_H
/**
* Initial framework (and most code) by Ben Harrison (benh@phial.com).
*
* Original code by Skirmantas Kligys (kligys@scf.usc.edu).
*
* Additional code by Ross E Becker (beckerr@cis.ohio-state.edu),
* and Chris R. Martin (crm7479@tam2000.tamu.edu).
*
* Additional code by Robert Ruehlmann <rr9@thangorodrim.net>.
*/
/**
* Forward declare
*/
typedef struct _term_data term_data;
/**
* Extra "term" data
*
* Note the use of "font_want" for the names of the font file requested by
* the user, and the use of "font_file" for the currently active font file.
*
* The "font_file" is uppercased, and takes the form "8X13.FON", while
* "font_want" can be in almost any form as long as it could be construed
* as attempting to represent the name of a font.
*/
struct _term_data
{
term t;
const char *s;
HWND w;
DWORD dwStyle;
DWORD dwExStyle;
uint keys;
uint8_t rows;
uint8_t cols;
uint pos_x;
uint pos_y;
uint size_wid;
uint size_hgt;
uint size_ow1;
uint size_oh1;
uint size_ow2;
uint size_oh2;
bool size_hack;
bool xtra_hack;
bool visible;
bool maximized;
bool bizarre;
char *font_want;
char *font_file;
HFONT font_id;
uint font_wid;
uint font_hgt;
uint tile_wid;
uint tile_hgt;
uint map_tile_wid;
uint map_tile_hgt;
bool map_active;
};
/**
* Maximum number of windows XXX XXX XXX
*/
#define MAX_TERM_DATA 8
/* From win-layout.c */
int default_layout_win(term_data *data, int maxterms);
#endif /* INCLUDED_WIN_TERM_H */
|
1dd85fe9e4e0fcfa53a367df33dbf2e542aa7e9b
|
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
|
/comms/lirc/files/patch-daemons_hw__devinput.c
|
5160fb5f200a794f54488d33b1c435ffbcc58d30
|
[
"BSD-2-Clause"
] |
permissive
|
freebsd/freebsd-ports
|
86f2e89d43913412c4f6b2be3e255bc0945eac12
|
605a2983f245ac63f5420e023e7dce56898ad801
|
refs/heads/main
| 2023-08-30T21:46:28.720924
| 2023-08-30T19:33:44
| 2023-08-30T19:33:44
| 1,803,961
| 916
| 918
|
NOASSERTION
| 2023-09-08T04:06:26
| 2011-05-26T11:15:35
| null |
UTF-8
|
C
| false
| false
| 2,417
|
c
|
patch-daemons_hw__devinput.c
|
--- daemons/hw_devinput.c.orig 2011-03-25 22:28:18 UTC
+++ daemons/hw_devinput.c
@@ -376,9 +376,15 @@ int devinput_decode(struct ir_remote *remote, ir_code
return 1;
}
+/* simulate key repeat if receiving the same scancode again */
+#define RPT_SCAN
+
char *devinput_rec(struct ir_remote *remotes)
{
struct input_event event;
+#ifdef RPT_SCAN
+ static struct input_event rptevent, scancodeevent;
+#endif
int rd;
ir_code value;
@@ -399,6 +405,56 @@ char *devinput_rec(struct ir_remote *remotes)
LOGPRINTF(1, "time %ld.%06ld type %d code %d value %d", event.time.tv_sec, event.time.tv_usec, event.type,
event.code, event.value);
+#ifdef RPT_SCAN
+ repeat_state = RPT_UNKNOWN;
+ if (event.type == EV_KEY) {
+ if (event.code == rptevent.code &&
+ event.value == 1 &&
+ event.type == rptevent.type &&
+ scancodeevent.type == EV_MSC) {
+ struct timeval difft;
+
+ difft = event.time;
+ difft.tv_sec -= scancodeevent.time.tv_sec;
+ difft.tv_usec -= scancodeevent.time.tv_usec;
+ if (difft.tv_usec < 0) {
+ difft.tv_sec--;
+ difft.tv_usec += 1000000;
+ }
+ if (difft.tv_sec == 0 && difft.tv_usec < 150000) {
+ repeat_state = RPT_YES;
+ }
+ }
+ rptevent = event;
+ scancodeevent.time = event.time;
+ } else if (event.type == EV_MSC && event.code == MSC_SCAN) {
+ if (scancodeevent.type == EV_MSC &&
+ event.value == scancodeevent.value) {
+ if (rptevent.type == EV_KEY && rptevent.value != 0) {
+ struct timeval difft;
+
+ difft = event.time;
+ difft.tv_sec -= scancodeevent.time.tv_sec;
+ difft.tv_usec -= scancodeevent.time.tv_usec;
+ if (difft.tv_usec < 0) {
+ difft.tv_sec--;
+ difft.tv_usec += 1000000;
+ }
+ scancodeevent = event;
+ event = rptevent;
+ if (difft.tv_sec == 0 && difft.tv_usec < 250000) {
+ event.value = 2;
+ repeat_state = RPT_YES;
+ } else {
+ event.value = 1;
+ repeat_state = RPT_NO;
+ }
+ }
+ } else if (rptevent.type == EV_KEY && rptevent.value <= 1) {
+ scancodeevent = event;
+ }
+ }
+#endif
value = (unsigned)event.value;
#ifdef EV_SW
if (value == 2 && (event.type == EV_KEY || event.type == EV_SW)) {
@@ -418,6 +474,9 @@ char *devinput_rec(struct ir_remote *remotes)
if (event.value == 2) {
repeat_state = RPT_YES;
} else {
+#ifdef RPT_SCAN
+ if (repeat_state == RPT_UNKNOWN)
+#endif
repeat_state = RPT_NO;
}
} else {
|
37e32f620999510bca7aeef37d49bbce7c84a7fc
|
76f9898ff7a555f4a729d725056a317af818375d
|
/assets/scenes/interiors/pr_kokiri_house_2/pr_kokiri_house_2_room_00.h
|
df748e63e7f5a34dc1e24a6e3d033323010db55b
|
[] |
no_license
|
z64proto/sw97
|
0b65837ab2f2a4073faca5670761d7fe0e74d29d
|
f571505ade2cefd4a5b5d19da06d33e7c6b02c60
|
refs/heads/master
| 2023-08-01T02:47:42.895871
| 2022-05-15T20:29:08
| 2022-05-15T20:29:08
| 430,216,978
| 208
| 29
| null | 2021-11-22T12:23:50
| 2021-11-20T21:52:59
|
C
|
UTF-8
|
C
| false
| false
| 387
|
h
|
pr_kokiri_house_2_room_00.h
|
extern MeshHeader1Single pr_kokiri_house_2_room_00MeshHeader0x0051C0;
s16 pr_kokiri_house_2_room_00ObjectList0x000048[];
extern ActorEntry pr_kokiri_house_2_room_00ActorList0x000060[1];
extern s16 pr_kokiri_house_2_room_00ObjectList0x000048[11];
extern ActorEntry pr_kokiri_house_2_room_00ActorList0x000060[1];
extern MeshHeader1Single pr_kokiri_house_2_room_00MeshHeader0x0051C0;
|
695dee7817dfc6abbcd7ea61f46729125328ee66
|
b2f295072d61bd25c47a05aedc4a5f9a8d9df670
|
/Foundation/Bugsnag/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach_Arm64.c
|
78795c079a6d24b4c81ee73de3b460ea42c84b8c
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
SailyTeam/Saily
|
8f48fde0abec0c5c79e53e5db31af17351958962
|
c0ae33ee26db2ecbab7d33e42c15148cad80f22f
|
refs/heads/main-2.0
| 2022-12-23T05:41:58.080306
| 2022-12-22T12:30:53
| 2022-12-22T12:33:52
| 280,041,061
| 796
| 63
|
Unlicense
| 2022-12-22T11:22:33
| 2020-07-16T03:16:41
|
Swift
|
UTF-8
|
C
| false
| false
| 5,420
|
c
|
BSG_KSMach_Arm64.c
|
//
// KSMach_Arm.c
//
// Created by Karl Stenerud on 2013-09-29.
//
// Copyright (c) 2012 Karl Stenerud. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall remain in place
// in this source code.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#if defined(__arm64__)
#include "BSG_KSMach.h"
#include "BSGDefines.h"
//#define BSG_KSLogger_LocalLevel TRACE
#include "BSG_KSLogger.h"
static const char *bsg_g_registerNames[] = {
"x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8",
"x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", "x17",
"x18", "x19", "x20", "x21", "x22", "x23", "x24", "x25", "x26",
"x27", "x28", "x29", "fp", "lr", "sp", "pc", "cpsr"};
static const int bsg_g_registerNamesCount =
sizeof(bsg_g_registerNames) / sizeof(*bsg_g_registerNames);
static const char *bsg_g_exceptionRegisterNames[] = {"exception", "esr", "far"};
static const int bsg_g_exceptionRegisterNamesCount =
sizeof(bsg_g_exceptionRegisterNames) /
sizeof(*bsg_g_exceptionRegisterNames);
uintptr_t
bsg_ksmachframePointer(const BSG_STRUCT_MCONTEXT_L *const machineContext) {
// Must cast these because while the machine context always stores all registers
// as 64-bit, some watch devices are actually 64-bit with 32-bit addressing.
return (uintptr_t)machineContext->__ss.__fp;
}
uintptr_t
bsg_ksmachstackPointer(const BSG_STRUCT_MCONTEXT_L *const machineContext) {
return (uintptr_t)machineContext->__ss.__sp;
}
uintptr_t bsg_ksmachinstructionAddress(
const BSG_STRUCT_MCONTEXT_L *const machineContext) {
return (uintptr_t)machineContext->__ss.__pc;
}
uintptr_t
bsg_ksmachlinkRegister(const BSG_STRUCT_MCONTEXT_L *const machineContext) {
return (uintptr_t)machineContext->__ss.__lr;
}
#if BSG_HAVE_MACH_THREADS
bool bsg_ksmachthreadState(const thread_t thread,
BSG_STRUCT_MCONTEXT_L *const machineContext) {
return bsg_ksmachfillState(thread, (thread_state_t)&machineContext->__ss,
ARM_THREAD_STATE64, ARM_THREAD_STATE64_COUNT);
}
bool bsg_ksmachfloatState(const thread_t thread,
BSG_STRUCT_MCONTEXT_L *const machineContext) {
return bsg_ksmachfillState(thread, (thread_state_t)&machineContext->__ns,
ARM_VFP_STATE, ARM_VFP_STATE_COUNT);
}
bool bsg_ksmachexceptionState(const thread_t thread,
BSG_STRUCT_MCONTEXT_L *const machineContext) {
return bsg_ksmachfillState(thread, (thread_state_t)&machineContext->__es,
ARM_EXCEPTION_STATE64,
ARM_EXCEPTION_STATE64_COUNT);
}
#endif
int bsg_ksmachnumRegisters(void) { return bsg_g_registerNamesCount; }
const char *bsg_ksmachregisterName(const int regNumber) {
if (regNumber < bsg_ksmachnumRegisters()) {
return bsg_g_registerNames[regNumber];
}
return NULL;
}
uint64_t
bsg_ksmachregisterValue(const BSG_STRUCT_MCONTEXT_L *const machineContext,
const int regNumber) {
if (regNumber <= 29) {
return machineContext->__ss.__x[regNumber];
}
switch (regNumber) {
case 30:
return machineContext->__ss.__fp;
case 31:
return machineContext->__ss.__lr;
case 32:
return machineContext->__ss.__sp;
case 33:
return machineContext->__ss.__pc;
case 34:
return machineContext->__ss.__cpsr;
}
BSG_KSLOG_ERROR("Invalid register number: %d", regNumber);
return 0;
}
int bsg_ksmachnumExceptionRegisters(void) {
return bsg_g_exceptionRegisterNamesCount;
}
const char *bsg_ksmachexceptionRegisterName(const int regNumber) {
if (regNumber < bsg_ksmachnumExceptionRegisters()) {
return bsg_g_exceptionRegisterNames[regNumber];
}
BSG_KSLOG_ERROR("Invalid register number: %d", regNumber);
return NULL;
}
uint64_t bsg_ksmachexceptionRegisterValue(
const BSG_STRUCT_MCONTEXT_L *const machineContext, const int regNumber) {
switch (regNumber) {
case 0:
return machineContext->__es.__exception;
case 1:
return machineContext->__es.__esr;
case 2:
return machineContext->__es.__far;
}
BSG_KSLOG_ERROR("Invalid register number: %d", regNumber);
return 0;
}
uintptr_t
bsg_ksmachfaultAddress(const BSG_STRUCT_MCONTEXT_L *const machineContext) {
return (uintptr_t)machineContext->__es.__far;
}
int bsg_ksmachstackGrowDirection(void) { return -1; }
#endif
|
9a641db1557a940656be3ee626aaa18a6f5243d9
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/include/linux/time-armada-370-xp.h
|
dfdfdc03115ba8a946d00f1d681ed073441ecd3b
|
[
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 391
|
h
|
time-armada-370-xp.h
|
/*
* Marvell Armada 370/XP SoC timer handling.
*
* Copyright (C) 2012 Marvell
*
* Lior Amsalem <alior@marvell.com>
* Gregory CLEMENT <gregory.clement@free-electrons.com>
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*
*/
#ifndef __TIME_ARMADA_370_XPPRCMU_H
#define __TIME_ARMADA_370_XPPRCMU_H
#include <linux/init.h>
void __init armada_370_xp_timer_init(void);
#endif
|
6006401dbd3f261b64ca15baee90d29a3b90ca51
|
de21f9075f55640514c29ef0f1fe3f0690845764
|
/regression/cbmc/enum_underlying_type_03/main.c
|
8a469bec7a892f03081836d19367ad51d8dbec9f
|
[
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause"
] |
permissive
|
diffblue/cbmc
|
975a074ac445febb3b5715f8792beb545522dc18
|
decd2839c2f51a54b2ad0f3e89fdc1b4bf78cd16
|
refs/heads/develop
| 2023-08-31T05:52:05.342195
| 2023-08-30T13:31:51
| 2023-08-30T13:31:51
| 51,877,056
| 589
| 309
|
NOASSERTION
| 2023-09-14T18:49:17
| 2016-02-16T23:03:52
|
C++
|
UTF-8
|
C
| false
| false
| 66
|
c
|
main.c
|
#include <assert.h>
enum enum1 : float
{
E1
};
int main()
{
}
|
f01a44148ed4f17cf8062c65ec20c642f66aa522
|
aed47b5a4ea3af5cbacfc034c1565bd800e9461a
|
/Projects/Stepper Motor Controller/Model Reference Adaptive CAN-Bus Controller/Core/Src/MCP2515/J1939.c
|
a9242007ce23050d33f50aa3b48f13257f9f3ba6
|
[
"MIT"
] |
permissive
|
DanielMartensson/CControl
|
a4dcfc13af8ef8266ac83f9ec0690848f5afd1b2
|
25ce62ef3a0d87a55459fc9e7d4e1ee895d89ed9
|
refs/heads/master
| 2023-08-30T23:53:16.167470
| 2023-08-28T21:30:11
| 2023-08-28T21:30:11
| 214,724,629
| 169
| 53
|
MIT
| 2023-03-02T21:35:56
| 2019-10-12T22:33:21
|
C
|
UTF-8
|
C
| false
| false
| 12,897
|
c
|
J1939.c
|
/*
* J1939.c
*
* Created on: 11 aug. 2020
* Author: Daniel Mårtensson
*/
#include "j1939.h"
static bool CAN_connected = false;
static uCAN_MSG txMessage;
static uCAN_MSG rxMessage;
// Write an extended CAN message
static void write_CAN_message(uint32_t ID, uint8_t data[]) {
txMessage.frame.idType = dEXTENDED_CAN_MSG_ID_2_0B;
txMessage.frame.id = ID;
txMessage.frame.dlc = 8;
txMessage.frame.data0 = data[0];
txMessage.frame.data1 = data[1];
txMessage.frame.data2 = data[2];
txMessage.frame.data3 = data[3];
txMessage.frame.data4 = data[4];
txMessage.frame.data5 = data[5];
txMessage.frame.data6 = data[6];
txMessage.frame.data7 = data[7];
CANSPI_Transmit(&txMessage);
}
// Read the extended CAN message
static bool read_CAN_message(uint32_t* ID, uint8_t data[]){
bool available = CANSPI_Receive(&rxMessage);
if(available){
//uint8_t idType = rxMessage.frame.idType; // Extended ID type
*ID = rxMessage.frame.id;
data[0] = rxMessage.frame.data0;
data[1] = rxMessage.frame.data1;
data[2] = rxMessage.frame.data2;
data[3] = rxMessage.frame.data3;
data[4] = rxMessage.frame.data4;
data[5] = rxMessage.frame.data5;
data[6] = rxMessage.frame.data6;
data[7] = rxMessage.frame.data7;
return available;
}
return available;
}
// Transport Protocol Connexion Management Broadcast Announce Message
static void send_j1939_TP_CM_BAM(J1939* j1939, uint16_t message_size, uint8_t packages_to_send, uint32_t PGN){
// ID
uint32_t ID = (0x1CECFF << 8) | j1939->SA_ECU;
// Fill the data
uint8_t data[8];
data[0] = 0x20; // Control byte - Standard
data[1] = message_size; // Message size LSB. Total message size is 9 to 1785 bytes
data[2] = message_size >> 8; // Message size MSB
data[3] = packages_to_send; // Packages to send is 2 to 255 packages
data[4] = 0xFF; // Reserved
data[5] = PGN; // PGN LSB
data[6] = PGN >> 8; // PGN
data[7] = PGN >> 16; // PGN MSB
// Write and wait 1000 ms then 100 ms
HAL_Delay(1000);
write_CAN_message(ID, data);
HAL_Delay(100);
}
// Transport Protocol Data Transfer
static void send_j1939_TP_DT(J1939* j1939, uint8_t data[], uint16_t message_size, uint8_t packages_to_send){
uint32_t ID = (0x1CEBFF << 8) | j1939->SA_ECU;
uint8_t package[8];
uint16_t sended_bytes = 0;
for(uint8_t i = 1; i <= packages_to_send; i++){
// Number of package
package[0] = i;
// Data
for(uint8_t j = 0; j < 7; j++){
if(sended_bytes < message_size)
package[j+1] = data[sended_bytes++];
else
package[j+1] = 0xFF; // No data
}
// Send wait 100 ms
write_CAN_message(ID, package);
HAL_Delay(100);
}
}
// Connect can-bus, if we are not connected
static void connect_can_bus(J1939* j1939){
if(CAN_connected == false){
memset(j1939->CA, 0, 8);
memset(j1939->DM1_Messages_Binary, 0, 12);
memset(j1939->DM16_data, 0, 8);
memset(j1939->EEPROM_values, 0, 2*sizeof(uint16_t));
j1939->SA_ACU = 0;
j1939->DM15_Status = DM15_Proceed;
CAN_connected = CANSPI_Initialize();
}
}
// Special case for sending a request in J1939 of 3 bytes of PNG
static void write_CAN_PGN_request(uint32_t ID, uint8_t data[]){
txMessage.frame.idType = dEXTENDED_CAN_MSG_ID_2_0B;
txMessage.frame.id = ID;
txMessage.frame.dlc = 3;
txMessage.frame.data0 = data[0];
txMessage.frame.data1 = data[1];
txMessage.frame.data2 = data[2];
CANSPI_Transmit(&txMessage);
}
// Send a memory request for access EEPROM
static void DM14_Memory_access_request(uint32_t ID, uint16_t length, uint8_t command, uint32_t pointer, uint16_t key){
uint8_t data[8];
data[0] = length; // Length LSB
data[1] = (length >> 3) | (0 << 4) | (command << 1) | 1; // Length MSB, Pointer Type(Diagnostic message = 0), Command, 1 (Always)
data[2] = pointer; // Pointer LSB
data[3] = pointer >> 8;
data[4] = pointer >> 16; // Pointer MSB
data[5] = 0x1; // Pointer extension 1 for access EEPROM
data[6] = key; // Key LSB
data[7] = key >> 8; // Key MSB
write_CAN_message(ID, data);
}
// Write a claim address to ACU
void write_1939_request_for_claim_address(J1939* j1939){
connect_can_bus(j1939);
uint8_t data[3] = {0x0, 0xEE, 0x00};
uint32_t ID = 0x18EAFFFE; // FE = 254 = Peer to Peer, FF = Boradcast
write_CAN_PGN_request(ID, data);
HAL_Delay(100);
}
// Request configuration parameters
void write_1939_configuration_request(J1939* j1939, uint8_t command){
uint32_t ID = (0x18D9 << 16) | (j1939->SA_ACU << 8) | j1939->SA_ECU;
HAL_Delay(1000);
/*
* Pointers:
* 646 = Sensor_Stall_Neutral_Enable
* 647 = Sensor_Stall_Normal_Enable
*
* Length:
* 1 = Sensor_Stall_Neutral_Enable
* 1 = Sensor_Stall_Normal_Enable
*/
const uint8_t length_eeprom_values[2] = {1, 1}; // Between 1 and 7 only!
const uint32_t pointers_eeprom_address[2] = {646, 647}; // Same indexing for j1939->EEPROM_values
// DM14(Ask) -> DM15(Status) -> DM16(Read/Write) -> DM14(Close)
for(uint8_t i = 0; i < 2; i++){
// Send a DM14 request
if(command == DM14_Read)
DM14_Memory_access_request(ID, length_eeprom_values[i], DM14_Read, pointers_eeprom_address[i], 0xFFFF); // 0xFFFF = No key
else if (command == DM14_Write)
DM14_Memory_access_request(ID, length_eeprom_values[i], DM14_Write, pointers_eeprom_address[i], 0x2505); // 0x2505 = Write key
// Read until we got a DM15 message response - We expecting DM15_Proceed
j1939->DM15_Status = DM15_Reserved;
while(j1939->DM15_Status == DM15_Reserved){
read_1939_message(j1939); // Will update j1939->DM15_Status
if(j1939->DM1_Messages_Binary[1]){
// Inconsistent CAN Control message
return;
}else if(j1939->DM1_Messages_Binary[2]){
// No CAN Control message received = TIME OUT
return;
}
}
// What does it say
if(j1939->DM15_Status == DM15_Proceed){
if(command == DM14_Read){
// Read the EEPROM values of ECU and give them to the EEPROM_values array
memset(j1939->DM16_data, 0, 8); // j1939->DM16_data[0] will become between 1 and 7 only!
while(j1939->DM16_data[0] == 0){
read_1939_message(j1939); // As long DM16_data[0], then we have not receive our DM16 data yet
if(j1939->DM1_Messages_Binary[3]){
// EEPROM parameter write/read error
return;
}
}
j1939->EEPROM_values[i] = 0;
for(uint8_t j = 1; j <= j1939->DM16_data[0]; j++){
j1939->EEPROM_values[i] |= j1939->DM16_data[j] << 8*(j-1); // EEPROM_values are uint16_t
}
// Read until we got a DM15 message response - We expecting DM15_Operation_Completed
j1939->DM15_Status = DM15_Reserved;
while(j1939->DM15_Status == DM15_Reserved){
read_1939_message(j1939); // Will update j1939->DM15_Status
}
}else if (command == DM14_Write){
// Write the EEPROM_values to data and send it to the ECU EEPROM
memset(j1939->DM16_data, 0, 8);
j1939->DM16_data[0] = length_eeprom_values[i]; // Between 1 and 7 only!
for(uint8_t j = 1; j <= j1939->DM16_data[0]; j++){
j1939->DM16_data[j] = j1939->EEPROM_values[i] >> 8*(j-1); // EEPROM_values are uint16_t
}
write_CAN_message(ID, j1939->DM16_data);
// Close the read operation of DM14
DM14_Memory_access_request(ID, length_eeprom_values[i], DM14_Operation_Completed, pointers_eeprom_address[i], 0xFFFF);
j1939->DM15_Status = DM15_Operation_Completed;
}
}
// Break the for-loop and return
if(j1939->DM15_Status == DM15_Busy){
break; // One single Busy status, then we cannot do anything yet
}
}
}
// Write the new CA and SA
void write_1939_CA_names_and_source_address(J1939* j1939){
// Begin first to send BAM
send_j1939_TP_CM_BAM(j1939, 0x9, 0x2, 0x00FED8); // 0x00FED8 = Commanded Address PGN
// Send packages
uint8_t data[9];
memcpy(data, j1939->CA, 8); // Fill all CA to data
data[8] = j1939->SA_ACU; // New address
send_j1939_TP_DT(j1939, data, 0x9, 0x2);
}
// Write flow between -250 and 250. CA NAME need to have 0x81 (129d) Function code
void write_1939_auxiliary_valve_command(uint8_t DA, J1939* j1939, float flow){
uint8_t state;
if (flow > 0 && flow <= 250) {
state = 0x1; // Extend
} else if (flow < 0 && flow >= -250) {
state = 0x2; // Retract
}else if (flow == 255){
state = 0xE; // Safety mode
} else {
state = 0x0; // Neutral
}
uint32_t ID = (0x0CFE << 16) | (DA << 8) | j1939->SA_ECU;
uint8_t data[8] = {fabsf(flow), 0xFF, state, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
write_CAN_message(ID, data);
}
// Read the 1939 message
void read_1939_message(J1939* j1939) {
// Check if we have connected the CAN
connect_can_bus(j1939);
uint32_t ID;
uint8_t data[8];
if (read_CAN_message(&ID, data) && CAN_connected) {
uint8_t id0 = ID >> 24;
uint8_t id1 = ID >> 16;
uint8_t id2 = ID >> 8;
uint8_t id3 = ID;
// Check what message we got
if (id0 == 0x18 && id1 == 0xEE && id2 == 0xFF && id3 != 0xFE) {
// Address claimed
j1939->SA_ACU = id3;
memcpy(j1939->CA, data, 8);
} else if (id0 == 0x18 && id1 == 0xEE && id2 == 0xFF && id3 == 0xFE) {
// Address not claimed
j1939->SA_ACU = 0;
j1939->DM1_Messages_Binary[0] = true;
memcpy(j1939->CA, data, 8);
} else if (id0 == 0x18 && id1 == 0xFE && id2 == 0xCA && id3 == j1939->SA_ACU) {
// DM1 message from ACU till ECU
if (data[0] == 0x00 && data[1] == 0xFF && data[2] == 0x00 && data[3] == 0x00 && data[4] == 0x00 && data[5] == 0x00 && data[6] == 0xFF && data[7] == 0xFF) {
// No error
} else {
// Error - Check only SPN and J1939 FMI:s - The rest are reserved
uint8_t SPN_byte_3 = data[2];
uint8_t SPN_byte_4 = data[3];
uint8_t SPN_byte_5 = data[4] >> 5;
uint8_t FMI_byte = data[4] & ~(0b11100000);
if(SPN_byte_3 == 0x3F && SPN_byte_4 == 0xF0 && SPN_byte_5 == 0x7 && FMI_byte == 0x13){
// Inconsistent CAN Control message
j1939->DM1_Messages_Binary[1] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x3F && SPN_byte_4 == 0xF0 && SPN_byte_5 == 0x7 && FMI_byte == 0x9){
// No CAN Control message received = TIME OUT
j1939->DM1_Messages_Binary[2] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x74 && SPN_byte_4 == 0x2 && SPN_byte_5 == 0x0 && FMI_byte == 0x2){
// EEPROM parameter write/read error
j1939->DM1_Messages_Binary[3] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x40 && SPN_byte_4 == 0xF0 && SPN_byte_5 == 0x7 && FMI_byte == 0x0){
// Stepper motor stall detected
j1939->DM1_Messages_Binary[4] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x9E && SPN_byte_4 == 0x0 && SPN_byte_5 == 0x0 && FMI_byte == 0x12){
// Undervoltage SONCEBOZ value (VDC<U_MINOFF)
j1939->DM1_Messages_Binary[5] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x9E && SPN_byte_4 == 0x0 && SPN_byte_5 == 0x0 && FMI_byte == 0x10){
// Overvoltage SONCEBOZ value (VDC>U_MAXOFF)
j1939->DM1_Messages_Binary[6] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x42 && SPN_byte_4 == 0xF0 && SPN_byte_5 == 0x7 && FMI_byte == 0x0){
// SCU temperature higher than T_MAXOFF
j1939->DM1_Messages_Binary[7] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x42 && SPN_byte_4 == 0xF0 && SPN_byte_5 == 0x7 && FMI_byte == 0x1){
// SCU temperature below T_MINOFF
j1939->DM1_Messages_Binary[8] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x44 && SPN_byte_4 == 0xF0 && SPN_byte_5 == 0x7 && FMI_byte == 0x0){
// Current exceeds upper limit I_MAX
j1939->DM1_Messages_Binary[9] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x43 && SPN_byte_4 == 0xF0 && SPN_byte_5 == 0x7 && FMI_byte == 0x2){
// Error position in IDLE Mode
j1939->DM1_Messages_Binary[10] = true;
j1939->DM15_Status = DM15_Error_Codes;
}else if(SPN_byte_3 == 0x76 && SPN_byte_4 == 0x2 && SPN_byte_5 == 0x0 && FMI_byte == 0x2){
// Range error for Linearization parameter in EEPROM
j1939->DM1_Messages_Binary[11] = true;
j1939->DM15_Status = DM15_Error_Codes;
}
}
} else if (id0 == 0x18 && id1 == 0xD8 && id2 == j1939->SA_ECU && id3 == j1939->SA_ACU) {
// DM15 message - When we send DM14 message we will get DM15 message from ACU to ECU
uint8_t status = (data[1] >> 1) & ~(0b11110000);
if(status == DM15_Proceed){
j1939->DM15_Status = DM15_Proceed;
}else if(status == DM15_Busy){
j1939->DM15_Status = DM15_Busy;
}else if(status == DM15_Operation_Completed){
j1939->DM15_Status = DM15_Operation_Completed;
}else if(status == DM15_Operation_Failed){
j1939->DM15_Status = DM15_Operation_Failed;
}
} else if (id0 == 0x18 && id1 == 0xD7 && id2 == j1939->SA_ECU && id3 == j1939->SA_ACU) {
// DM16 message from ACU to ECU
memset(j1939->DM16_data, 0, 8);
memcpy(j1939->DM16_data, data, 8); // Byte1(Number of occurrences 1-7) to Byte2 -> Byte8 - Raw binary data
}
}
}
|
58133f8d6469fbbc81edaba74f9e823804138b97
|
0cc343d927d5db6693006018986715c43acab961
|
/examples/heartbleed/t1_lib.c
|
8d51481506d33e3425aba78eee3b77f2a469d6f7
|
[
"MIT"
] |
permissive
|
verifast/verifast
|
ec0101fc4a69bd33c5f66be4444169c4e060ead8
|
d152da790c7ebf72ce616533a6c83082629adbdb
|
refs/heads/master
| 2023-08-25T00:13:51.464802
| 2023-08-13T10:00:00
| 2023-08-13T10:00:00
| 14,519,163
| 325
| 64
|
NOASSERTION
| 2023-08-10T21:16:08
| 2013-11-19T08:57:02
|
OCaml
|
UTF-8
|
C
| false
| false
| 797
|
c
|
t1_lib.c
|
#include "openssl.h"
int
tls1_process_heartbeat(SSL *s)
//@ requires SSL(s);
//@ ensures SSL(s);
{
unsigned char *p = s->s3->rrec.data;
unsigned char *pl;
unsigned short hbtype;
unsigned int payload;
unsigned int padding = 16;
hbtype = *p; p++;
n2s(p, payload);
if (payload + 19UL > s->s3->rrec.length)
return 0;
pl = p;
if ((unsigned)hbtype == TLS1_HB_REQUEST)
{
unsigned char *buffer;
unsigned char *bp;
int r;
buffer = OPENSSL_malloc(1u + 2u + payload + padding);
bp = buffer;
*bp = TLS1_HB_RESPONSE; bp++;
s2n(bp, payload);
memcpy(bp, pl, payload);
bp += (int)payload;
RAND_pseudo_bytes(bp, padding);
r = ssl3_write_bytes(s, TLS1_RT_HEARTBEAT, buffer, 3 + payload + padding);
OPENSSL_free(buffer);
if (r < 0)
return r;
}
return 0;
}
|
bb937acf86c1552f9442aac1de49d16205744ec2
|
59bc6f245c1c8f1b65afdbde959db281d5747e63
|
/Examples/English/2. Protection integration/EncryptData, EncryptMemory - encryption functions/C/gui/gui.c
|
55425de08899c5182e69183496bee7532427f3cd
|
[] |
no_license
|
PELock/PELock-Software-Protection-and-Licensing-SDK
|
70fc8cf20681b5799c7a016773851da5bfe258b6
|
45c3ee1f8d6f489f8abfbe8b4bb7a476d4d1c001
|
refs/heads/master
| 2023-06-24T13:35:18.095564
| 2023-03-11T14:35:50
| 2023-03-11T14:35:50
| 63,718,533
| 184
| 57
| null | 2018-08-30T18:51:48
| 2016-07-19T18:32:23
|
C++
|
WINDOWS-1250
|
C
| false
| false
| 2,658
|
c
|
gui.c
|
////////////////////////////////////////////////////////////////////////////////
//
// Example of how to use built-in encryption functions (stream cipher)
//
// Version : PELock v2.0
// Language : C/C++
// Author : Bartosz Wójcik (support@pelock.com)
// Web page : https://www.pelock.com
//
////////////////////////////////////////////////////////////////////////////////
#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
#include <math.h>
#include "gui.h"
#include "pelock.h"
void EncryptDataTest(HWND hDlg)
{
unsigned char szSecretData[] = "SECRET";
unsigned char szKey[] = "987654321";
//
// Encryption algorithm is constant and it's not going to be
// changed in the future, so you can use it to encrypt
// all kind of application files like configs, databases etc.
//
MessageBox(hDlg, szSecretData, "Plain string", MB_OK);
// encrypt data
EncryptData(szKey, sizeof(szKey), szSecretData, sizeof(szSecretData));
MessageBox(hDlg, szSecretData, "Encrypted string", MB_OK);
// decrypt data
DecryptData(szKey, sizeof(szKey), szSecretData, sizeof(szSecretData));
MessageBox(hDlg, szSecretData, "Decrypted string", MB_OK);
}
void EncryptMemoryTest(HWND hDlg)
{
unsigned char szSecretData[] = "SECRET";
//
// Encrypt and decrypt memory in the same process. An application
// running in a different process will not be able to decrypt the
// data.
//
MessageBox(hDlg, szSecretData, "Plain string (testing keyless encryption)", MB_OK);
// encrypt data
EncryptMemory(szSecretData, sizeof(szSecretData));
MessageBox(hDlg, szSecretData, "Encrypted string (keyless encryption)", MB_OK);
// decrypt data
DecryptMemory(szSecretData, sizeof(szSecretData));
MessageBox(hDlg, szSecretData, "Decrypted string (keyless decryption)", MB_OK);
}
BOOL CALLBACK DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
// initialization of main window
case WM_INITDIALOG:
SetWindowText(hDlg, "PELock Test");
return TRUE;
case WM_COMMAND:
switch (LOWORD (wParam))
{
case IDB_ENCRYPT_DATA:
EncryptDataTest(hDlg);
break;
case IDB_ENCRYPT_MEMORY:
EncryptMemoryTest(hDlg);
break;
case IDCANCEL:
EndDialog(hDlg, 0);
break;
}
break;
}
return FALSE;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
INITCOMMONCONTROLSEX iccControls = { sizeof(INITCOMMONCONTROLSEX), ICC_WIN95_CLASSES | ICC_DATE_CLASSES };
// initialize common controls
InitCommonControlsEx(&iccControls);
DialogBox(hInstance, MAKEINTRESOURCE(DLG_MAIN), 0, DlgProc);
return 0;
}
|
49697ffc86a7ffe94a3380ae9522f6ecc2f4d7a3
|
847ebadf2b0e7c01ad33ce92b42528a1a5c4846c
|
/ovsdb/file.h
|
ae90d4fe1309896257d0e63e9d2622ebf71dfae4
|
[
"BSD-3-Clause",
"ISC",
"Apache-2.0",
"SISSL",
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] |
permissive
|
openvswitch/ovs
|
6f782527cf5fde4ccfd25e68d359b91ff41acf8a
|
bc79a7bf033fa4cda8ccfc5481db3cfccd72650c
|
refs/heads/master
| 2023-09-04T06:31:47.899017
| 2023-08-03T16:19:12
| 2023-09-01T20:15:05
| 18,383,364
| 3,366
| 2,259
|
Apache-2.0
| 2023-08-17T13:17:13
| 2014-04-02T22:15:28
|
C
|
UTF-8
|
C
| false
| false
| 1,795
|
h
|
file.h
|
/* Copyright (c) 2009, 2010, 2011, 2016, 2017 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OVSDB_FILE_H
#define OVSDB_FILE_H 1
#include <stdbool.h>
#include "compiler.h"
struct ovsdb;
struct ovsdb_schema;
struct ovsdb_txn;
void ovsdb_file_column_diff_disable(void);
struct json *ovsdb_to_txn_json(const struct ovsdb *, const char *comment,
bool allow_shallow_copies);
struct json *ovsdb_file_txn_to_json(const struct ovsdb_txn *);
struct json *ovsdb_file_txn_annotate(struct json *, const char *comment);
struct ovsdb_error *ovsdb_file_txn_from_json(struct ovsdb *,
const struct json *,
bool converting,
struct ovsdb_txn **)
OVS_WARN_UNUSED_RESULT;
struct ovsdb *ovsdb_file_read(const char *filename, bool rw);
struct ovsdb *ovsdb_file_read_as_schema(const char *filename,
struct ovsdb_schema *);
struct ovsdb_error *ovsdb_convert(const struct ovsdb *src,
const struct ovsdb_schema *new_schema,
struct ovsdb **dstp)
OVS_WARN_UNUSED_RESULT;
#endif /* ovsdb/file.h */
|
171e2e37b24b44f1e69bb3ebc108a8940d5da5eb
|
6d54a7b26d0eb82152a549a6a9dfde656687752c
|
/src/app/clusters/groups-server/groups-server.h
|
8d164385f733a2c5e55b49724ba99ffbbad91305
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
project-chip/connectedhomeip
|
81a123d675cf527773f70047d1ed1c43be5ffe6d
|
ea3970a7f11cd227ac55917edaa835a2a9bc4fc8
|
refs/heads/master
| 2023-09-01T11:43:37.546040
| 2023-09-01T08:01:32
| 2023-09-01T08:01:32
| 244,694,174
| 6,409
| 1,789
|
Apache-2.0
| 2023-09-14T20:56:31
| 2020-03-03T17:05:10
|
C++
|
UTF-8
|
C
| false
| false
| 1,222
|
h
|
groups-server.h
|
/**
*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <app/util/basic-types.h>
#include <lib/support/Span.h>
/** @brief Groups Cluster Endpoint In Group
*
* This function is called by the framework when it needs to determine if an
* endpoint is a member of a group. The application should return true if the
* endpoint is a member of the group and false otherwise.
*
* @param endpoint The endpoint. Ver.: always
* @param groupId The group identifier. Ver.: always
*/
bool emberAfGroupsClusterEndpointInGroupCallback(chip::FabricIndex fabricIndex, chip::EndpointId endpoint, chip::GroupId groupId);
|
c3621d00490c691277ac33daf362480619559e6a
|
6e1cde66aa5a649138babe297293962cdf97743e
|
/src/win32/console/complete.c
|
6d98aea63b4f0631cff055f63d2116c58e3e9dba
|
[
"BSD-2-Clause"
] |
permissive
|
SWI-Prolog/swipl-devel
|
db56676481984addc09f4f228bc1c41f7f53759f
|
41ac4a569c8e6c3d3b93a21449403962e3de1ece
|
refs/heads/master
| 2023-09-01T03:49:40.696481
| 2023-08-30T18:12:56
| 2023-08-30T18:12:56
| 17,516,793
| 935
| 328
|
NOASSERTION
| 2023-08-26T14:32:33
| 2014-03-07T14:43:14
|
C
|
UTF-8
|
C
| false
| false
| 3,394
|
c
|
complete.c
|
/* Part of SWI-Prolog
Author: Jan Wielemaker
E-mail: J.Wielemaker@vu.nl
WWW: http://www.swi-prolog.org
Copyright (c) 1999-2011, University of Amsterdam
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#include <windows.h>
#include <tchar.h>
#include "console.h"
#ifndef EOS
#define EOS 0
#endif
#ifndef _TINT
typedef wint_t _TINT;
#endif
static TCHAR *completion_chars = TEXT("~:\\/-.");
static size_t
complete_scan_backwards(Line ln, size_t from)
{ while( from > 0 )
{ _TINT c = ln->data[from-1];
if ( rlc_is_word_char(c) ||
_tcschr(completion_chars, c) )
from--;
else
break;
}
return from;
}
static __inline int
close_quote(int c)
{ return (c == '\'' || c == '"') ? c : 0;
}
int
rlc_complete_file_function(RlcCompleteData data)
{ Line ln = data->line;
WIN32_FIND_DATA fdata;
switch(data->call_type)
{ case COMPLETE_INIT:
{ size_t start = complete_scan_backwards(ln, ln->point);
TCHAR *pattern = data->buf_handle;
TCHAR *s = pattern;
size_t n = start;
size_t ld = start;
HANDLE h;
if ( ln->point - start > 200 )
return FALSE;
for( ; n < ln->point; n++)
{ int c = ln->data[n];
if ( c == '/' )
c = '\\';
if ( c == '\\' )
ld = n + 1;
*s++ = c;
}
*s++ = '*';
*s = EOS;
if ( (h=FindFirstFile(pattern, &fdata)) != INVALID_HANDLE_VALUE )
{ data->replace_from = (int)ld;
if ( start > 0 &&
!(fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) )
data->quote = close_quote(ln->data[start-1]);
_tcscpy(data->candidate, fdata.cFileName);
data->ptr_handle = h;
data->case_insensitive = TRUE;
data->function = rlc_complete_file_function;
return TRUE;
}
return FALSE;
}
case COMPLETE_ENUMERATE:
{ if ( FindNextFile(data->ptr_handle, &fdata) )
{ _tcscpy(data->candidate, fdata.cFileName);
return TRUE;
}
return FALSE;
}
case COMPLETE_CLOSE:
{ FindClose(data->ptr_handle);
return FALSE;
}
default:
return FALSE;
}
}
|
10a3bcf7dc107ba1951e48ca398b6ae78c532553
|
25b7cd3e4b750803565c374e59f8179c8aab276d
|
/hd_edition/hde_mod_installer/util.h
|
bc42dee77b5df97ca94126210bdcc2bbe3dee62e
|
[
"MIT"
] |
permissive
|
potmdehex/homm3tools
|
320ce70e0d22dc597df440ec7c63fde9844f7dbe
|
6b36d1f92ea67f5ad6d4847aeaf2dfb1766d3cc5
|
refs/heads/master
| 2023-08-06T02:56:53.534443
| 2022-09-19T12:42:50
| 2022-09-19T12:42:50
| 40,399,205
| 141
| 29
|
MIT
| 2019-12-06T12:11:43
| 2015-08-08T10:15:08
|
C
|
IBM852
|
C
| false
| false
| 684
|
h
|
util.h
|
// Created by John ┼kerblom 2015-07-11
#ifndef __UTIL_H_DEF__
#define __UTIL_H_DEF__
#include <windows.h>
BOOL UtilPathFromRunningExeW(IN LPCWSTR lpExeName, OUT LPWSTR lpExePath,
IN int iMaxLength);
BOOL UtilPathFromBrowseDialogW(IN LPCWSTR lpTitle, OUT LPWSTR lpPath,
int iMaxLength);
BOOL UtilCopyDirectoryW(IN LPCWSTR lpSource, IN LPCWSTR lpDestination);
BOOL UtilCopyFilesW(IN LPCWSTR *lpExistingFiles, IN DWORD nCount,
IN LPCWSTR lpDestination);
VOID UtilSafeStrCat(OUT LPWSTR lpStr, IN LPCWSTR lpCat, IN int iMaxLength);
#define UtilStackSafeStrCat(s, c) UtilSafeStrCat(s, c, sizeof(s))
#define UtilStackSafeStrCpy(s, c) lstrcpynW(s, c, sizeof(s))
#endif
|
daea214afb20ad5837da894e12006c56ecb916c6
|
aeef4d7bab4ca441fbecc2823815e9f94cb4563b
|
/src/ui/include/te_include.h
|
00b7714b0f381e2a553f132b7427d8d21adfa341
|
[
"BSD-2-Clause"
] |
permissive
|
FreeFalcon/freefalcon-central
|
8fc80b6d82eab44ce314a39860e6ee8e6f5ee71a
|
c28d807183ab447ef6a801068aa3769527d55deb
|
refs/heads/develop
| 2021-01-23T20:49:45.844619
| 2014-10-30T18:32:35
| 2014-10-30T18:32:35
| 7,615,342
| 133
| 90
| null | 2014-10-30T18:32:35
| 2013-01-15T00:02:23
|
C++
|
UTF-8
|
C
| false
| false
| 29
|
h
|
te_include.h
|
#define TACTICAL_GROUP 3000
|
967388c1f046ab2ca7a44080477ed2d88115fe78
|
99bdb3251fecee538e0630f15f6574054dfc1468
|
/bsp/simulator/SDL2/include/SDL_messagebox.h
|
d763534d216e9afbc82c93c4a7a71eb8ccadc323
|
[
"Zlib",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MIT",
"BSD-3-Clause",
"X11",
"BSD-4-Clause-UC",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
RT-Thread/rt-thread
|
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
|
3602f891211904a27dcbd51e5ba72fefce7326b2
|
refs/heads/master
| 2023-09-01T04:10:20.295801
| 2023-08-31T16:20:55
| 2023-08-31T16:20:55
| 7,408,108
| 9,599
| 5,805
|
Apache-2.0
| 2023-09-14T13:37:26
| 2013-01-02T14:49:21
|
C
|
UTF-8
|
C
| false
| false
| 6,693
|
h
|
SDL_messagebox.h
|
/*
Simple DirectMedia Layer
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef SDL_messagebox_h_
#define SDL_messagebox_h_
#include "SDL_stdinc.h"
#include "SDL_video.h" /* For SDL_Window */
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern "C" {
#endif
/**
* SDL_MessageBox flags. If supported will display warning icon, etc.
*/
typedef enum
{
SDL_MESSAGEBOX_ERROR = 0x00000010, /**< error dialog */
SDL_MESSAGEBOX_WARNING = 0x00000020, /**< warning dialog */
SDL_MESSAGEBOX_INFORMATION = 0x00000040, /**< informational dialog */
SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT = 0x00000080, /**< buttons placed left to right */
SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT = 0x00000100 /**< buttons placed right to left */
} SDL_MessageBoxFlags;
/**
* Flags for SDL_MessageBoxButtonData.
*/
typedef enum
{
SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001, /**< Marks the default button when return is hit */
SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002 /**< Marks the default button when escape is hit */
} SDL_MessageBoxButtonFlags;
/**
* Individual button data.
*/
typedef struct
{
Uint32 flags; /**< ::SDL_MessageBoxButtonFlags */
int buttonid; /**< User defined button id (value returned via SDL_ShowMessageBox) */
const char * text; /**< The UTF-8 button text */
} SDL_MessageBoxButtonData;
/**
* RGB value used in a message box color scheme
*/
typedef struct
{
Uint8 r, g, b;
} SDL_MessageBoxColor;
typedef enum
{
SDL_MESSAGEBOX_COLOR_BACKGROUND,
SDL_MESSAGEBOX_COLOR_TEXT,
SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,
SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,
SDL_MESSAGEBOX_COLOR_MAX
} SDL_MessageBoxColorType;
/**
* A set of colors to use for message box dialogs
*/
typedef struct
{
SDL_MessageBoxColor colors[SDL_MESSAGEBOX_COLOR_MAX];
} SDL_MessageBoxColorScheme;
/**
* MessageBox structure containing title, text, window, etc.
*/
typedef struct
{
Uint32 flags; /**< ::SDL_MessageBoxFlags */
SDL_Window *window; /**< Parent window, can be NULL */
const char *title; /**< UTF-8 title */
const char *message; /**< UTF-8 message text */
int numbuttons;
const SDL_MessageBoxButtonData *buttons;
const SDL_MessageBoxColorScheme *colorScheme; /**< ::SDL_MessageBoxColorScheme, can be NULL to use system settings */
} SDL_MessageBoxData;
/**
* Create a modal message box.
*
* If your needs aren't complex, it might be easier to use
* SDL_ShowSimpleMessageBox.
*
* This function should be called on the thread that created the parent
* window, or on the main thread if the messagebox has no parent. It will
* block execution of that thread until the user clicks a button or closes the
* messagebox.
*
* This function may be called at any time, even before SDL_Init(). This makes
* it useful for reporting errors like a failure to create a renderer or
* OpenGL context.
*
* On X11, SDL rolls its own dialog box with X11 primitives instead of a
* formal toolkit like GTK+ or Qt.
*
* Note that if SDL_Init() would fail because there isn't any available video
* target, this function is likely to fail for the same reasons. If this is a
* concern, check the return value from this function and fall back to writing
* to stderr if you can.
*
* \param messageboxdata the SDL_MessageBoxData structure with title, text and
* other options
* \param buttonid the pointer to which user id of hit button should be copied
* \returns 0 on success or a negative error code on failure; call
* SDL_GetError() for more information.
*
* \since This function is available since SDL 2.0.0.
*
* \sa SDL_ShowSimpleMessageBox
*/
extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
/**
* Display a simple modal message box.
*
* If your needs aren't complex, this function is preferred over
* SDL_ShowMessageBox.
*
* `flags` may be any of the following:
*
* - `SDL_MESSAGEBOX_ERROR`: error dialog
* - `SDL_MESSAGEBOX_WARNING`: warning dialog
* - `SDL_MESSAGEBOX_INFORMATION`: informational dialog
*
* This function should be called on the thread that created the parent
* window, or on the main thread if the messagebox has no parent. It will
* block execution of that thread until the user clicks a button or closes the
* messagebox.
*
* This function may be called at any time, even before SDL_Init(). This makes
* it useful for reporting errors like a failure to create a renderer or
* OpenGL context.
*
* On X11, SDL rolls its own dialog box with X11 primitives instead of a
* formal toolkit like GTK+ or Qt.
*
* Note that if SDL_Init() would fail because there isn't any available video
* target, this function is likely to fail for the same reasons. If this is a
* concern, check the return value from this function and fall back to writing
* to stderr if you can.
*
* \param flags an SDL_MessageBoxFlags value
* \param title UTF-8 title text
* \param message UTF-8 message text
* \param window the parent window, or NULL for no parent
* \returns 0 on success or a negative error code on failure; call
* SDL_GetError() for more information.
*
* \since This function is available since SDL 2.0.0.
*
* \sa SDL_ShowMessageBox
*/
extern DECLSPEC int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif /* SDL_messagebox_h_ */
/* vi: set ts=4 sw=4 expandtab: */
|
80d6e31d003469f8a6364e18f0f5ec11639634d7
|
5741e4e7e3fedc3ae03996843b2bcfec70e17049
|
/c/meterpreter/source/dump_sam/ReflectiveFreeAndExitThread.h
|
83bef62a7fcdb94e0b8d72369a1538de75d7d72a
|
[
"BSD-3-Clause",
"PSF-2.0",
"Python-2.0",
"Zlib",
"BSD-4-Clause",
"BSD-2-Clause"
] |
permissive
|
rapid7/metasploit-payloads
|
5981b44a1054d307d97b9cffcdbb559bfc690625
|
dcaad10486e22885d0cbcbce508e3e763ce689e9
|
refs/heads/master
| 2023-09-01T01:27:12.834909
| 2023-07-11T13:27:41
| 2023-07-11T13:27:41
| 18,418,533
| 1,674
| 743
|
NOASSERTION
| 2023-09-14T16:58:38
| 2014-04-03T21:18:24
|
C
|
UTF-8
|
C
| false
| false
| 237
|
h
|
ReflectiveFreeAndExitThread.h
|
#ifndef _METERPRETER_SOURCE_REFLECTIVE_FREE_AND_EXIT_THREAD_H
#define _METERPRETER_SOURCE_REFLECTIVE_FREE_AND_EXIT_THREAD_H
#include <windows.h>
VOID ReflectiveFreeAndExitThread(HINSTANCE hAppInstance, DWORD dwExitCode);
#endif
|
89cd07524cb36ceabb3c79c4771a002e9e4f1081
|
8838eb997879add5759b6dfb23f9a646464e53ca
|
/src/compat/libc/string/strchr.c
|
697302b0258f5769d00c2a80c20d74dd471726e4
|
[
"BSD-2-Clause"
] |
permissive
|
embox/embox
|
d6aacec876978522f01cdc4b8de37a668c6f4c80
|
98e3c06e33f3fdac10a29c069c20775568e0a6d1
|
refs/heads/master
| 2023-09-04T03:02:20.165042
| 2023-09-02T14:55:31
| 2023-09-02T14:55:31
| 33,078,138
| 1,087
| 325
|
BSD-2-Clause
| 2023-09-14T16:58:34
| 2015-03-29T15:27:48
|
C
|
UTF-8
|
C
| false
| false
| 468
|
c
|
strchr.c
|
/**
* @file
* @brief Implementation of #strchr() function.
*
* @date 1.10.09
* @author Nikolay Korotky
* - Initial import
* @author Eldar Abusalimov
* - Replacing with more simple and obvious implementation
* @author Anton Kozlov
* - Implemented via strchrnul
*/
#include <string.h>
char *strchr(const char *str, int ch) {
char *chp = strchrnul(str, ch);
if (*chp == '\0') {
return ch == *chp ? chp : NULL;
}
return chp;
}
|
5acf77ef8ed5351810302c35fc7d7b22d7788067
|
ed7189bcb31973648dca4cb9f0d67cb4653d0e70
|
/abis/linux/utsname.h
|
9875a46ebbd2c7a3bdde82c7c9d25138eab052c4
|
[
"MIT"
] |
permissive
|
managarm/mlibc
|
6dedaa86ed74f26a52e300d97f6e5949bac0f93c
|
74efefb5e9e546adab60a5730d95165334d7ee15
|
refs/heads/master
| 2023-09-01T05:17:26.709378
| 2023-08-29T08:33:01
| 2023-08-29T08:33:01
| 63,353,495
| 717
| 173
|
MIT
| 2023-09-10T10:55:53
| 2016-07-14T16:46:51
|
C
|
UTF-8
|
C
| false
| false
| 229
|
h
|
utsname.h
|
#ifndef _ABIBITS_UTSNAME_T_H
#define _ABIBITS_UTSNAME_T_H
struct utsname {
char sysname[65];
char nodename[65];
char release[65];
char version[65];
char machine[65];
char domainname[65];
};
#endif // _ABIBITS_UTSNAME_T_H
|
b5655fdf3afe5a5a6d45960f18e9c1fff89d8726
|
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
|
/security/fragroute/files/patch-tun.h
|
40fa1356c4d0498a07f943ae359a7c04d0bc77a7
|
[
"BSD-2-Clause"
] |
permissive
|
freebsd/freebsd-ports
|
86f2e89d43913412c4f6b2be3e255bc0945eac12
|
605a2983f245ac63f5420e023e7dce56898ad801
|
refs/heads/main
| 2023-08-30T21:46:28.720924
| 2023-08-30T19:33:44
| 2023-08-30T19:33:44
| 1,803,961
| 916
| 918
|
NOASSERTION
| 2023-09-08T04:06:26
| 2011-05-26T11:15:35
| null |
UTF-8
|
C
| false
| false
| 329
|
h
|
patch-tun.h
|
Include patch below as files/patch-tun.h
--- tun.h.orig Sun Mar 13 18:32:16 2005
+++ tun.h Sun Mar 13 18:32:06 2005
@@ -9,8 +9,6 @@
#ifndef TUN_H
#define TUN_H
-typedef struct tun tun_t;
-
typedef void (*tun_handler)(void *buf, size_t len, void *arg);
tun_t *tun_open(struct addr *src, struct addr *dst, int mtu);
|
1560450efedd91ae123f32bc43c70454191d4bad
|
1126985fc98d13356a45ed3fd7717afcb490db3f
|
/include/xnvme_be_nosys.h
|
dc2b77530948ec5aa107f02fbe2904e425ac9b87
|
[
"BSD-3-Clause"
] |
permissive
|
OpenMPDK/xNVMe
|
feac321adc84e91f3e05c020146757737fe94874
|
5198563801b14d21d801a7224af63b9e85d798a3
|
refs/heads/main
| 2023-08-21T20:18:09.969516
| 2023-06-16T07:39:33
| 2023-06-20T11:04:54
| 252,368,391
| 168
| 57
|
NOASSERTION
| 2023-09-13T14:23:19
| 2020-04-02T05:57:13
|
C
|
UTF-8
|
C
| false
| false
| 4,439
|
h
|
xnvme_be_nosys.h
|
// SPDX-FileCopyrightText: Samsung Electronics Co., Ltd
//
// SPDX-License-Identifier: BSD-3-Clause
#ifndef __INTERNAL_XNVME_BE_NOSYS_H
#define __INTERNAL_XNVME_BE_NOSYS_H
extern struct xnvme_be xnvme_be_nosys;
int
xnvme_be_nosys_sync_cmd_io(struct xnvme_cmd_ctx *ctx, void *dbuf, size_t dbuf_nbytes, void *mbuf,
size_t mbuf_nbytes);
int
xnvme_be_nosys_sync_cmd_iov(struct xnvme_cmd_ctx *ctx, struct iovec *dvec, size_t dvec_cnt,
size_t dvec_nbytes, struct iovec *mvec, size_t mvec_cnt,
size_t mvec_nbytes);
int
xnvme_be_nosys_sync_cmd_admin(struct xnvme_cmd_ctx *ctx, void *dbuf, size_t dbuf_nbytes,
void *mbuf, size_t mbuf_nbytes);
int
xnvme_be_nosys_sync_supported(struct xnvme_dev *dev, uint32_t opts);
int
xnvme_be_nosys_queue_cmd_io(struct xnvme_cmd_ctx *ctx, void *dbuf, size_t dbuf_nbytes, void *mbuf,
size_t mbuf_nbytes);
int
xnvme_be_nosys_queue_cmd_iov(struct xnvme_cmd_ctx *ctx, struct iovec *dvec, size_t dvec_cnt,
size_t dvec_nbytes, struct iovec *mvec, size_t mvec_cnt,
size_t mvec_nbytes);
int
xnvme_be_nosys_queue_poke(struct xnvme_queue *queue, uint32_t max);
int
xnvme_be_nosys_queue_wait(struct xnvme_queue *queue);
int
xnvme_be_nosys_queue_init(struct xnvme_queue *queue, int opts);
int
xnvme_be_nosys_queue_term(struct xnvme_queue *queue);
int
xnvme_be_nosys_queue_supported(struct xnvme_dev *dev, uint32_t opts);
void *
xnvme_be_nosys_buf_alloc(const struct xnvme_dev *dev, size_t nbytes, uint64_t *phys);
int
xnvme_be_nosys_buf_vtophys(const struct xnvme_dev *dev, void *buf, uint64_t *phys);
void *
xnvme_be_nosys_buf_realloc(const struct xnvme_dev *dev, void *buf, size_t nbytes, uint64_t *phys);
void
xnvme_be_nosys_buf_free(const struct xnvme_dev *dev, void *buf);
int
xnvme_be_nosys_mem_map(const struct xnvme_dev *dev, void *vaddr, size_t nbytes, uint64_t *phys);
void
xnvme_be_nosys_mem_unmap(const struct xnvme_dev *dev, void *buf);
int
xnvme_be_nosys_enumerate(const char *sys_uri, struct xnvme_opts *opts, xnvme_enumerate_cb cb_func,
void *cb_args);
int
xnvme_be_nosys_dev_open(struct xnvme_dev *dev);
void
xnvme_be_nosys_dev_close(struct xnvme_dev *dev);
#define XNVME_BE_NOSYS_ADMIN \
{ \
.cmd_admin = xnvme_be_nosys_sync_cmd_admin, .id = "ENOSYS", \
}
#define XNVME_BE_NOSYS_SYNC \
{ \
.cmd_iov = xnvme_be_nosys_sync_cmd_iov, .cmd_io = xnvme_be_nosys_sync_cmd_io, \
.id = "ENOSYS", \
}
#define XNVME_BE_NOSYS_QUEUE \
{ \
.cmd_io = xnvme_be_nosys_queue_cmd_io, .poke = xnvme_be_nosys_queue_poke, \
.wait = xnvme_be_nosys_queue_wait, .init = xnvme_be_nosys_queue_init, \
.term = xnvme_be_nosys_queue_term, .id = "ENOSYS", \
}
#define XNVME_BE_NOSYS_MEM \
{ \
.buf_alloc = xnvme_be_nosys_buf_alloc, .buf_vtophys = xnvme_be_nosys_buf_vtophys, \
.buf_realloc = xnvme_be_nosys_buf_realloc, .buf_free = xnvme_be_nosys_buf_free, \
}
#define XNVME_BE_NOSYS_DEV \
{ \
.enumerate = xnvme_be_nosys_enumerate, .dev_open = xnvme_be_nosys_dev_open, \
.dev_close = xnvme_be_nosys_dev_close, \
}
#define XNVME_BE_NOSYS \
{ \
.admin = XNVME_BE_NOSYS_ADMIN, .sync = XNVME_BE_NOSYS_SYNC, \
.async = XNVME_BE_NOSYS_QUEUE, .mem = XNVME_BE_NOSYS_MEM, \
.dev = XNVME_BE_NOSYS_DEV, \
.attr = { \
.name = "ENOSYS", \
}, \
}
#endif /* __INTERNAL_XNVME_BE_NOSYS_H */
|
b4ad142bf01d5f989904d54c40f25a850a534b36
|
00c64e0967d197d8c6fc3427954e2d0b2ff13ca0
|
/clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/policy/non-overloaded/vlseg2e32ff.c
|
4226edb27ea3ef6b165e4f1086ee1e1d471f5414
|
[
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
triSYCL/sycl
|
893048e80158cf3359c1ad8912da9ccf493faf69
|
5a95a7136a11b75f01ef839d9229780032bbeecf
|
refs/heads/sycl/unified/master
| 2023-08-23T22:06:46.238209
| 2023-05-24T22:54:31
| 2023-05-24T22:54:31
| 178,923,006
| 103
| 17
|
NOASSERTION
| 2023-09-12T20:03:26
| 2019-04-01T18:29:01
| null |
UTF-8
|
C
| false
| false
| 86,369
|
c
|
vlseg2e32ff.c
|
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// REQUIRES: riscv-registered-target
// RUN: %clang_cc1 -triple riscv64 -target-feature +v -target-feature +zfh \
// RUN: -target-feature +experimental-zvfh -disable-O0-optnone \
// RUN: -emit-llvm %s -o - | opt -S -passes=mem2reg | \
// RUN: FileCheck --check-prefix=CHECK-RV64 %s
#include <riscv_vector.h>
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32mf2_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x float>, <vscale x 1 x float>, i64 } @llvm.riscv.vlseg2ff.nxv1f32.i64(<vscale x 1 x float> [[MASKEDOFF0:%.*]], <vscale x 1 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32mf2_tu(vfloat32mf2_t *v0, vfloat32mf2_t *v1, vfloat32mf2_t maskedoff0, vfloat32mf2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32mf2_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m1_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float>, i64 } @llvm.riscv.vlseg2ff.nxv2f32.i64(<vscale x 2 x float> [[MASKEDOFF0:%.*]], <vscale x 2 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m1_tu(vfloat32m1_t *v0, vfloat32m1_t *v1, vfloat32m1_t maskedoff0, vfloat32m1_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m1_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m2_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x float>, <vscale x 4 x float>, i64 } @llvm.riscv.vlseg2ff.nxv4f32.i64(<vscale x 4 x float> [[MASKEDOFF0:%.*]], <vscale x 4 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m2_tu(vfloat32m2_t *v0, vfloat32m2_t *v1, vfloat32m2_t maskedoff0, vfloat32m2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m2_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m4_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x float>, <vscale x 8 x float>, i64 } @llvm.riscv.vlseg2ff.nxv8f32.i64(<vscale x 8 x float> [[MASKEDOFF0:%.*]], <vscale x 8 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m4_tu(vfloat32m4_t *v0, vfloat32m4_t *v1, vfloat32m4_t maskedoff0, vfloat32m4_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m4_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32mf2_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32mf2_tu(vint32mf2_t *v0, vint32mf2_t *v1, vint32mf2_t maskedoff0, vint32mf2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32mf2_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m1_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m1_tu(vint32m1_t *v0, vint32m1_t *v1, vint32m1_t maskedoff0, vint32m1_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m1_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m2_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m2_tu(vint32m2_t *v0, vint32m2_t *v1, vint32m2_t maskedoff0, vint32m2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m2_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m4_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m4_tu(vint32m4_t *v0, vint32m4_t *v1, vint32m4_t maskedoff0, vint32m4_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m4_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32mf2_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32mf2_tu(vuint32mf2_t *v0, vuint32mf2_t *v1, vuint32mf2_t maskedoff0, vuint32mf2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32mf2_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m1_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m1_tu(vuint32m1_t *v0, vuint32m1_t *v1, vuint32m1_t maskedoff0, vuint32m1_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m1_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m2_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m2_tu(vuint32m2_t *v0, vuint32m2_t *v1, vuint32m2_t maskedoff0, vuint32m2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m2_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m4_tu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m4_tu(vuint32m4_t *v0, vuint32m4_t *v1, vuint32m4_t maskedoff0, vuint32m4_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m4_tu(v0, v1, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32mf2_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x float>, <vscale x 1 x float>, i64 } @llvm.riscv.vlseg2ff.nxv1f32.i64(<vscale x 1 x float> poison, <vscale x 1 x float> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32mf2_ta(vfloat32mf2_t *v0, vfloat32mf2_t *v1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32mf2_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m1_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float>, i64 } @llvm.riscv.vlseg2ff.nxv2f32.i64(<vscale x 2 x float> poison, <vscale x 2 x float> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m1_ta(vfloat32m1_t *v0, vfloat32m1_t *v1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m1_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m2_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x float>, <vscale x 4 x float>, i64 } @llvm.riscv.vlseg2ff.nxv4f32.i64(<vscale x 4 x float> poison, <vscale x 4 x float> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m2_ta(vfloat32m2_t *v0, vfloat32m2_t *v1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m2_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m4_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x float>, <vscale x 8 x float>, i64 } @llvm.riscv.vlseg2ff.nxv8f32.i64(<vscale x 8 x float> poison, <vscale x 8 x float> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m4_ta(vfloat32m4_t *v0, vfloat32m4_t *v1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m4_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32mf2_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv1i32.i64(<vscale x 1 x i32> poison, <vscale x 1 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32mf2_ta(vint32mf2_t *v0, vint32mf2_t *v1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32mf2_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m1_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv2i32.i64(<vscale x 2 x i32> poison, <vscale x 2 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m1_ta(vint32m1_t *v0, vint32m1_t *v1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m1_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m2_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv4i32.i64(<vscale x 4 x i32> poison, <vscale x 4 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m2_ta(vint32m2_t *v0, vint32m2_t *v1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m2_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m4_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv8i32.i64(<vscale x 8 x i32> poison, <vscale x 8 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m4_ta(vint32m4_t *v0, vint32m4_t *v1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m4_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32mf2_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv1i32.i64(<vscale x 1 x i32> poison, <vscale x 1 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32mf2_ta(vuint32mf2_t *v0, vuint32mf2_t *v1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32mf2_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m1_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv2i32.i64(<vscale x 2 x i32> poison, <vscale x 2 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m1_ta(vuint32m1_t *v0, vuint32m1_t *v1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m1_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m2_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv4i32.i64(<vscale x 4 x i32> poison, <vscale x 4 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m2_ta(vuint32m2_t *v0, vuint32m2_t *v1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m2_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m4_ta(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.nxv8i32.i64(<vscale x 8 x i32> poison, <vscale x 8 x i32> poison, ptr [[BASE:%.*]], i64 [[VL:%.*]])
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m4_ta(vuint32m4_t *v0, vuint32m4_t *v1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m4_ta(v0, v1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32mf2_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x float>, <vscale x 1 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1f32.i64(<vscale x 1 x float> [[MASKEDOFF0:%.*]], <vscale x 1 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32mf2_tuma(vfloat32mf2_t *v0, vfloat32mf2_t *v1, vbool64_t mask, vfloat32mf2_t maskedoff0, vfloat32mf2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32mf2_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m1_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2f32.i64(<vscale x 2 x float> [[MASKEDOFF0:%.*]], <vscale x 2 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m1_tuma(vfloat32m1_t *v0, vfloat32m1_t *v1, vbool32_t mask, vfloat32m1_t maskedoff0, vfloat32m1_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m1_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m2_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x float>, <vscale x 4 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4f32.i64(<vscale x 4 x float> [[MASKEDOFF0:%.*]], <vscale x 4 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m2_tuma(vfloat32m2_t *v0, vfloat32m2_t *v1, vbool16_t mask, vfloat32m2_t maskedoff0, vfloat32m2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m2_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m4_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x float>, <vscale x 8 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8f32.i64(<vscale x 8 x float> [[MASKEDOFF0:%.*]], <vscale x 8 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m4_tuma(vfloat32m4_t *v0, vfloat32m4_t *v1, vbool8_t mask, vfloat32m4_t maskedoff0, vfloat32m4_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m4_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32mf2_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32mf2_tuma(vint32mf2_t *v0, vint32mf2_t *v1, vbool64_t mask, vint32mf2_t maskedoff0, vint32mf2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32mf2_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m1_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m1_tuma(vint32m1_t *v0, vint32m1_t *v1, vbool32_t mask, vint32m1_t maskedoff0, vint32m1_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m1_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m2_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m2_tuma(vint32m2_t *v0, vint32m2_t *v1, vbool16_t mask, vint32m2_t maskedoff0, vint32m2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m2_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m4_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m4_tuma(vint32m4_t *v0, vint32m4_t *v1, vbool8_t mask, vint32m4_t maskedoff0, vint32m4_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m4_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32mf2_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32mf2_tuma(vuint32mf2_t *v0, vuint32mf2_t *v1, vbool64_t mask, vuint32mf2_t maskedoff0, vuint32mf2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32mf2_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m1_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m1_tuma(vuint32m1_t *v0, vuint32m1_t *v1, vbool32_t mask, vuint32m1_t maskedoff0, vuint32m1_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m1_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m2_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m2_tuma(vuint32m2_t *v0, vuint32m2_t *v1, vbool16_t mask, vuint32m2_t maskedoff0, vuint32m2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m2_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m4_tuma(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m4_tuma(vuint32m4_t *v0, vuint32m4_t *v1, vbool8_t mask, vuint32m4_t maskedoff0, vuint32m4_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m4_tuma(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32mf2_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x float>, <vscale x 1 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1f32.i64(<vscale x 1 x float> [[MASKEDOFF0:%.*]], <vscale x 1 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32mf2_tumu(vfloat32mf2_t *v0, vfloat32mf2_t *v1, vbool64_t mask, vfloat32mf2_t maskedoff0, vfloat32mf2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32mf2_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m1_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2f32.i64(<vscale x 2 x float> [[MASKEDOFF0:%.*]], <vscale x 2 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m1_tumu(vfloat32m1_t *v0, vfloat32m1_t *v1, vbool32_t mask, vfloat32m1_t maskedoff0, vfloat32m1_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m1_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m2_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x float>, <vscale x 4 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4f32.i64(<vscale x 4 x float> [[MASKEDOFF0:%.*]], <vscale x 4 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m2_tumu(vfloat32m2_t *v0, vfloat32m2_t *v1, vbool16_t mask, vfloat32m2_t maskedoff0, vfloat32m2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m2_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m4_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x float>, <vscale x 8 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8f32.i64(<vscale x 8 x float> [[MASKEDOFF0:%.*]], <vscale x 8 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m4_tumu(vfloat32m4_t *v0, vfloat32m4_t *v1, vbool8_t mask, vfloat32m4_t maskedoff0, vfloat32m4_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m4_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32mf2_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32mf2_tumu(vint32mf2_t *v0, vint32mf2_t *v1, vbool64_t mask, vint32mf2_t maskedoff0, vint32mf2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32mf2_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m1_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m1_tumu(vint32m1_t *v0, vint32m1_t *v1, vbool32_t mask, vint32m1_t maskedoff0, vint32m1_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m1_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m2_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m2_tumu(vint32m2_t *v0, vint32m2_t *v1, vbool16_t mask, vint32m2_t maskedoff0, vint32m2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m2_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m4_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m4_tumu(vint32m4_t *v0, vint32m4_t *v1, vbool8_t mask, vint32m4_t maskedoff0, vint32m4_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m4_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32mf2_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32mf2_tumu(vuint32mf2_t *v0, vuint32mf2_t *v1, vbool64_t mask, vuint32mf2_t maskedoff0, vuint32mf2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32mf2_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m1_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m1_tumu(vuint32m1_t *v0, vuint32m1_t *v1, vbool32_t mask, vuint32m1_t maskedoff0, vuint32m1_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m1_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m2_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m2_tumu(vuint32m2_t *v0, vuint32m2_t *v1, vbool16_t mask, vuint32m2_t maskedoff0, vuint32m2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m2_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m4_tumu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m4_tumu(vuint32m4_t *v0, vuint32m4_t *v1, vbool8_t mask, vuint32m4_t maskedoff0, vuint32m4_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m4_tumu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32mf2_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x float>, <vscale x 1 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1f32.i64(<vscale x 1 x float> poison, <vscale x 1 x float> poison, ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32mf2_tama(vfloat32mf2_t *v0, vfloat32mf2_t *v1, vbool64_t mask, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32mf2_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m1_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2f32.i64(<vscale x 2 x float> poison, <vscale x 2 x float> poison, ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m1_tama(vfloat32m1_t *v0, vfloat32m1_t *v1, vbool32_t mask, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m1_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m2_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x float>, <vscale x 4 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4f32.i64(<vscale x 4 x float> poison, <vscale x 4 x float> poison, ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m2_tama(vfloat32m2_t *v0, vfloat32m2_t *v1, vbool16_t mask, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m2_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m4_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x float>, <vscale x 8 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8f32.i64(<vscale x 8 x float> poison, <vscale x 8 x float> poison, ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m4_tama(vfloat32m4_t *v0, vfloat32m4_t *v1, vbool8_t mask, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m4_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32mf2_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> poison, <vscale x 1 x i32> poison, ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32mf2_tama(vint32mf2_t *v0, vint32mf2_t *v1, vbool64_t mask, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32mf2_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m1_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> poison, <vscale x 2 x i32> poison, ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m1_tama(vint32m1_t *v0, vint32m1_t *v1, vbool32_t mask, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m1_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m2_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> poison, <vscale x 4 x i32> poison, ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m2_tama(vint32m2_t *v0, vint32m2_t *v1, vbool16_t mask, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m2_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m4_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> poison, <vscale x 8 x i32> poison, ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m4_tama(vint32m4_t *v0, vint32m4_t *v1, vbool8_t mask, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m4_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32mf2_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> poison, <vscale x 1 x i32> poison, ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32mf2_tama(vuint32mf2_t *v0, vuint32mf2_t *v1, vbool64_t mask, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32mf2_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m1_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> poison, <vscale x 2 x i32> poison, ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m1_tama(vuint32m1_t *v0, vuint32m1_t *v1, vbool32_t mask, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m1_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m2_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> poison, <vscale x 4 x i32> poison, ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m2_tama(vuint32m2_t *v0, vuint32m2_t *v1, vbool16_t mask, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m2_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m4_tama(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> poison, <vscale x 8 x i32> poison, ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m4_tama(vuint32m4_t *v0, vuint32m4_t *v1, vbool8_t mask, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m4_tama(v0, v1, mask, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32mf2_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x float>, <vscale x 1 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1f32.i64(<vscale x 1 x float> [[MASKEDOFF0:%.*]], <vscale x 1 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32mf2_tamu(vfloat32mf2_t *v0, vfloat32mf2_t *v1, vbool64_t mask, vfloat32mf2_t maskedoff0, vfloat32mf2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32mf2_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m1_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2f32.i64(<vscale x 2 x float> [[MASKEDOFF0:%.*]], <vscale x 2 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m1_tamu(vfloat32m1_t *v0, vfloat32m1_t *v1, vbool32_t mask, vfloat32m1_t maskedoff0, vfloat32m1_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m1_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m2_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x float>, <vscale x 4 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4f32.i64(<vscale x 4 x float> [[MASKEDOFF0:%.*]], <vscale x 4 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m2_tamu(vfloat32m2_t *v0, vfloat32m2_t *v1, vbool16_t mask, vfloat32m2_t maskedoff0, vfloat32m2_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m2_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_f32m4_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x float>, <vscale x 8 x float>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8f32.i64(<vscale x 8 x float> [[MASKEDOFF0:%.*]], <vscale x 8 x float> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x float> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_f32m4_tamu(vfloat32m4_t *v0, vfloat32m4_t *v1, vbool8_t mask, vfloat32m4_t maskedoff0, vfloat32m4_t maskedoff1, const float *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_f32m4_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32mf2_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32mf2_tamu(vint32mf2_t *v0, vint32mf2_t *v1, vbool64_t mask, vint32mf2_t maskedoff0, vint32mf2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32mf2_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m1_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m1_tamu(vint32m1_t *v0, vint32m1_t *v1, vbool32_t mask, vint32m1_t maskedoff0, vint32m1_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m1_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m2_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m2_tamu(vint32m2_t *v0, vint32m2_t *v1, vbool16_t mask, vint32m2_t maskedoff0, vint32m2_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m2_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_i32m4_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_i32m4_tamu(vint32m4_t *v0, vint32m4_t *v1, vbool8_t mask, vint32m4_t maskedoff0, vint32m4_t maskedoff1, const int32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_i32m4_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32mf2_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF0:%.*]], <vscale x 1 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 1 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32mf2_tamu(vuint32mf2_t *v0, vuint32mf2_t *v1, vbool64_t mask, vuint32mf2_t maskedoff0, vuint32mf2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32mf2_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m1_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF0:%.*]], <vscale x 2 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 2 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m1_tamu(vuint32m1_t *v0, vuint32m1_t *v1, vbool32_t mask, vuint32m1_t maskedoff0, vuint32m1_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m1_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m2_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF0:%.*]], <vscale x 4 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 4 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m2_tamu(vuint32m2_t *v0, vuint32m2_t *v1, vbool16_t mask, vuint32m2_t maskedoff0, vuint32m2_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m2_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
// CHECK-RV64-LABEL: @test_vlseg2e32ff_v_u32m4_tamu(
// CHECK-RV64-NEXT: entry:
// CHECK-RV64-NEXT: [[TMP0:%.*]] = call { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } @llvm.riscv.vlseg2ff.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF0:%.*]], <vscale x 8 x i32> [[MASKEDOFF1:%.*]], ptr [[BASE:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 0
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP1]], ptr [[V0:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP2:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 1
// CHECK-RV64-NEXT: store <vscale x 8 x i32> [[TMP2]], ptr [[V1:%.*]], align 4
// CHECK-RV64-NEXT: [[TMP3:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32>, i64 } [[TMP0]], 2
// CHECK-RV64-NEXT: store i64 [[TMP3]], ptr [[NEW_VL:%.*]], align 4
// CHECK-RV64-NEXT: ret void
//
void test_vlseg2e32ff_v_u32m4_tamu(vuint32m4_t *v0, vuint32m4_t *v1, vbool8_t mask, vuint32m4_t maskedoff0, vuint32m4_t maskedoff1, const uint32_t *base, size_t *new_vl, size_t vl) {
return vlseg2e32ff_v_u32m4_tamu(v0, v1, mask, maskedoff0, maskedoff1, base, new_vl, vl);
}
|
416d3dd13150739f3b023f63893dbf6867a078d5
|
431a5c28b8dfcc7d6ca6f4f97bf370cd770547a7
|
/src/tmx/Asn_J2735/include/asn_j2735_r63/TransitVehicleOccupancy.h
|
60e640a52479f706426cdc88444fba1c025cfaa3
|
[
"Apache-2.0"
] |
permissive
|
usdot-fhwa-OPS/V2X-Hub
|
134061cfb55d8c83e871f7fd4bbfa5d8d3092eb0
|
aae33e6a16b8a30e1faee31a7ee863d191be06b8
|
refs/heads/develop
| 2023-08-26T10:10:59.989176
| 2023-08-24T14:58:21
| 2023-08-24T14:58:21
| 168,020,929
| 106
| 63
| null | 2023-09-11T20:24:45
| 2019-01-28T19:16:45
|
C
|
UTF-8
|
C
| false
| false
| 1,980
|
h
|
TransitVehicleOccupancy.h
|
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "J2735_201603_ASN_CC.asn"
* `asn1c -gen-PER -fcompound-names -fincludes-quoted -fskeletons-copy`
*/
#ifndef _TransitVehicleOccupancy_H_
#define _TransitVehicleOccupancy_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum TransitVehicleOccupancy {
TransitVehicleOccupancy_occupancyUnknown = 0,
TransitVehicleOccupancy_occupancyEmpty = 1,
TransitVehicleOccupancy_occupancyVeryLow = 2,
TransitVehicleOccupancy_occupancyLow = 3,
TransitVehicleOccupancy_occupancyMed = 4,
TransitVehicleOccupancy_occupancyHigh = 5,
TransitVehicleOccupancy_occupancyNearlyFull = 6,
TransitVehicleOccupancy_occupancyFull = 7
} e_TransitVehicleOccupancy;
/* TransitVehicleOccupancy */
typedef long TransitVehicleOccupancy_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_TransitVehicleOccupancy_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_TransitVehicleOccupancy;
extern const asn_INTEGER_specifics_t asn_SPC_TransitVehicleOccupancy_specs_1;
asn_struct_free_f TransitVehicleOccupancy_free;
asn_struct_print_f TransitVehicleOccupancy_print;
asn_constr_check_f TransitVehicleOccupancy_constraint;
ber_type_decoder_f TransitVehicleOccupancy_decode_ber;
der_type_encoder_f TransitVehicleOccupancy_encode_der;
xer_type_decoder_f TransitVehicleOccupancy_decode_xer;
xer_type_encoder_f TransitVehicleOccupancy_encode_xer;
oer_type_decoder_f TransitVehicleOccupancy_decode_oer;
oer_type_encoder_f TransitVehicleOccupancy_encode_oer;
per_type_decoder_f TransitVehicleOccupancy_decode_uper;
per_type_encoder_f TransitVehicleOccupancy_encode_uper;
per_type_decoder_f TransitVehicleOccupancy_decode_aper;
per_type_encoder_f TransitVehicleOccupancy_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _TransitVehicleOccupancy_H_ */
#include "asn_internal.h"
|
b3c5a85c5f2777063f6d4f9f6b76d67399a8ff00
|
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
|
/games/vvvvvv/patches/patch-src_SteamNetwork.c
|
046fd3812a82badc41c9d4b67731b544cf2cfe68
|
[] |
no_license
|
NetBSD/pkgsrc
|
a0732c023519650ef821ab89c23ab6ab59e25bdb
|
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
|
refs/heads/trunk
| 2023-09-01T07:40:12.138283
| 2023-09-01T05:25:19
| 2023-09-01T05:25:19
| 88,439,572
| 321
| 138
| null | 2023-07-12T22:34:14
| 2017-04-16T20:04:15
| null |
UTF-8
|
C
| false
| false
| 2,334
|
c
|
patch-src_SteamNetwork.c
|
$NetBSD: patch-src_SteamNetwork.c,v 1.1 2020/01/10 18:27:18 nia Exp $
Don't depend on proprietary steam libs
--- src/SteamNetwork.c.orig 2020-01-10 16:45:29.000000000 +0000
+++ src/SteamNetwork.c
@@ -15,10 +15,8 @@
#define NETWORK_LIBRARY "steam_api.dll"
#elif defined(__APPLE__)
#define NETWORK_LIBRARY "libsteam_api.dylib"
-#elif defined(__linux__)
-#define NETWORK_LIBRARY "libsteam_api.so"
#else
-#error NETWORK_LIBRARY: Unrecognized platform!
+#define NETWORK_LIBRARY "libsteam_api.so"
#endif
/* Function Pointer Types */
@@ -97,68 +95,6 @@ static void ClearPointers()
int NETWORK_init()
{
- intptr_t steamClient;
- int32_t steamUser, steamPipe;
-
- libHandle = SDL_LoadObject(NETWORK_LIBRARY);
- if (!libHandle)
- {
- printf("%s not found!\n", NETWORK_LIBRARY);
- return 0;
- }
-
- #define LOAD_FUNC(name) \
- name = (name##Func) SDL_LoadFunction(libHandle, #name); \
- if (!name) \
- { \
- printf("%s symbol %s not found!\n", NETWORK_LIBRARY, #name); \
- ClearPointers(); \
- return 0; \
- }
- LOAD_FUNC(SteamAPI_Init)
- LOAD_FUNC(SteamAPI_Shutdown)
- LOAD_FUNC(SteamAPI_RunCallbacks)
- LOAD_FUNC(SteamInternal_CreateInterface)
- LOAD_FUNC(SteamAPI_GetHSteamUser)
- LOAD_FUNC(SteamAPI_GetHSteamPipe)
- LOAD_FUNC(SteamAPI_ISteamClient_GetISteamUserStats)
- LOAD_FUNC(SteamAPI_ISteamUserStats_RequestCurrentStats)
- LOAD_FUNC(SteamAPI_ISteamUserStats_StoreStats)
- LOAD_FUNC(SteamAPI_ISteamUserStats_GetStat)
- LOAD_FUNC(SteamAPI_ISteamUserStats_SetStat)
- LOAD_FUNC(SteamAPI_ISteamUserStats_SetAchievement)
- #undef LOAD_FUNC
-
- if (!SteamAPI_Init())
- {
- printf("Steamworks not initialized!\n");
- ClearPointers();
- return 0;
- }
- steamClient = SteamInternal_CreateInterface(VVVVVV_STEAMCLIENT);
- steamUser = SteamAPI_GetHSteamUser();
- steamPipe = SteamAPI_GetHSteamPipe();
- if (!steamClient || !steamUser || !steamPipe)
- {
- SteamAPI_Shutdown();
- printf(VVVVVV_STEAMCLIENT " not created!\n");
- ClearPointers();
- return 0;
- }
- steamUserStats = SteamAPI_ISteamClient_GetISteamUserStats(
- steamClient,
- steamUser,
- steamPipe,
- VVVVVV_STEAMUSERSTATS
- );
- if (!steamUserStats)
- {
- SteamAPI_Shutdown();
- printf(VVVVVV_STEAMUSERSTATS " not created!\n");
- ClearPointers();
- return 0;
- }
- SteamAPI_ISteamUserStats_RequestCurrentStats(steamUserStats);
return 1;
}
|
8bd806299247590cf61515d6bca1ac521be8d1c8
|
50dd46b8ece33f3cdd174284b15d1d51f89669d4
|
/2017/quals/2017-pwn-wars/src/ctflib.h
|
40d31d3bd5b7928e4b5951c4252f020079509b0b
|
[
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] |
permissive
|
google/google-ctf
|
f99da1ee07729bbccb869fff1cbaed6a80e43bcc
|
df02323eaf945d15e124801c74abaadca2749dc7
|
refs/heads/master
| 2023-08-31T14:30:27.548081
| 2023-08-29T13:04:20
| 2023-08-29T13:04:20
| 131,317,137
| 4,136
| 607
|
Apache-2.0
| 2023-08-30T22:17:02
| 2018-04-27T15:56:03
|
Go
|
UTF-8
|
C
| false
| false
| 1,824
|
h
|
ctflib.h
|
/*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
============================================================================
Name : ctflib.h
Author : Steven Vittitoe (scvitti@)
Version : 0.1
============================================================================
*/
#ifndef _CTFLIB_INC
#define _CTFLIB_INC
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <pwd.h>
#include <grp.h>
#include <err.h>
#include <time.h>
typedef int (*callback)(int client_sock);
void sigchld(int sig);
int readAll(int fd, unsigned char *buf, unsigned int size);
int read_until_delim(int fd, char *buf, unsigned int size, char endchar);
int sendMsg(int fd, const char *buf, int nullflag);
int sendAll(int fd, unsigned char *buf, unsigned int size);
int sendFormat(int fd, const char *format, ...);
int init(int port);
void loop(int server_sock, callback client_func);
int drop_privs_user(const char *user_name);
int drop_privs(struct passwd *pw);
int get_choice(int sock, int min, int max);
int get_random_int(int min_num, int max_num);
#endif
|
3ebf1cf516839dd9f137569018c1e80c32d08679
|
e3acfc4f06840e23ef1185dcf367f40d3e3f59b4
|
/tests/regression/05-lval_ls/16-idxunknown_unlock.c
|
a7a58aacc08b5bc8e65e2865f5660a326a46129f
|
[
"MIT"
] |
permissive
|
goblint/analyzer
|
d62d3c610b86ed288849371b41c330c30678abc7
|
69ee7163eef0bfbfd6a4f3b9fda7cea5ce9ab79f
|
refs/heads/master
| 2023-08-16T21:58:53.013737
| 2023-08-16T08:49:18
| 2023-08-16T08:49:18
| 2,066,905
| 141
| 62
|
MIT
| 2023-09-14T18:48:34
| 2011-07-18T15:10:56
|
OCaml
|
UTF-8
|
C
| false
| false
| 841
|
c
|
16-idxunknown_unlock.c
|
extern int __VERIFIER_nondet_int();
extern void abort(void);
void assume_abort_if_not(int cond) {
if(!cond) {abort();}
}
#include <pthread.h>
int data;
pthread_mutexattr_t mutexattr;
pthread_mutex_t m[10];
void *t_fun(void *arg) {
pthread_mutex_lock(&m[4]);
data++; // RACE!
pthread_mutex_unlock(&m[4]);
return NULL;
}
int main() {
pthread_mutexattr_init(&mutexattr);
pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_ERRORCHECK);
for (int i = 0; i < 10; i++)
pthread_mutex_init(&m[i], &mutexattr);
int i = __VERIFIER_nondet_int();
assume_abort_if_not(0 <= i && i < 10);
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
pthread_mutex_lock(&m[4]);
pthread_mutex_unlock(&m[i]); // no UB because ERRORCHECK
data++; // RACE!
pthread_mutex_unlock(&m[4]); // no UB because ERRORCHECK
return 0;
}
|
ba3a9b087294b7b1e69e9e5229894a0297213480
|
f79dec3c4033ca3cbb55d8a51a748cc7b8b6fbab
|
/graphics/MesaLib7/patches/patch-src_glsl_ralloc.c
|
33de2e3ea7e3a9c619b7222bb7c8365bf5d681dc
|
[] |
no_license
|
jsonn/pkgsrc
|
fb34c4a6a2d350e8e415f3c4955d4989fcd86881
|
c1514b5f4a3726d90e30aa16b0c209adbc276d17
|
refs/heads/trunk
| 2021-01-24T09:10:01.038867
| 2017-07-07T15:49:43
| 2017-07-07T15:49:43
| 2,095,004
| 106
| 47
| null | 2016-09-19T09:26:01
| 2011-07-23T23:49:04
|
Makefile
|
UTF-8
|
C
| false
| false
| 634
|
c
|
patch-src_glsl_ralloc.c
|
$NetBSD: patch-src_glsl_ralloc.c,v 1.1 2015/04/05 17:01:37 tnn Exp $
* Fix exit time segfault of qt5 application with modular xorg
--- src/glsl/ralloc.c.orig 2011-10-15 00:43:58.000000000 +0000
+++ src/glsl/ralloc.c
@@ -272,7 +272,7 @@ ralloc_parent(const void *ptr)
static void *autofree_context = NULL;
-static void
+static void __attribute__((__destructor__))
autofree(void)
{
ralloc_free(autofree_context);
@@ -283,7 +283,6 @@ ralloc_autofree_context(void)
{
if (unlikely(autofree_context == NULL)) {
autofree_context = ralloc_context(NULL);
- atexit(autofree);
}
return autofree_context;
}
|
40a7f7a2e5ec7d7301b5fe668689c45029a178f6
|
50dd46b8ece33f3cdd174284b15d1d51f89669d4
|
/third_party/edk2/CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h
|
026793f66453776ec75593bc239c10fb963486ee
|
[
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause",
"OpenSSL"
] |
permissive
|
google/google-ctf
|
f99da1ee07729bbccb869fff1cbaed6a80e43bcc
|
df02323eaf945d15e124801c74abaadca2749dc7
|
refs/heads/master
| 2023-08-31T14:30:27.548081
| 2023-08-29T13:04:20
| 2023-08-29T13:04:20
| 131,317,137
| 4,136
| 607
|
Apache-2.0
| 2023-08-30T22:17:02
| 2018-04-27T15:56:03
|
Go
|
UTF-8
|
C
| false
| false
| 2,342
|
h
|
InternalCryptLib.h
|
/** @file
Internal include file for BaseCryptLib.
Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef __INTERNAL_CRYPT_LIB_H__
#define __INTERNAL_CRYPT_LIB_H__
#undef _WIN32
#undef _WIN64
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseCryptLib.h>
#include "CrtLibSupport.h"
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#define OBJ_get0_data(o) ((o)->data)
#define OBJ_length(o) ((o)->length)
#endif
/**
Check input P7Data is a wrapped ContentInfo structure or not. If not construct
a new structure to wrap P7Data.
Caution: This function may receive untrusted input.
UEFI Authenticated Variable is external input, so this function will do basic
check for PKCS#7 data structure.
@param[in] P7Data Pointer to the PKCS#7 message to verify.
@param[in] P7Length Length of the PKCS#7 message in bytes.
@param[out] WrapFlag If TRUE P7Data is a ContentInfo structure, otherwise
return FALSE.
@param[out] WrapData If return status of this function is TRUE:
1) when WrapFlag is TRUE, pointer to P7Data.
2) when WrapFlag is FALSE, pointer to a new ContentInfo
structure. It's caller's responsibility to free this
buffer.
@param[out] WrapDataSize Length of ContentInfo structure in bytes.
@retval TRUE The operation is finished successfully.
@retval FALSE The operation is failed due to lack of resources.
**/
BOOLEAN
WrapPkcs7Data (
IN CONST UINT8 *P7Data,
IN UINTN P7Length,
OUT BOOLEAN *WrapFlag,
OUT UINT8 **WrapData,
OUT UINTN *WrapDataSize
);
#endif
|
a69950eec194a899f73b378336f029f42d6668c8
|
05819963250c2ae0ba59ffef48d7c99a5b6b7cfd
|
/drivers/can/cand.c
|
ca54bbfe93e1d103d6311548f06ecdb52044daae
|
[
"LicenseRef-scancode-bsd-atmel"
] |
permissive
|
atmelcorp/atmel-software-package
|
cefa3213069995d453d3b47b8b3aa7a7aca683ac
|
e0428c7c8175a42a2460cff27bb0501db0bbe160
|
refs/heads/master
| 2023-04-13T16:34:56.181081
| 2023-04-06T17:30:10
| 2023-04-11T06:05:12
| 47,840,424
| 117
| 94
|
NOASSERTION
| 2022-10-20T03:07:15
| 2015-12-11T17:18:56
|
C
|
UTF-8
|
C
| false
| false
| 13,661
|
c
|
cand.c
|
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2016, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
*
* Atmel's name may not be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ----------------------------------------------------------------------------
*/
/*----------------------------------------------------------------------------
* Headers
*----------------------------------------------------------------------------*/
#include <assert.h>
#include <string.h>
#include "board.h"
#include "can/cand.h"
#include "irq/irq.h"
#include "peripherals/pmc.h"
#include "trace.h"
/*----------------------------------------------------------------------------
* Local definitions
*----------------------------------------------------------------------------*/
/** \addtogroup cand_states CAN Driver states
* @{*/
#define CAND_STATE_DISABLED 0 /**< Power-up reset, controller is disabled */
#define CAND_STATE_INIT 1 /**< Initializing */
#define CAND_STATE_SLEEP 2 /**< Low-power mode */
#define CAND_STATE_SYNC 3 /**< Synchronizating */
#define CAND_STATE_ERROR 4 /**< Error halt */
#define CAND_STATE_ACTIVATED 5 /**< Bus synchronization is done */
#define CAND_STATE_XFR 6 /**< Transfer in progress */
/** @}*/
/** \addtogroup cand_xfr_states CAN Transfer states
* @{*/
#define CAND_XFR_DISABLED 0 /**< Transfer not used */
#define CAND_XFR_HALTED 1 /**< Error halt */
#define CAND_XFR_IDLE 2 /**< No transfer */
#define CAND_XFR_TX 3 /**< Transferring data */
/** @}*/
/** \addtogroup cand_reg_bits CAN Register Bitfields
* @{*/
/** CAN mailbox event statuses bits */
#define CAN_MB_EVENTS 0xFF
/** CAN errors statuses bits */
#define CAN_ERRS (0 \
/*| CAN_SR_ERRA*/ \
/*| CAN_SR_WARN*/ \
/*| CAN_SR_ERRP*/ \
/*| CAN_SR_BOFF*/ \
/*| CAN_SR_SLEEP*/ \
/*| CAN_SR_WAKEUP*/ \
/*| CAN_SR_TOVF*/ \
/*| CAN_SR_TSTP*/ \
| CAN_SR_CERR \
| CAN_SR_SERR \
| CAN_SR_AERR \
| CAN_SR_FERR \
| CAN_SR_BERR \
/*| CAN_SR_RBSY*/ \
/*| CAN_SR_TBSY*/ \
/*| CAN_SR_OVLSY*/ \
)
/** @}*/
/*----------------------------------------------------------------------------
* Local variables
*----------------------------------------------------------------------------*/
static struct _can_desc can_desc[CAN_IFACE_COUNT];
/*----------------------------------------------------------------------------
* Local Functions
*----------------------------------------------------------------------------*/
static void cand_reset_mailbox(struct _can_desc* desc, uint8_t mailbox,
uint32_t mask, uint8_t type, uint8_t priority)
{
Can *can = desc->addr;
can_disable_it(can, (1 << mailbox) & CAN_MB_EVENTS);
can_message_control(can, mailbox, 0);
can_configure_msg_mask(can, mailbox, mask);
can_configure_message_mode(can, mailbox,
CAN_MMR_MOT(type) | CAN_MMR_PRIOR(priority));
}
static uint8_t cand_allocate_mailbox(struct _can_desc* desc)
{
uint8_t mailbox;
for (mailbox = 0; mailbox < CAN_NUM_MAILBOX; mailbox++) {
if (desc->mailboxes[mailbox].state == CAND_XFR_DISABLED
|| desc->mailboxes[mailbox].state == CAND_XFR_IDLE)
break;
}
return mailbox;
}
/**
* Handler for CAN errors
*/
static void cand_error_handler(struct _can_desc* desc, uint32_t errors)
{
uint32_t ecr;
trace_debug("CAN[%p]: 0x%08x\n\r", desc->addr, (unsigned)errors);
ecr = (desc->addr)->CAN_ECR;
if (errors & CAN_SR_ERRA)
trace_error("Active Mode: TEC %u, REC %u\n\r",
(unsigned)((ecr & CAN_ECR_TEC_Msk) >> CAN_ECR_TEC_Pos),
(unsigned)((ecr & CAN_ECR_REC_Msk) >> CAN_ECR_REC_Pos));
if (errors & CAN_SR_WARN)
trace_error("Warning Limit: TEC %u, REC %u\n\r",
(unsigned)((ecr & CAN_ECR_TEC_Msk) >> CAN_ECR_TEC_Pos),
(unsigned)((ecr & CAN_ECR_REC_Msk) >> CAN_ECR_REC_Pos));
if (errors & CAN_SR_ERRP)
trace_error("Passive Mode: TEC %u, REC %u\n\r",
(unsigned)((ecr & CAN_ECR_TEC_Msk) >> CAN_ECR_TEC_Pos),
(unsigned)((ecr & CAN_ECR_REC_Msk) >> CAN_ECR_REC_Pos));
if (errors & CAN_SR_BOFF)
trace_error("Bus Off Mode, TEC %u\n\r",
(unsigned)((ecr & CAN_ECR_TEC_Msk) >> CAN_ECR_TEC_Pos));
if (errors & CAN_SR_CERR)
trace_error("MB CRC\n\r");
if (errors & CAN_SR_SERR)
trace_error("MB Stuffing\n\r");
if (errors & CAN_SR_AERR)
trace_error("Ack\n\r");
if (errors & CAN_SR_FERR)
trace_error("Form\n\r");
if (errors & CAN_SR_BERR)
trace_error("Bit\n\r");
}
/**
* Handler for messages
* \param pCand Pointer to CAN Driver instance.
*/
static void cand_message_handler(struct _can_desc* desc)
{
uint8_t mailbox;
uint32_t sr;
struct _buffer **buf;
Can *can = desc->addr;
for (mailbox = 0; mailbox < CAN_NUM_MAILBOX; mailbox++) {
buf = &desc->mailboxes[mailbox].buf;
if (*buf == NULL)
continue;
/* Mailbox ready ? */
sr = can_get_message_status(can, mailbox);
if ((sr & CAN_MSR_MRDY) != CAN_MSR_MRDY)
continue;
/* Handle data */
switch (can_get_message_mode(can, mailbox) & CAN_MMR_MOT_Msk) {
case CAN_MMR_MOT_MB_RX_OVERWRITE: /** Next data overwrite current */
case CAN_MMR_MOT_MB_RX:
case CAN_MMR_MOT_MB_CONSUMER: /** TX then RX message */
can_get_message(can, mailbox, (uint32_t *)(*buf)->data);
(*buf)->size = (sr & CAN_MSR_MDLC_Msk) >> CAN_MSR_MDLC_Pos;
(*buf)->attr |= CAND_BUF_ATTR_TRANSFER_DONE;
break;
case CAN_MMR_MOT_MB_TX:
case CAN_MMR_MOT_MB_PRODUCER: /** RX then TX message */
(*buf)->attr |= CAND_BUF_ATTR_TRANSFER_DONE;
break;
default:
trace_error("MB[%d] disabled\n\r", mailbox);
(*buf)->attr |= CAND_BUF_ATTR_TRANSFER_ERR;
break;
}
/* Disable mailbox interrupt */
can_disable_it(can, 1 << mailbox);
*buf = NULL;
desc->mailboxes[mailbox].state = CAND_XFR_IDLE;
callback_call(&desc->mailboxes[mailbox].cb, NULL);
}
/* All transfer finished ? */
if ((can_get_it_mask(can) & CAN_MB_EVENTS) == 0)
desc->state = CAND_STATE_ACTIVATED;
}
/**
* Interrupt handler for CAN Driver.
*/
static void _can_handler(uint32_t source, void* user_arg)
{
uint32_t status;
struct _can_desc *desc = (struct _can_desc*)user_arg;
Can *can;
can = desc->addr;
status = can_get_status(can);
/* Errors */
if (status & CAN_ERRS) {
desc->state = CAND_STATE_ERROR;
cand_error_handler(desc, status & CAN_ERRS);
can_disable_it(can, status & CAN_ERRS);
} else {
/* Wakeup and bus synchronization done */
if (desc->state > CAND_STATE_ACTIVATED) {
/* Mailbox events */
if (status & CAN_MB_EVENTS)
cand_message_handler(desc);
} else if (status & CAN_SR_WAKEUP) {
can_disable_it(can, CAN_IDR_WAKEUP);
desc->state = CAND_STATE_ACTIVATED;
}
}
/* Low-power Mode enabled */
if (status & CAN_SR_SLEEP) {
can_disable_it(can, CAN_IDR_SLEEP);
desc->state = CAND_STATE_SLEEP;
}
}
/**
* \brief Calculate and configure the baudrate
* \param can Pointer to Can instance.
* \param baudrate Baudrate value (b/s)
* allowed: 100000, 800000, 500000, 250000, 125000, 50000, 25000, 10000
* \return 0 on success, otherwise return errno.
*/
static int cand_set_baudrate(Can* can, uint32_t baudrate)
{
uint32_t brp, propag, phase1, phase2, sjw;
uint8_t tq;
uint32_t t1t2;
uint32_t clock;
uint32_t id;
id = get_can_id_from_addr(can);
assert(id < ID_PERIPH_COUNT);
clock = pmc_get_peripheral_clock(id);
baudrate /= 1000;
if (baudrate >= 1000)
tq = 8;
else
tq = 16;
brp = (clock / (baudrate * 1000 * tq)) - 1;
if (brp == 0)
return -EINVAL;
/* Timing delay:
Delay Bus Driver - 50ns
Delay Receiver - 30ns
Delay Bus Line (20m) - 110ns */
if ( (tq * baudrate * 2 * (50 + 30 + 110) / 1000000) >= 1 )
propag = (tq * baudrate * 2 * (50 + 30 + 110) / 1000000) - 1;
else
propag = 0;
t1t2 = tq - 1 - (propag + 1);
if ( (t1t2 & 0x01) == 0x01 ) {
phase1 = ((t1t2 - 1) / 2) - 1;
phase2 = phase1 + 1;
} else {
phase1 = ((t1t2) / 2) - 1;
phase2 = phase1;
}
if ( 1 > (4 / (phase1 + 1)) )
sjw = 3;
else
sjw = phase1;
if ((propag + phase1 + phase2) != (uint32_t)(tq - 4))
return -EINVAL;
can->CAN_BR = CAN_BR_PHASE2(phase2)
| CAN_BR_PHASE1(phase1)
| CAN_BR_PROPAG(propag)
| CAN_BR_SJW(sjw)
| CAN_BR_BRP(brp)
| CAN_BR_SMP_ONCE;
return 0;
}
/*----------------------------------------------------------------------------
* Exported Functions
*----------------------------------------------------------------------------*/
struct _can_desc* cand_get_desc(uint8_t can_if)
{
if (can_if >= CAN_IFACE_COUNT)
return NULL;
return &can_desc[can_if];
}
int cand_configure(struct _can_desc* desc)
{
uint32_t mailbox;
Can *can = desc->addr;
uint32_t id = get_can_id_from_addr(can);
int err;
pmc_enable_peripheral(id);
err = cand_set_baudrate(can, desc->freq);
if (err < 0) {
trace_error("Set baudrate for can bus failed!");
return err;
}
/* Reset CAN mode */
can_configure_mode(can, 0);
memset(desc->mailboxes, 0, sizeof(desc->mailboxes));
/* Reset all mailboxes */
for (mailbox = 0; mailbox < CAN_NUM_MAILBOX; mailbox ++)
cand_reset_mailbox(desc, mailbox, 0,
CAN_MMR_MOT_MB_DISABLED >> CAN_MMR_MOT_Pos, 0);
desc->state = CAND_STATE_INIT;
/* Enable the interrupts for error cases */
can_enable_it(can, CAN_ERRS);
irq_add_handler(id, _can_handler, desc);
irq_enable(id);
return 0;
}
void cand_enable(struct _can_desc* desc)
{
Can *can = desc->addr;
if (desc->state > CAND_STATE_SYNC)
return;
/* Disable low-power mode */
can_enable_low_power(can, 0);
/* Start sync state */
desc->state = CAND_STATE_SYNC;
/* Enable CAN and wait interrupt */
can_enable_it(can, CAN_IER_WAKEUP);
can_enable(can, 1);
}
bool cand_is_enabled(struct _can_desc* desc)
{
return (desc->state >= CAND_STATE_ACTIVATED);
}
int cand_transfer(struct _can_desc* desc, struct _buffer* buf,
struct _callback* cb)
{
uint32_t type;
uint32_t mask;
uint32_t identifier;
uint32_t data[2] = { 0 };
Can *can = desc->addr;
struct _cand_mailbox *mb;
uint8_t mailbox;
if ((buf->attr & CAND_BUF_ATTR_RX) ||
(buf->attr & CAND_BUF_ATTR_RX_OVERWRITE) ||
(buf->attr & CAND_BUF_ATTR_CONSUMER)) {
/* the minimum buffer required for receive is 8 bytes: CAN_MDL & CAN_MDH */
if (buf->size < 8)
return -ENOBUFS;
} else if (buf->size > 8) /* CAN standard supports maximun 8 bytes per frame */
return EMSGSIZE;
if (buf->attr & CAND_BUF_ATTR_RX)
type = CAN_MMR_MOT_MB_RX;
else if (buf->attr & CAND_BUF_ATTR_RX_OVERWRITE)
type = CAN_MMR_MOT_MB_RX_OVERWRITE;
else if (buf->attr & CAND_BUF_ATTR_TX)
type = CAN_MMR_MOT_MB_TX;
else if (buf->attr & CAND_BUF_ATTR_CONSUMER)
type = CAN_MMR_MOT_MB_CONSUMER;
else if (buf->attr & CAND_BUF_ATTR_PRODUCER)
type = CAN_MMR_MOT_MB_PRODUCER;
else
return -EINVAL;
mailbox = cand_allocate_mailbox(desc);
if (mailbox >= CAN_NUM_MAILBOX)
return -ENOMEM;
mb = &desc->mailboxes[mailbox];
callback_copy(&mb->cb, cb);
if (buf->attr & CAND_BUF_ATTR_EXTENDED) {
mask = CAN_MID_MIDvB(desc->mask);
identifier = CAN_MID_MIDvB(desc->identifier);
} else {
mask = CAN_MID_MIDvA(desc->mask);
identifier = CAN_MID_MIDvA(desc->identifier);
}
cand_reset_mailbox(desc, mailbox, mask, type >> CAN_MMR_MOT_Pos, 0);
buf->attr &= ~CAND_BUF_ATTR_TRANSFER_MSK;
desc->mailboxes[mailbox].buf = buf;
/* Reset transfer state */
desc->mailboxes[mailbox].state = CAND_XFR_IDLE;
/* Fill ID */
can_configure_message_id(can, mailbox, identifier);
/* Start TX if not RX */
if (buf->attr & CAND_BUF_ATTR_TX_MSK) {
/* prepare for transfer, the data in buffer could be un-aligned*/
for (uint32_t i = 0; i < buf->size; i++)
*(data + i / 4) |= (uint32_t)buf->data[i] << (i % 4) * 8;
/* Fill data registers */
can_set_message(can, mailbox, data);
can_message_control(can, mailbox, CAN_MCR_MDLC(buf->size));
}
/* Change transfer state */
desc->mailboxes[mailbox].state = CAND_XFR_TX;
/* Change CAN state */
desc->state = CAND_STATE_XFR;
/* Start transfers */
can_command(can, 1 << mailbox);
/* Enable interrupts */
can_enable_it(can, 1 << mailbox | CAN_ERRS);
return 0;
}
|
7cb9d64e2a98866714e13a9227f5070acc8b9506
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sys/lib/libkern/entpool.c
|
f882342c6224920f099f35059f59e4e926a7d8ef
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 18,510
|
c
|
entpool.c
|
/* $NetBSD: entpool.c,v 1.1 2020/04/30 03:28:19 riastradh Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Taylor R. Campbell.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Entropy pool (`reseedable pseudorandom number generator') based on a
* sponge duplex, following the design described and analyzed in
*
* Guido Bertoni, Joan Daemen, Michaël Peeters, and Gilles Van
* Assche, `Sponge-Based Pseudo-Random Number Generators', in
* Stefan Mangard and François-Xavier Standaert, eds.,
* Cryptographic Hardware and Embedded Systems—CHES 2010, Springer
* LNCS 6225, pp. 33–47.
* https://link.springer.com/chapter/10.1007/978-3-642-15031-9_3
* https://keccak.team/files/SpongePRNG.pdf
*
* Guido Bertoni, Joan Daemen, Michaël Peeters, and Gilles Van
* Assche, `Duplexing the Sponge: Single-Pass Authenticated
* Encryption and Other Applications', in Ali Miri and Serge
* Vaudenay, eds., Selected Areas in Cryptography—SAC 2011,
* Springer LNCS 7118, pp. 320–337.
* https://link.springer.com/chapter/10.1007/978-3-642-28496-0_19
* https://keccak.team/files/SpongeDuplex.pdf
*
* We make the following tweaks that don't affect security:
*
* - Samples are length-delimited 7-bit variable-length encoding.
* The encoding is still injective, so the security theorems
* continue to apply.
*
* - Output is not buffered -- callers should draw 32 bytes and
* expand with a stream cipher. In effect, every output draws
* the full rate, and we just discard whatever the caller didn't
* ask for; the impact is only on performance, not security.
*
* On top of the underlying sponge state, an entropy pool maintains an
* integer i in [0, RATE-1] indicating where to write the next byte in
* the input buffer. Zeroing an entropy pool initializes it.
*/
#if defined(_KERNEL) || defined(_STANDALONE)
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: entpool.c,v 1.1 2020/04/30 03:28:19 riastradh Exp $");
#endif
#include "entpool.h"
#include ENTPOOL_HEADER
#if defined(_KERNEL) || defined(_STANDALONE)
#include <sys/types.h>
#include <lib/libkern/libkern.h>
#define ASSERT KASSERT
#else
#include <sys/cdefs.h>
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#define ASSERT assert
#define CTASSERT __CTASSERT
#endif
#define secret /* must not use in variable-time operations; should zero */
#define arraycount(A) (sizeof(A)/sizeof((A)[0]))
#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
#define RATE ENTPOOL_RATE
/*
* stir(P)
*
* Internal subroutine to apply the sponge permutation to the
* state in P. Resets P->i to 0 to indicate that the input buffer
* is empty.
*/
static void
stir(struct entpool *P)
{
size_t i;
/*
* Switch to the permutation's byte order, if necessary, apply
* permutation, and then switch back. This way we can data in
* and out byte by byte, but get the same answers out of test
* vectors.
*/
for (i = 0; i < arraycount(P->s.w); i++)
P->s.w[i] = ENTPOOL_WTOH(P->s.w[i]);
ENTPOOL_PERMUTE(P->s.w);
for (i = 0; i < arraycount(P->s.w); i++)
P->s.w[i] = ENTPOOL_HTOW(P->s.w[i]);
/* Reset the input buffer. */
P->i = 0;
}
/*
* entpool_enter(P, buf, len)
*
* Enter len bytes from buf into the entropy pool P, stirring as
* needed. Corresponds to P.feed in the paper.
*/
void
entpool_enter(struct entpool *P, const void *buf, size_t len)
{
const uint8_t *p = buf;
size_t n = len, n1 = n;
/* Sanity-check P->i. */
ASSERT(P->i <= RATE-1);
/* Encode the length, stirring as needed. */
while (n1) {
if (P->i == RATE-1)
stir(P);
ASSERT(P->i < RATE-1);
P->s.u8[P->i++] ^= (n1 >= 0x80 ? 0x80 : 0) | (n1 & 0x7f);
n1 >>= 7;
}
/* Enter the sample, stirring as needed. */
while (n --> 0) {
if (P->i == RATE-1)
stir(P);
ASSERT(P->i < RATE-1);
P->s.u8[P->i++] ^= *p++;
}
/* If we filled the input buffer exactly, stir once more. */
if (P->i == RATE-1)
stir(P);
ASSERT(P->i < RATE-1);
}
/*
* entpool_enter_nostir(P, buf, len)
*
* Enter as many bytes as possible, up to len, from buf into the
* entropy pool P. Roughly corresponds to P.feed in the paper,
* but we stop if we would have run the permutation.
*
* Return true if the sample was consumed in its entirety, or true
* if the sample was truncated so the caller should arrange to
* call entpool_stir when it is next convenient to do so.
*
* This function is cheap -- it only xors the input into the
* state, and never calls the underlying permutation, but it may
* truncate samples.
*/
bool
entpool_enter_nostir(struct entpool *P, const void *buf, size_t len)
{
const uint8_t *p = buf;
size_t n0, n;
/* Sanity-check P->i. */
ASSERT(P->i <= RATE-1);
/* If the input buffer is full, fail. */
if (P->i == RATE-1)
return false;
ASSERT(P->i < RATE-1);
/*
* Truncate the sample and enter it with 1-byte length encoding
* -- don't bother with variable-length encoding, not worth the
* trouble.
*/
n = n0 = MIN(127, MIN(len, RATE-1 - P->i - 1));
P->s.u8[P->i++] ^= n;
while (n --> 0)
P->s.u8[P->i++] ^= *p++;
/* Can't guarantee anything better than 0 <= i <= RATE-1. */
ASSERT(P->i <= RATE-1);
/* Return true if all done, false if truncated and in need of stir. */
return (n0 == len);
}
/*
* entpool_stir(P)
*
* Stir the entropy pool after entpool_enter_nostir fails. If it
* has already been stirred already, this has no effect.
*/
void
entpool_stir(struct entpool *P)
{
/* Sanity-check P->i. */
ASSERT(P->i <= RATE-1);
/* If the input buffer is full, stir. */
if (P->i == RATE-1)
stir(P);
ASSERT(P->i < RATE-1);
}
/*
* entpool_extract(P, buf, len)
*
* Extract len bytes from the entropy pool P into buf.
* Corresponds to iterating P.fetch/P.forget in the paper.
* (Feeding the output back in -- as P.forget does -- is the same
* as zeroing what we just read out.)
*/
void
entpool_extract(struct entpool *P, secret void *buf, size_t len)
{
uint8_t *p = buf;
size_t n = len;
/* Sanity-check P->i. */
ASSERT(P->i <= RATE-1);
/* If input buffer is not empty, stir. */
if (P->i != 0)
stir(P);
ASSERT(P->i == 0);
/*
* Copy out and zero (RATE-1)-sized chunks at a time, stirring
* with a bit set to distinguish this from inputs.
*/
while (n >= RATE-1) {
memcpy(p, P->s.u8, RATE-1);
memset(P->s.u8, 0, RATE-1);
P->s.u8[RATE-1] ^= 0x80;
stir(P);
p += RATE-1;
n -= RATE-1;
}
/*
* If there's anything left, copy out a partial rate's worth
* and zero the entire rate's worth, stirring with a bit set to
* distinguish this from inputs.
*/
if (n) {
ASSERT(n < RATE-1);
memcpy(p, P->s.u8, n); /* Copy part of it. */
memset(P->s.u8, 0, RATE-1); /* Zero all of it. */
P->s.u8[RATE-1] ^= 0x80;
stir(P);
}
}
/*
* Known-answer tests
*/
#if ENTPOOL_SMALL
#define KATLEN 15
/* Gimli */
static const uint8_t known_answers[][KATLEN] = {
[0] = {
0x69,0xb8,0x49,0x0d,0x39,0xfb,0x42,0x61,
0xf7,0x66,0xdf,0x04,0xb6,0xed,0x11,
},
[1] = {
0x74,0x15,0x16,0x49,0x31,0x07,0x77,0xa1,
0x3b,0x4d,0x78,0xc6,0x5d,0xef,0x87,
},
[2] = {
0xae,0xfd,0x7d,0xc4,0x3b,0xce,0x09,0x25,
0xbf,0x60,0x21,0x6e,0x3c,0x3a,0x84,
},
[3] = {
0xae,0xfd,0x7d,0xc4,0x3b,0xce,0x09,0x25,
0xbf,0x60,0x21,0x6e,0x3c,0x3a,0x84,
},
[4] = {
0x69,0xb8,0x49,0x0d,0x39,0xfb,0x42,0x61,
0xf7,0x66,0xdf,0x04,0xb6,0xed,0x11,
},
[5] = {
0xa9,0x3c,0x3c,0xac,0x5f,0x6d,0x80,0xdc,
0x33,0x0c,0xb2,0xe3,0xdd,0x55,0x31,
},
[6] = {
0x2e,0x69,0x1a,0x2a,0x2d,0x09,0xd4,0x5e,
0x49,0xcc,0x8c,0xb2,0x0b,0xcc,0x42,
},
[7] = {
0xae,0xfd,0x7d,0xc4,0x3b,0xce,0x09,0x25,
0xbf,0x60,0x21,0x6e,0x3c,0x3a,0x84,
},
[8] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
},
[9] = {
0x69,0xb8,0x49,0x0d,0x39,0xfb,0x42,0x61,
0xf7,0x66,0xdf,0x04,0xb6,0xed,0x11,
},
[10] = {
0x2e,0x69,0x1a,0x2a,0x2d,0x09,0xd4,0x5e,
0x49,0xcc,0x8c,0xb2,0x0b,0xcc,0x42,
},
[11] = {
0x6f,0xfd,0xd2,0x29,0x78,0x46,0xc0,0x7d,
0xc7,0xf2,0x0a,0x2b,0x72,0xd6,0xc6,
},
[12] = {
0x86,0xf0,0xc1,0xf9,0x95,0x0f,0xc9,0x12,
0xde,0x38,0x39,0x10,0x1f,0x8c,0xc4,
},
};
#else /* !ENTPOOL_SMALL */
#define KATLEN 16
/* Keccak-p[1600, 24] */
static const uint8_t known_answers[][KATLEN] = {
[0] = {
0x3b,0x20,0xf0,0xe9,0xce,0x94,0x48,0x07,
0x97,0xb6,0x16,0xb5,0xb5,0x05,0x1a,0xce,
},
[1] = {
0x57,0x49,0x6e,0x28,0x7f,0xaa,0xee,0x6c,
0xa8,0xb0,0xf5,0x0b,0x87,0xae,0xd6,0xd6,
},
[2] = {
0x51,0x72,0x0f,0x59,0x54,0xe1,0xaf,0xa8,
0x16,0x67,0xfa,0x3f,0x8a,0x19,0x52,0x50,
},
[3] = {
0x51,0x72,0x0f,0x59,0x54,0xe1,0xaf,0xa8,
0x16,0x67,0xfa,0x3f,0x8a,0x19,0x52,0x50,
},
[4] = {
0x3b,0x20,0xf0,0xe9,0xce,0x94,0x48,0x07,
0x97,0xb6,0x16,0xb5,0xb5,0x05,0x1a,0xce,
},
[5] = {
0x95,0x23,0x77,0xe4,0x84,0xeb,0xaa,0x2e,
0x6a,0x99,0xc2,0x52,0x06,0x6d,0xdf,0xea,
},
[6] = {
0x8c,0xdd,0x1b,0xaf,0x0e,0xf6,0xe9,0x1d,
0x51,0x33,0x68,0x38,0x8d,0xad,0x55,0x84,
},
[7] = {
0x51,0x72,0x0f,0x59,0x54,0xe1,0xaf,0xa8,
0x16,0x67,0xfa,0x3f,0x8a,0x19,0x52,0x50,
},
[8] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
},
[9] = {
0x3b,0x20,0xf0,0xe9,0xce,0x94,0x48,0x07,
0x97,0xb6,0x16,0xb5,0xb5,0x05,0x1a,0xce,
},
[10] = {
0x8c,0xdd,0x1b,0xaf,0x0e,0xf6,0xe9,0x1d,
0x51,0x33,0x68,0x38,0x8d,0xad,0x55,0x84,
},
[11] = {
0xf6,0xc1,0x14,0xbb,0x13,0x0a,0xaf,0xed,
0xca,0x0b,0x35,0x2c,0xf1,0x2b,0x1a,0x85,
},
[12] = {
0xf9,0x4b,0x05,0xd1,0x8b,0xcd,0xb3,0xd0,
0x77,0x27,0xfe,0x46,0xf9,0x33,0xb2,0xa2,
},
};
#endif
#define KAT_BEGIN(P, n) memset(P, 0, sizeof(*(P)))
#define KAT_ERROR() return -1
#define KAT_END(P, n) do \
{ \
uint8_t KAT_ACTUAL[KATLEN]; \
entpool_extract(P, KAT_ACTUAL, KATLEN); \
if (memcmp(KAT_ACTUAL, known_answers[n], KATLEN)) \
return -1; \
} while (0)
int
entpool_selftest(void)
{
struct entpool pool, *P = &pool;
uint8_t sample[1] = {0xff};
uint8_t scratch[RATE];
const uint8_t zero[RATE] = {0};
/* Test entpool_enter with empty buffer. */
KAT_BEGIN(P, 0);
entpool_stir(P); /* noop */
entpool_enter(P, sample, 1);
entpool_stir(P); /* noop */
KAT_END(P, 0);
/* Test entpool_enter with partial buffer. */
KAT_BEGIN(P, 1);
entpool_stir(P); /* noop */
#if ENTPOOL_SMALL
entpool_enter(P, zero, RATE-3);
#else
entpool_enter(P, zero, RATE-4);
#endif
entpool_stir(P); /* noop */
entpool_enter(P, sample, 1);
entpool_stir(P); /* noop */
KAT_END(P, 1);
/* Test entpool_enter with full buffer. */
KAT_BEGIN(P, 2);
entpool_stir(P); /* noop */
#if ENTPOOL_SMALL
if (!entpool_enter_nostir(P, zero, RATE-2))
KAT_ERROR();
#else
if (!entpool_enter_nostir(P, zero, 127))
KAT_ERROR();
if (!entpool_enter_nostir(P, zero, RATE-2 - 127 - 1))
KAT_ERROR();
#endif
entpool_enter(P, sample, 1);
entpool_stir(P); /* noop */
KAT_END(P, 2);
/* Test entpool_enter with full buffer after stir. */
KAT_BEGIN(P, 3);
entpool_stir(P); /* noop */
#if ENTPOOL_SMALL
if (!entpool_enter_nostir(P, zero, RATE-2))
KAT_ERROR();
#else
CTASSERT(127 <= RATE-2);
if (!entpool_enter_nostir(P, zero, 127))
KAT_ERROR();
if (!entpool_enter_nostir(P, zero, RATE-2 - 127 - 1))
KAT_ERROR();
#endif
entpool_stir(P);
entpool_enter(P, sample, 1);
entpool_stir(P); /* noop */
KAT_END(P, 3);
/* Test entpool_enter_nostir with empty buffer. */
KAT_BEGIN(P, 4);
entpool_stir(P); /* noop */
if (!entpool_enter_nostir(P, sample, 1))
KAT_ERROR();
entpool_stir(P); /* noop */
KAT_END(P, 4);
/* Test entpool_enter_nostir with partial buffer. */
KAT_BEGIN(P, 5);
entpool_stir(P); /* noop */
#if ENTPOOL_SMALL
entpool_enter(P, zero, RATE-3);
#else
entpool_enter(P, zero, RATE-4);
#endif
entpool_stir(P); /* noop */
if (entpool_enter_nostir(P, sample, 1))
KAT_ERROR();
entpool_stir(P);
KAT_END(P, 5);
/* Test entpool_enter_nostir with full buffer. */
KAT_BEGIN(P, 6);
entpool_stir(P); /* noop */
#if ENTPOOL_SMALL
if (!entpool_enter_nostir(P, zero, RATE-2))
KAT_ERROR();
#else
CTASSERT(127 <= RATE-2);
if (!entpool_enter_nostir(P, zero, 127))
KAT_ERROR();
if (!entpool_enter_nostir(P, zero, RATE-2 - 127 - 1))
KAT_ERROR();
#endif
if (entpool_enter_nostir(P, sample, 1))
KAT_ERROR();
entpool_stir(P);
KAT_END(P, 6);
/* Test entpool_enter_nostir with full buffer after stir. */
KAT_BEGIN(P, 7);
entpool_stir(P); /* noop */
#if ENTPOOL_SMALL
if (!entpool_enter_nostir(P, zero, RATE-2))
KAT_ERROR();
#else
CTASSERT(127 <= RATE-2);
if (!entpool_enter_nostir(P, zero, 127))
KAT_ERROR();
if (!entpool_enter_nostir(P, zero, RATE-2 - 127 - 1))
KAT_ERROR();
#endif
entpool_stir(P);
if (!entpool_enter_nostir(P, sample, 1))
KAT_ERROR();
entpool_stir(P); /* noop */
KAT_END(P, 7);
/* Test entpool_extract with empty input buffer. */
KAT_BEGIN(P, 8);
entpool_stir(P); /* noop */
KAT_END(P, 8);
/* Test entpool_extract with nonempty input buffer. */
KAT_BEGIN(P, 9);
entpool_stir(P); /* noop */
entpool_enter(P, sample, 1);
entpool_stir(P); /* noop */
KAT_END(P, 9);
/* Test entpool_extract with full input buffer. */
KAT_BEGIN(P, 10);
entpool_stir(P); /* noop */
#if ENTPOOL_SMALL
if (!entpool_enter_nostir(P, zero, RATE-2))
KAT_ERROR();
#else
CTASSERT(127 <= RATE-2);
if (!entpool_enter_nostir(P, zero, 127))
KAT_ERROR();
if (!entpool_enter_nostir(P, zero, RATE-2 - 127 - 1))
KAT_ERROR();
#endif
KAT_END(P, 10);
/* Test entpool_extract with iterated output. */
KAT_BEGIN(P, 11);
entpool_stir(P); /* noop */
entpool_extract(P, scratch, RATE-1 + 1);
entpool_stir(P); /* noop */
KAT_END(P, 11);
/* Test extract, enter, extract. */
KAT_BEGIN(P, 12);
entpool_stir(P); /* noop */
entpool_extract(P, scratch, 1);
entpool_stir(P); /* noop */
entpool_enter(P, sample, 1);
entpool_stir(P); /* noop */
KAT_END(P, 12);
return 0;
}
#if ENTPOOL_TEST
int
main(void)
{
return entpool_selftest();
}
#endif
/*
* Known-answer test generation
*
* This generates the known-answer test vectors from explicitly
* specified duplex inputs that correspond to what entpool_enter
* &c. induce, to confirm the encoding of inputs works as
* intended.
*/
#if ENTPOOL_GENKAT
#include <stdio.h>
struct event {
enum { IN, OUT, STOP } t;
uint8_t b[RATE-1];
};
/* Cases correspond to entpool_selftest above. */
static const struct event *const cases[] = {
[0] = (const struct event[]) {
{IN, {1, 0xff}},
{STOP, {0}},
},
[1] = (const struct event[]) {
#if ENTPOOL_SMALL
{IN, {RATE-3, [RATE-2] = 1}},
#else
{IN, {0x80|((RATE-4)&0x7f), (RATE-4)>>7, [RATE-2] = 1}},
#endif
{IN, {0xff}},
{STOP, {0}},
},
[2] = (const struct event[]) {
#if ENTPOOL_SMALL
{IN, {RATE-2}},
#else
{IN, {127, [128] = RATE-2 - 127 - 1}},
#endif
{IN, {1, 0xff}},
{STOP, {0}},
},
[3] = (const struct event[]) {
#if ENTPOOL_SMALL
{IN, {RATE-2}},
#else
{IN, {127, [128] = RATE-2 - 127 - 1}},
#endif
{IN, {1, 0xff}},
{STOP, {0}},
},
[4] = (const struct event[]) {
{IN, {1, 0xff}},
{STOP, {0}},
},
[5] = (const struct event[]) {
#if ENTPOOL_SMALL
{IN, {RATE-3, [RATE-2] = 0 /* truncated length */}},
#else
{IN, {0x80|((RATE-4)&0x7f), (RATE-4)>>7,
[RATE-2] = 0 /* truncated length */}},
#endif
{STOP, {0}},
},
[6] = (const struct event[]) {
#if ENTPOOL_SMALL
{IN, {RATE-2}},
#else
{IN, {127, [128] = RATE-2 - 127 - 1}},
#endif
{STOP, {0}},
},
[7] = (const struct event[]) {
#if ENTPOOL_SMALL
{IN, {RATE-2}},
#else
{IN, {127, [128] = RATE-2 - 127 - 1}},
#endif
{IN, {1, 0xff}},
{STOP, {0}},
},
[8] = (const struct event[]) {
{STOP, {0}},
},
[9] = (const struct event[]) {
{IN, {1, 0xff}},
{STOP, {0}},
},
[10] = (const struct event[]) {
#if ENTPOOL_SMALL
{IN, {RATE-2}},
#else
{IN, {127, [128] = RATE-2 - 127 - 1}},
#endif
{STOP, {0}},
},
[11] = (const struct event[]) {
{OUT, {0}},
{OUT, {0}},
{STOP, {0}},
},
[12] = (const struct event[]) {
{OUT, {0}},
{IN, {1, 0xff}},
{STOP, {0}},
},
};
static void
compute(uint8_t output[KATLEN], const struct event *events)
{
union {
uint8_t b[ENTPOOL_SIZE];
ENTPOOL_WORD w[ENTPOOL_SIZE/sizeof(ENTPOOL_WORD)];
} u;
unsigned i, j, k;
memset(&u.b, 0, sizeof u.b);
for (i = 0;; i++) {
if (events[i].t == STOP)
break;
for (j = 0; j < sizeof(events[i].b); j++)
u.b[j] ^= events[i].b[j];
if (events[i].t == OUT) {
memset(u.b, 0, RATE-1);
u.b[RATE-1] ^= 0x80;
}
for (k = 0; k < arraycount(u.w); k++)
u.w[k] = ENTPOOL_WTOH(u.w[k]);
ENTPOOL_PERMUTE(u.w);
for (k = 0; k < arraycount(u.w); k++)
u.w[k] = ENTPOOL_HTOW(u.w[k]);
}
for (j = 0; j < KATLEN; j++)
output[j] = u.b[j];
}
int
main(void)
{
uint8_t output[KATLEN];
unsigned i, j;
printf("static const uint8_t known_answers[][KATLEN] = {\n");
for (i = 0; i < arraycount(cases); i++) {
printf("\t[%u] = {\n", i);
compute(output, cases[i]);
for (j = 0; j < KATLEN; j++) {
if (j % 8 == 0)
printf("\t\t");
printf("0x%02hhx,", output[j]);
if (j % 8 == 7)
printf("\n");
}
if ((KATLEN % 8) != 0)
printf("\n");
printf("\t},\n");
}
printf("};\n");
fflush(stdout);
return ferror(stdout);
}
#endif
|
21d8533fdfffaa038b161bbb2f2ad83970328696
|
88ae8695987ada722184307301e221e1ba3cc2fa
|
/third_party/weston/src/desktop-shell/exposay.c
|
7e9a324c417c981d856394c3bee15a167f5626f9
|
[
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
iridium-browser/iridium-browser
|
71d9c5ff76e014e6900b825f67389ab0ccd01329
|
5ee297f53dc7f8e70183031cff62f37b0f19d25f
|
refs/heads/master
| 2023-08-03T16:44:16.844552
| 2023-07-20T15:17:00
| 2023-07-23T16:09:30
| 220,016,632
| 341
| 40
|
BSD-3-Clause
| 2021-08-13T13:54:45
| 2019-11-06T14:32:31
| null |
UTF-8
|
C
| false
| false
| 22,667
|
c
|
exposay.c
|
/*
* Copyright © 2010-2012 Intel Corporation
* Copyright © 2011-2012 Collabora, Ltd.
* Copyright © 2013 Raspberry Pi Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <stdint.h>
#include <linux/input.h>
#include "shell.h"
#include "shared/helpers.h"
struct exposay_surface {
struct desktop_shell *shell;
struct exposay_output *eoutput;
struct weston_surface *surface;
struct weston_view *view;
struct wl_listener view_destroy_listener;
struct wl_list link;
int x;
int y;
int width;
int height;
double scale;
int row;
int column;
/* The animations only apply a transformation for their own lifetime,
* and don't have an option to indefinitely maintain the
* transformation in a steady state - so, we apply our own once the
* animation has finished. */
struct weston_transform transform;
};
static void exposay_set_state(struct desktop_shell *shell,
enum exposay_target_state state,
struct weston_seat *seat);
static void exposay_check_state(struct desktop_shell *shell);
static void
exposay_surface_destroy(struct exposay_surface *esurface)
{
wl_list_remove(&esurface->link);
wl_list_remove(&esurface->view_destroy_listener.link);
if (esurface->shell->exposay.focus_current == esurface->view)
esurface->shell->exposay.focus_current = NULL;
if (esurface->shell->exposay.focus_prev == esurface->view)
esurface->shell->exposay.focus_prev = NULL;
free(esurface);
}
static void
exposay_in_flight_inc(struct desktop_shell *shell)
{
shell->exposay.in_flight++;
}
static void
exposay_in_flight_dec(struct desktop_shell *shell)
{
if (--shell->exposay.in_flight > 0)
return;
exposay_check_state(shell);
}
static void
exposay_animate_in_done(struct weston_view_animation *animation, void *data)
{
struct exposay_surface *esurface = data;
wl_list_insert(&esurface->view->geometry.transformation_list,
&esurface->transform.link);
weston_matrix_init(&esurface->transform.matrix);
weston_matrix_scale(&esurface->transform.matrix,
esurface->scale, esurface->scale, 1.0f);
weston_matrix_translate(&esurface->transform.matrix,
esurface->x - esurface->view->geometry.x,
esurface->y - esurface->view->geometry.y,
0);
weston_view_geometry_dirty(esurface->view);
weston_compositor_schedule_repaint(esurface->view->surface->compositor);
exposay_in_flight_dec(esurface->shell);
}
static void
exposay_animate_in(struct exposay_surface *esurface)
{
exposay_in_flight_inc(esurface->shell);
weston_move_scale_run(esurface->view,
esurface->x - esurface->view->geometry.x,
esurface->y - esurface->view->geometry.y,
1.0, esurface->scale, 0,
exposay_animate_in_done, esurface);
}
static void
exposay_animate_out_done(struct weston_view_animation *animation, void *data)
{
struct exposay_surface *esurface = data;
struct desktop_shell *shell = esurface->shell;
exposay_surface_destroy(esurface);
exposay_in_flight_dec(shell);
}
static void
exposay_animate_out(struct exposay_surface *esurface)
{
exposay_in_flight_inc(esurface->shell);
/* Remove the static transformation set up by
* exposay_transform_in_done(). */
wl_list_remove(&esurface->transform.link);
weston_view_geometry_dirty(esurface->view);
weston_move_scale_run(esurface->view,
esurface->x - esurface->view->geometry.x,
esurface->y - esurface->view->geometry.y,
1.0, esurface->scale, 1,
exposay_animate_out_done, esurface);
}
static void
exposay_highlight_surface(struct desktop_shell *shell,
struct exposay_surface *esurface)
{
struct weston_view *view = esurface->view;
if (shell->exposay.focus_current == view)
return;
shell->exposay.row_current = esurface->row;
shell->exposay.column_current = esurface->column;
shell->exposay.cur_output = esurface->eoutput;
activate(shell, view, shell->exposay.seat,
WESTON_ACTIVATE_FLAG_NONE);
shell->exposay.focus_current = view;
}
static int
exposay_is_animating(struct desktop_shell *shell)
{
if (shell->exposay.state_cur == EXPOSAY_LAYOUT_INACTIVE ||
shell->exposay.state_cur == EXPOSAY_LAYOUT_OVERVIEW)
return 0;
return (shell->exposay.in_flight > 0);
}
static void
exposay_pick(struct desktop_shell *shell, int x, int y)
{
struct exposay_surface *esurface;
if (exposay_is_animating(shell))
return;
wl_list_for_each(esurface, &shell->exposay.surface_list, link) {
if (x < esurface->x || x > esurface->x + esurface->width)
continue;
if (y < esurface->y || y > esurface->y + esurface->height)
continue;
exposay_highlight_surface(shell, esurface);
return;
}
}
static void
handle_view_destroy(struct wl_listener *listener, void *data)
{
struct exposay_surface *esurface = container_of(listener,
struct exposay_surface,
view_destroy_listener);
exposay_surface_destroy(esurface);
}
/* Compute each surface size and then inner pad (10% of surface size).
* After that, it's necessary to recompute surface size (90% of its
* original size). Also, each surface can't be bigger than half the
* exposay area width and height.
*/
static void
exposay_surface_and_inner_pad_size(pixman_rectangle32_t exposay_area, struct exposay_output *eoutput)
{
if (exposay_area.height < exposay_area.width)
eoutput->surface_size = exposay_area.height / eoutput->grid_size;
else
eoutput->surface_size = exposay_area.width / eoutput->grid_size;
eoutput->padding_inner = eoutput->surface_size / 10;
eoutput->surface_size -= eoutput->padding_inner;
if ((uint32_t)eoutput->surface_size > (exposay_area.width / 2))
eoutput->surface_size = exposay_area.width / 2;
if ((uint32_t)eoutput->surface_size > (exposay_area.height / 2))
eoutput->surface_size = exposay_area.height / 2;
}
/* Compute the exposay top/left margin in order to centralize it */
static void
exposay_margin_size(struct desktop_shell *shell, pixman_rectangle32_t exposay_area,
int row_size, int column_size, int *left_margin, int *top_margin)
{
(*left_margin) = exposay_area.x + (exposay_area.width - row_size) / 2;
(*top_margin) = exposay_area.y + (exposay_area.height - column_size) / 2;
}
/* Pretty lame layout for now; just tries to make a square. Should take
* aspect ratio into account really. Also needs to be notified of surface
* addition and removal and adjust layout/animate accordingly.
*
* Lay the grid out as square as possible, losing surfaces from the
* bottom row if required. Start with fixed padding of a 10% margin
* around the outside, and maximise the area made available to surfaces
* after this. Also, add an inner padding between surfaces that varies
* with the surface size (10% of its size).
*
* If we can't make a square grid, add one extra row at the bottom which
* will have a smaller number of columns.
*/
static enum exposay_layout_state
exposay_layout(struct desktop_shell *shell, struct shell_output *shell_output)
{
struct workspace *workspace = shell->exposay.workspace;
struct weston_output *output = shell_output->output;
struct exposay_output *eoutput = &shell_output->eoutput;
struct weston_view *view;
struct exposay_surface *esurface, *highlight = NULL;
pixman_rectangle32_t exposay_area;
int pad, row_size, column_size, left_margin, top_margin;
int last_row_size, last_row_margin_increase;
int populated_rows;
int i;
eoutput->num_surfaces = 0;
wl_list_for_each(view, &workspace->layer.view_list.link, layer_link.link) {
if (!get_shell_surface(view->surface))
continue;
if (view->output != output)
continue;
eoutput->num_surfaces++;
}
if (eoutput->num_surfaces == 0) {
eoutput->grid_size = 0;
eoutput->padding_inner = 0;
eoutput->surface_size = 0;
return EXPOSAY_LAYOUT_OVERVIEW;
}
/* Get exposay area and position, taking into account
* the shell panel position and size */
get_output_work_area(shell, output, &exposay_area);
/* Compute grid size */
eoutput->grid_size = floor(sqrtf(eoutput->num_surfaces));
if (pow(eoutput->grid_size, 2) != eoutput->num_surfaces)
eoutput->grid_size++;
/* Compute each surface size and the inner padding between them */
exposay_surface_and_inner_pad_size(exposay_area, eoutput);
/* Compute each row/column size */
pad = eoutput->surface_size + eoutput->padding_inner;
row_size = (pad * eoutput->grid_size) - eoutput->padding_inner;
/* We may have empty rows that should be desconsidered to compute
* column size */
populated_rows = ceil(eoutput->num_surfaces / (float) eoutput->grid_size);
column_size = (pad * populated_rows) - eoutput->padding_inner;
/* The last row size can be different, since it may have less surfaces
* than the grid size. Also, its margin may be increased to centralize
* its surfaces, in the case where we don't have a perfect grid. */
last_row_size = ((eoutput->num_surfaces % eoutput->grid_size) * pad) - eoutput->padding_inner;
if (eoutput->num_surfaces % eoutput->grid_size)
last_row_margin_increase = (row_size - last_row_size) / 2;
else
last_row_margin_increase = 0;
/* Compute a top/left margin to centralize the exposay */
exposay_margin_size(shell, exposay_area, row_size, column_size, &left_margin, &top_margin);
i = 0;
wl_list_for_each(view, &workspace->layer.view_list.link, layer_link.link) {
if (!get_shell_surface(view->surface))
continue;
if (view->output != output)
continue;
esurface = malloc(sizeof(*esurface));
if (!esurface) {
exposay_set_state(shell, EXPOSAY_TARGET_CANCEL,
shell->exposay.seat);
break;
}
wl_list_insert(&shell->exposay.surface_list, &esurface->link);
esurface->shell = shell;
esurface->eoutput = eoutput;
esurface->view = view;
esurface->row = i / eoutput->grid_size;
esurface->column = i % eoutput->grid_size;
esurface->x = left_margin + (pad * esurface->column);
esurface->y = top_margin + (pad * esurface->row);
/* If this is the last row, increase left margin (it sums 0 if
* we have a perfect square) to centralize the surfaces */
if (eoutput->num_surfaces / eoutput->grid_size == esurface->row)
esurface->x += last_row_margin_increase;
if (view->surface->width > view->surface->height)
esurface->scale = eoutput->surface_size / (float) view->surface->width;
else
esurface->scale = eoutput->surface_size / (float) view->surface->height;
esurface->width = view->surface->width * esurface->scale;
esurface->height = view->surface->height * esurface->scale;
/* Surfaces are usually rectangular, but their exposay surfaces
* are square. centralize them in their own square */
if (esurface->width > esurface->height)
esurface->y += (esurface->width - esurface->height) / 2;
else
esurface->x += (esurface->height - esurface->width) / 2;
if (shell->exposay.focus_current == esurface->view)
highlight = esurface;
exposay_animate_in(esurface);
/* We want our destroy handler to be after the animation
* destroy handler in the list, this way when the view is
* destroyed, the animation can safely call the animation
* completion callback before we free the esurface in our
* destroy handler.
*/
esurface->view_destroy_listener.notify = handle_view_destroy;
wl_signal_add(&view->destroy_signal, &esurface->view_destroy_listener);
i++;
}
if (highlight) {
shell->exposay.focus_current = NULL;
exposay_highlight_surface(shell, highlight);
}
weston_compositor_schedule_repaint(shell->compositor);
return EXPOSAY_LAYOUT_ANIMATE_TO_OVERVIEW;
}
static void
exposay_focus(struct weston_pointer_grab *grab)
{
}
static void
exposay_motion(struct weston_pointer_grab *grab,
const struct timespec *time,
struct weston_pointer_motion_event *event)
{
struct desktop_shell *shell =
container_of(grab, struct desktop_shell, exposay.grab_ptr);
weston_pointer_move(grab->pointer, event);
exposay_pick(shell,
wl_fixed_to_int(grab->pointer->x),
wl_fixed_to_int(grab->pointer->y));
}
static void
exposay_button(struct weston_pointer_grab *grab, const struct timespec *time,
uint32_t button, uint32_t state_w)
{
struct desktop_shell *shell =
container_of(grab, struct desktop_shell, exposay.grab_ptr);
struct weston_seat *seat = grab->pointer->seat;
enum wl_pointer_button_state state = state_w;
if (button != BTN_LEFT)
return;
/* Store the surface we clicked on, and don't do anything if we end up
* releasing on a different surface. */
if (state == WL_POINTER_BUTTON_STATE_PRESSED) {
shell->exposay.clicked = shell->exposay.focus_current;
return;
}
if (shell->exposay.focus_current == shell->exposay.clicked)
exposay_set_state(shell, EXPOSAY_TARGET_SWITCH, seat);
else
shell->exposay.clicked = NULL;
}
static void
exposay_axis(struct weston_pointer_grab *grab,
const struct timespec *time,
struct weston_pointer_axis_event *event)
{
}
static void
exposay_axis_source(struct weston_pointer_grab *grab, uint32_t source)
{
}
static void
exposay_frame(struct weston_pointer_grab *grab)
{
}
static void
exposay_pointer_grab_cancel(struct weston_pointer_grab *grab)
{
struct desktop_shell *shell =
container_of(grab, struct desktop_shell, exposay.grab_ptr);
exposay_set_state(shell, EXPOSAY_TARGET_CANCEL, shell->exposay.seat);
}
static const struct weston_pointer_grab_interface exposay_ptr_grab = {
exposay_focus,
exposay_motion,
exposay_button,
exposay_axis,
exposay_axis_source,
exposay_frame,
exposay_pointer_grab_cancel,
};
static int
exposay_maybe_move(struct desktop_shell *shell, int row, int column)
{
struct exposay_surface *esurface;
wl_list_for_each(esurface, &shell->exposay.surface_list, link) {
if (esurface->eoutput != shell->exposay.cur_output ||
esurface->row != row || esurface->column != column)
continue;
exposay_highlight_surface(shell, esurface);
return 1;
}
return 0;
}
static void
exposay_key(struct weston_keyboard_grab *grab, const struct timespec *time,
uint32_t key, uint32_t state_w)
{
struct weston_seat *seat = grab->keyboard->seat;
struct desktop_shell *shell =
container_of(grab, struct desktop_shell, exposay.grab_kbd);
enum wl_keyboard_key_state state = state_w;
if (state != WL_KEYBOARD_KEY_STATE_RELEASED)
return;
switch (key) {
case KEY_ESC:
exposay_set_state(shell, EXPOSAY_TARGET_CANCEL, seat);
break;
case KEY_ENTER:
exposay_set_state(shell, EXPOSAY_TARGET_SWITCH, seat);
break;
case KEY_UP:
exposay_maybe_move(shell, shell->exposay.row_current - 1,
shell->exposay.column_current);
break;
case KEY_DOWN:
/* Special case for trying to move to the bottom row when it
* has fewer items than all the others. */
if (!exposay_maybe_move(shell, shell->exposay.row_current + 1,
shell->exposay.column_current) &&
shell->exposay.row_current < (shell->exposay.cur_output->grid_size - 1)) {
exposay_maybe_move(shell, shell->exposay.row_current + 1,
(shell->exposay.cur_output->num_surfaces %
shell->exposay.cur_output->grid_size) - 1);
}
break;
case KEY_LEFT:
exposay_maybe_move(shell, shell->exposay.row_current,
shell->exposay.column_current - 1);
break;
case KEY_RIGHT:
exposay_maybe_move(shell, shell->exposay.row_current,
shell->exposay.column_current + 1);
break;
case KEY_TAB:
/* Try to move right, then down (and to the leftmost column),
* then if all else fails, to the top left. */
if (!exposay_maybe_move(shell, shell->exposay.row_current,
shell->exposay.column_current + 1) &&
!exposay_maybe_move(shell, shell->exposay.row_current + 1, 0))
exposay_maybe_move(shell, 0, 0);
break;
default:
break;
}
}
static void
exposay_modifier(struct weston_keyboard_grab *grab, uint32_t serial,
uint32_t mods_depressed, uint32_t mods_latched,
uint32_t mods_locked, uint32_t group)
{
struct desktop_shell *shell =
container_of(grab, struct desktop_shell, exposay.grab_kbd);
struct weston_seat *seat = (struct weston_seat *) grab->keyboard->seat;
/* We want to know when mod has been pressed and released.
* FIXME: There is a problem here: if mod is pressed, then a key
* is pressed and released, then mod is released, we will treat that
* as if only mod had been pressed and released. */
if (seat->modifier_state) {
if (seat->modifier_state == shell->binding_modifier) {
shell->exposay.mod_pressed = true;
} else {
shell->exposay.mod_invalid = true;
}
} else {
if (shell->exposay.mod_pressed && !shell->exposay.mod_invalid)
exposay_set_state(shell, EXPOSAY_TARGET_CANCEL, seat);
shell->exposay.mod_invalid = false;
shell->exposay.mod_pressed = false;
}
return;
}
static void
exposay_cancel(struct weston_keyboard_grab *grab)
{
struct desktop_shell *shell =
container_of(grab, struct desktop_shell, exposay.grab_kbd);
exposay_set_state(shell, EXPOSAY_TARGET_CANCEL, shell->exposay.seat);
}
static const struct weston_keyboard_grab_interface exposay_kbd_grab = {
exposay_key,
exposay_modifier,
exposay_cancel,
};
/**
* Called when the transition from overview -> inactive has completed.
*/
static enum exposay_layout_state
exposay_set_inactive(struct desktop_shell *shell)
{
struct weston_seat *seat = shell->exposay.seat;
struct weston_keyboard *keyboard = weston_seat_get_keyboard(seat);
struct weston_pointer *pointer = weston_seat_get_pointer(seat);
if (pointer)
weston_pointer_end_grab(pointer);
if (keyboard) {
weston_keyboard_end_grab(keyboard);
if (keyboard->input_method_resource)
keyboard->grab = &keyboard->input_method_grab;
}
return EXPOSAY_LAYOUT_INACTIVE;
}
/**
* Begins the transition from overview to inactive. */
static enum exposay_layout_state
exposay_transition_inactive(struct desktop_shell *shell, int switch_focus)
{
struct exposay_surface *esurface;
/* Call activate() before we start the animations to avoid
* animating back the old state and then immediately transitioning
* to the new. */
if (switch_focus && shell->exposay.focus_current)
activate(shell, shell->exposay.focus_current,
shell->exposay.seat,
WESTON_ACTIVATE_FLAG_CONFIGURE);
else if (shell->exposay.focus_prev)
activate(shell, shell->exposay.focus_prev,
shell->exposay.seat,
WESTON_ACTIVATE_FLAG_CONFIGURE);
wl_list_for_each(esurface, &shell->exposay.surface_list, link)
exposay_animate_out(esurface);
weston_compositor_schedule_repaint(shell->compositor);
return EXPOSAY_LAYOUT_ANIMATE_TO_INACTIVE;
}
static enum exposay_layout_state
exposay_transition_active(struct desktop_shell *shell)
{
struct weston_seat *seat = shell->exposay.seat;
struct weston_pointer *pointer = weston_seat_get_pointer(seat);
struct weston_keyboard *keyboard = weston_seat_get_keyboard(seat);
struct shell_output *shell_output;
bool animate = false;
shell->exposay.workspace = get_current_workspace(shell);
shell->exposay.focus_prev = get_default_view(keyboard->focus);
shell->exposay.focus_current = get_default_view(keyboard->focus);
shell->exposay.clicked = NULL;
wl_list_init(&shell->exposay.surface_list);
lower_fullscreen_layer(shell, NULL);
shell->exposay.grab_kbd.interface = &exposay_kbd_grab;
weston_keyboard_start_grab(keyboard,
&shell->exposay.grab_kbd);
weston_keyboard_set_focus(keyboard, NULL);
shell->exposay.grab_ptr.interface = &exposay_ptr_grab;
if (pointer) {
weston_pointer_start_grab(pointer,
&shell->exposay.grab_ptr);
weston_pointer_clear_focus(pointer);
}
wl_list_for_each(shell_output, &shell->output_list, link) {
enum exposay_layout_state state;
state = exposay_layout(shell, shell_output);
if (state == EXPOSAY_LAYOUT_ANIMATE_TO_OVERVIEW)
animate = true;
}
return animate ? EXPOSAY_LAYOUT_ANIMATE_TO_OVERVIEW
: EXPOSAY_LAYOUT_OVERVIEW;
}
static void
exposay_check_state(struct desktop_shell *shell)
{
enum exposay_layout_state state_new = shell->exposay.state_cur;
int do_switch = 0;
/* Don't do anything whilst animations are running, just store up
* target state changes and only act on them when the animations have
* completed. */
if (exposay_is_animating(shell))
return;
switch (shell->exposay.state_target) {
case EXPOSAY_TARGET_OVERVIEW:
switch (shell->exposay.state_cur) {
case EXPOSAY_LAYOUT_OVERVIEW:
goto out;
case EXPOSAY_LAYOUT_ANIMATE_TO_OVERVIEW:
state_new = EXPOSAY_LAYOUT_OVERVIEW;
break;
default:
state_new = exposay_transition_active(shell);
break;
}
break;
case EXPOSAY_TARGET_SWITCH:
do_switch = 1; /* fallthrough */
case EXPOSAY_TARGET_CANCEL:
switch (shell->exposay.state_cur) {
case EXPOSAY_LAYOUT_INACTIVE:
goto out;
case EXPOSAY_LAYOUT_ANIMATE_TO_INACTIVE:
state_new = exposay_set_inactive(shell);
break;
default:
state_new = exposay_transition_inactive(shell, do_switch);
break;
}
break;
}
out:
shell->exposay.state_cur = state_new;
}
static void
exposay_set_state(struct desktop_shell *shell, enum exposay_target_state state,
struct weston_seat *seat)
{
shell->exposay.state_target = state;
shell->exposay.seat = seat;
exposay_check_state(shell);
}
void
exposay_binding(struct weston_keyboard *keyboard, enum weston_keyboard_modifier modifier,
void *data)
{
struct desktop_shell *shell = data;
exposay_set_state(shell, EXPOSAY_TARGET_OVERVIEW, keyboard->seat);
}
|
9be28cff7177e787e9cd6daaa34686dd54b47949
|
88ae8695987ada722184307301e221e1ba3cc2fa
|
/third_party/xnnpack/src/src/x32-zip/x32-zip-x4-sse2.c
|
c43cbfba33762bdf3c24371f18b1ccc01e058830
|
[
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] |
permissive
|
iridium-browser/iridium-browser
|
71d9c5ff76e014e6900b825f67389ab0ccd01329
|
5ee297f53dc7f8e70183031cff62f37b0f19d25f
|
refs/heads/master
| 2023-08-03T16:44:16.844552
| 2023-07-20T15:17:00
| 2023-07-23T16:09:30
| 220,016,632
| 341
| 40
|
BSD-3-Clause
| 2021-08-13T13:54:45
| 2019-11-06T14:32:31
| null |
UTF-8
|
C
| false
| false
| 2,544
|
c
|
x32-zip-x4-sse2.c
|
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <assert.h>
#include <emmintrin.h>
#include <xnnpack/zip.h>
void xnn_x32_zip_x4_ukernel__sse2(
size_t n,
const uint32_t* input,
uint32_t* output)
{
assert(n != 0);
assert(n % 4 == 0);
const uint32_t* x = input;
const uint32_t* y = (const uint32_t*) ((uintptr_t) x + n);
const uint32_t* z = (const uint32_t*) ((uintptr_t) y + n);
const uint32_t* w = (const uint32_t*) ((uintptr_t) z + n);
uint32_t* o = output;
while (n >= 16) {
const __m128i vx = _mm_loadu_si128((const __m128i*) x);
x += 4;
const __m128i vy = _mm_loadu_si128((const __m128i*) y);
y += 4;
const __m128i vz = _mm_loadu_si128((const __m128i*) z);
z += 4;
const __m128i vw = _mm_loadu_si128((const __m128i*) w);
w += 4;
const __m128i vxy_lo = _mm_unpacklo_epi32(vx, vy);
const __m128i vxy_hi = _mm_unpackhi_epi32(vx, vy);
const __m128i vzw_lo = _mm_unpacklo_epi32(vz, vw);
const __m128i vzw_hi = _mm_unpackhi_epi32(vz, vw);
const __m128i vxyzw0 = _mm_unpacklo_epi64(vxy_lo, vzw_lo);
const __m128i vxyzw1 = _mm_unpackhi_epi64(vxy_lo, vzw_lo);
const __m128i vxyzw2 = _mm_unpacklo_epi64(vxy_hi, vzw_hi);
const __m128i vxyzw3 = _mm_unpackhi_epi64(vxy_hi, vzw_hi);
_mm_storeu_si128((__m128i*) o, vxyzw0);
_mm_storeu_si128((__m128i*) (o + 4), vxyzw1);
_mm_storeu_si128((__m128i*) (o + 8), vxyzw2);
_mm_storeu_si128((__m128i*) (o + 12), vxyzw3);
o += 16;
n -= 16;
}
if XNN_UNLIKELY(n != 0) {
if (n & 8) {
const __m128i vx = _mm_loadl_epi64((const __m128i*) x);
x += 2;
const __m128i vy = _mm_loadl_epi64((const __m128i*) y);
y += 2;
const __m128i vz = _mm_loadl_epi64((const __m128i*) z);
z += 2;
const __m128i vw = _mm_loadl_epi64((const __m128i*) w);
w += 2;
const __m128i vxy = _mm_unpacklo_epi32(vx, vy);
const __m128i vzw = _mm_unpacklo_epi32(vz, vw);
const __m128i vxyzw_lo = _mm_unpacklo_epi64(vxy, vzw);
const __m128i vxyzw_hi = _mm_unpackhi_epi64(vxy, vzw);
_mm_storeu_si128((__m128i*) o, vxyzw_lo);
_mm_storeu_si128((__m128i*) (o + 4), vxyzw_hi);
o += 8;
}
if (n & 4) {
const uint32_t vx = *x;
const uint32_t vy = *y;
const uint32_t vz = *z;
const uint32_t vw = *w;
o[0] = vx;
o[1] = vy;
o[2] = vz;
o[3] = vw;
}
}
}
|
613023e571ce6c6e43c7812ca3240a57ecf6b545
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/arisc/arisc-notifier.c
|
3fccb312fcc1fea6b4dad609b6d6416843c66815
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 1,652
|
c
|
arisc-notifier.c
|
/*
* linux/driver/arisc/arisc-notifer.c
*
* Copyright(c) 2013-2015 Allwinnertech Co., Ltd.
* http://www.allwinnertech.com
*
* Author: sunny <sunny@allwinnertech.com>
*
* arisc notifier framework.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#include <linux/notifier.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/arisc/arisc-notifier.h>
/* arisc notifer */
static RAW_NOTIFIER_HEAD(arisc_notifier);
/* Serializes the operations to arisc_notifier */
static DEFINE_MUTEX(arisc_notifier_mutex);
/*
* The following two API's must be used when attempting
* to serialize the operations to arisc_notifier.
*/
static void arisc_notifier_lock(void)
{
mutex_lock(&arisc_notifier_mutex);
}
static void arisc_notifier_unlock(void)
{
mutex_unlock(&arisc_notifier_mutex);
}
int arisc_register_notifier(struct notifier_block *nb)
{
int ret;
arisc_notifier_lock();
ret = raw_notifier_chain_register(&arisc_notifier, nb);
arisc_notifier_unlock();
return ret;
}
EXPORT_SYMBOL(arisc_register_notifier);
int arisc_notify(unsigned long val, void *v)
{
int ret;
ret = __raw_notifier_call_chain(&arisc_notifier, val, v, -1, NULL);
return notifier_to_errno(ret);
}
EXPORT_SYMBOL(arisc_notify);
void arisc_unregister_notifier(struct notifier_block *nb)
{
arisc_notifier_lock();
raw_notifier_chain_unregister(&arisc_notifier, nb);
arisc_notifier_unlock();
}
EXPORT_SYMBOL(arisc_unregister_notifier);
|
ced3f00cee412364a2193a84304609390b5553a5
|
933788c87c06998999dc8bdc1e34d104538995d2
|
/Imperium/imperiumprefs/PreferencesColorDefinitions.h
|
f627753b306887433d7e6855f96f27e74ae4b4bc
|
[
"LicenseRef-scancode-free-unknown",
"MIT"
] |
permissive
|
LacertosusRepo/Open-Source-Tweaks
|
aca7c1d004e33257a1b6d136d41e70a694852be8
|
ccb00ba369cc8ee86b8a20fc5cae07ba69a1593b
|
refs/heads/master
| 2022-05-27T09:29:51.987726
| 2022-05-21T14:48:36
| 2022-05-21T14:48:36
| 49,115,831
| 280
| 93
|
MIT
| 2020-08-14T16:45:22
| 2016-01-06T05:55:35
|
Objective-C
|
UTF-8
|
C
| false
| false
| 341
|
h
|
PreferencesColorDefinitions.h
|
//Primary Color (Navigation BG, Title)
#define Pri_Color [UIColor colorWithRed:0.15 green:0.20 blue:0.32 alpha:1.0]
//Secondary Color (Interactables, Status Bar)
#define Sec_Color [UIColor colorWithRed:1.0 green:0.32 blue:0.32 alpha:1.0]
//Alternate Color
#define Alt_Color [UIColor colorWithRed:0.50 green:0.55 blue:0.55 alpha:1.0]
|
03b17818d4f9cd298faffd5e0eb923166042fbc3
|
5eff7a36d9a9917dce9111f0c3074375fe6f7656
|
/lib/mesa/src/panfrost/bifrost/bi_pressure_schedule.c
|
a4748e8bed662cca9f9629280c240e171b206bed
|
[] |
no_license
|
openbsd/xenocara
|
cb392d02ebba06f6ff7d826fd8a89aa3b8401779
|
a012b5de33ea0b977095d77316a521195b26cc6b
|
refs/heads/master
| 2023-08-25T12:16:58.862008
| 2023-08-12T16:16:25
| 2023-08-12T16:16:25
| 66,967,384
| 177
| 66
| null | 2023-07-22T18:12:37
| 2016-08-30T18:36:01
|
C
|
UTF-8
|
C
| false
| false
| 10,447
|
c
|
bi_pressure_schedule.c
|
/*
* Copyright (C) 2022 Collabora Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* Authors (Collabora):
* Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
*/
/* Bottom-up local scheduler to reduce register pressure */
#include "compiler.h"
#include "util/dag.h"
struct sched_ctx {
/* Dependency graph */
struct dag *dag;
/* Live set */
BITSET_WORD *live;
};
struct sched_node {
struct dag_node dag;
/* Instruction this node represents */
bi_instr *instr;
};
static void
add_dep(struct sched_node *a, struct sched_node *b)
{
if (a && b)
dag_add_edge(&a->dag, &b->dag, 0);
}
static struct dag *
create_dag(bi_context *ctx, bi_block *block, void *memctx)
{
struct dag *dag = dag_create(ctx);
struct sched_node **last_write =
calloc(ctx->ssa_alloc, sizeof(struct sched_node *));
struct sched_node *coverage = NULL;
struct sched_node *preload = NULL;
/* Last memory load, to serialize stores against */
struct sched_node *memory_load = NULL;
/* Last memory store, to serialize loads and stores against */
struct sched_node *memory_store = NULL;
bi_foreach_instr_in_block(block, I) {
/* Leave branches at the end */
if (I->op == BI_OPCODE_JUMP || bi_opcode_props[I->op].branch)
break;
assert(I->branch_target == NULL);
struct sched_node *node = rzalloc(memctx, struct sched_node);
node->instr = I;
dag_init_node(dag, &node->dag);
/* Reads depend on writes, no other hazards in SSA */
bi_foreach_ssa_src(I, s)
add_dep(node, last_write[I->src[s].value]);
bi_foreach_dest(I, d)
last_write[I->dest[d].value] = node;
switch (bi_opcode_props[I->op].message) {
case BIFROST_MESSAGE_LOAD:
/* Regular memory loads needs to be serialized against
* other memory access. However, UBO memory is read-only
* so it can be moved around freely.
*/
if (I->seg != BI_SEG_UBO) {
add_dep(node, memory_store);
memory_load = node;
}
break;
case BIFROST_MESSAGE_ATTRIBUTE:
/* Regular attribute loads can be reordered, but
* writeable attributes can't be. Our one use of
* writeable attributes are images.
*/
if ((I->op == BI_OPCODE_LD_TEX) ||
(I->op == BI_OPCODE_LD_TEX_IMM) ||
(I->op == BI_OPCODE_LD_ATTR_TEX)) {
add_dep(node, memory_store);
memory_load = node;
}
break;
case BIFROST_MESSAGE_STORE:
assert(I->seg != BI_SEG_UBO);
add_dep(node, memory_load);
add_dep(node, memory_store);
memory_store = node;
break;
case BIFROST_MESSAGE_ATOMIC:
case BIFROST_MESSAGE_BARRIER:
add_dep(node, memory_load);
add_dep(node, memory_store);
memory_load = node;
memory_store = node;
break;
case BIFROST_MESSAGE_BLEND:
case BIFROST_MESSAGE_Z_STENCIL:
case BIFROST_MESSAGE_TILE:
add_dep(node, coverage);
coverage = node;
break;
case BIFROST_MESSAGE_ATEST:
/* ATEST signals the end of shader side effects */
add_dep(node, memory_store);
memory_store = node;
/* ATEST also updates coverage */
add_dep(node, coverage);
coverage = node;
break;
default:
break;
}
add_dep(node, preload);
if (I->op == BI_OPCODE_DISCARD_F32) {
/* Serialize against ATEST */
add_dep(node, coverage);
coverage = node;
/* Also serialize against memory and barriers */
add_dep(node, memory_load);
add_dep(node, memory_store);
memory_load = node;
memory_store = node;
} else if ((I->op == BI_OPCODE_PHI) ||
(I->op == BI_OPCODE_MOV_I32 &&
I->src[0].type == BI_INDEX_REGISTER)) {
preload = node;
}
}
free(last_write);
return dag;
}
/*
* Calculate the change in register pressure from scheduling a given
* instruction. Equivalently, calculate the difference in the number of live
* registers before and after the instruction, given the live set after the
* instruction. This calculation follows immediately from the dataflow
* definition of liveness:
*
* live_in = (live_out - KILL) + GEN
*/
static signed
calculate_pressure_delta(bi_instr *I, BITSET_WORD *live)
{
signed delta = 0;
/* Destinations must be unique */
bi_foreach_dest(I, d) {
if (BITSET_TEST(live, I->dest[d].value))
delta -= bi_count_write_registers(I, d);
}
bi_foreach_ssa_src(I, src) {
/* Filter duplicates */
bool dupe = false;
for (unsigned i = 0; i < src; ++i) {
if (bi_is_equiv(I->src[i], I->src[src])) {
dupe = true;
break;
}
}
if (!dupe && !BITSET_TEST(live, I->src[src].value))
delta += bi_count_read_registers(I, src);
}
return delta;
}
/*
* Choose the next instruction, bottom-up. For now we use a simple greedy
* heuristic: choose the instruction that has the best effect on liveness.
*/
static struct sched_node *
choose_instr(struct sched_ctx *s)
{
int32_t min_delta = INT32_MAX;
struct sched_node *best = NULL;
list_for_each_entry(struct sched_node, n, &s->dag->heads, dag.link) {
int32_t delta = calculate_pressure_delta(n->instr, s->live);
if (delta < min_delta) {
best = n;
min_delta = delta;
}
}
return best;
}
static void
pressure_schedule_block(bi_context *ctx, bi_block *block, struct sched_ctx *s)
{
/* off by a constant, that's ok */
signed pressure = 0;
signed orig_max_pressure = 0;
unsigned nr_ins = 0;
memcpy(s->live, block->ssa_live_out, BITSET_WORDS(ctx->ssa_alloc) * sizeof(BITSET_WORD));
bi_foreach_instr_in_block_rev(block, I) {
pressure += calculate_pressure_delta(I, s->live);
orig_max_pressure = MAX2(pressure, orig_max_pressure);
bi_liveness_ins_update_ssa(s->live, I);
nr_ins++;
}
memcpy(s->live, block->ssa_live_out, BITSET_WORDS(ctx->ssa_alloc) * sizeof(BITSET_WORD));
/* off by a constant, that's ok */
signed max_pressure = 0;
pressure = 0;
struct sched_node **schedule = calloc(nr_ins, sizeof(struct sched_node *));
nr_ins = 0;
while (!list_is_empty(&s->dag->heads)) {
struct sched_node *node = choose_instr(s);
pressure += calculate_pressure_delta(node->instr, s->live);
max_pressure = MAX2(pressure, max_pressure);
dag_prune_head(s->dag, &node->dag);
schedule[nr_ins++] = node;
bi_liveness_ins_update_ssa(s->live, node->instr);
}
/* Bail if it looks like it's worse */
if (max_pressure >= orig_max_pressure) {
free(schedule);
return;
}
/* Apply the schedule */
for (unsigned i = 0; i < nr_ins; ++i) {
bi_remove_instruction(schedule[i]->instr);
list_add(&schedule[i]->instr->link, &block->instructions);
}
free(schedule);
}
void
bi_pressure_schedule(bi_context *ctx)
{
bi_compute_liveness_ssa(ctx);
void *memctx = ralloc_context(ctx);
BITSET_WORD *live = ralloc_array(memctx, BITSET_WORD, BITSET_WORDS(ctx->ssa_alloc));
bi_foreach_block(ctx, block) {
struct sched_ctx sctx = {
.dag = create_dag(ctx, block, memctx),
.live = live
};
pressure_schedule_block(ctx, block, &sctx);
}
ralloc_free(memctx);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.